aboutsummaryrefslogtreecommitdiff
path: root/development/kForth-64/updater/pull-request.sh
diff options
context:
space:
mode:
Diffstat (limited to 'development/kForth-64/updater/pull-request.sh')
-rwxr-xr-xdevelopment/kForth-64/updater/pull-request.sh68
1 files changed, 68 insertions, 0 deletions
diff --git a/development/kForth-64/updater/pull-request.sh b/development/kForth-64/updater/pull-request.sh
new file mode 100755
index 0000000000..695e044a20
--- /dev/null
+++ b/development/kForth-64/updater/pull-request.sh
@@ -0,0 +1,68 @@
+#!/bin/bash
+
+SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
+cd $SCRIPT_DIR
+
+set -e
+clear
+
+# make sure the SlackaBuild file are neatly packed
+./tar.sh
+
+cd ..
+PKGNAME=${PWD##*/}
+echo "Package: " $PKGNAME
+cd ..
+CATEGORY=${PWD##*/}
+echo "Category: " $CATEGORY
+
+read -p "Commit message: " MSG
+echo
+echo
+
+cd ~/slackware-builds/antonioleal/slackbuilds
+git checkout -B $PKGNAME
+cd ~/slackware-builds/antonioleal/slackbuilds/$CATEGORY/
+echo
+echo
+
+tar xvfz ~/slackware-builds/antonioleal/myslackbuilds/$CATEGORY/$PKGNAME/updater/slackbuild/$PKGNAME.tar.gz
+echo
+echo
+pwd
+git status
+
+# git add all
+echo
+echo
+echo Adding all files: git add --all
+read -p "Issue command above? (y/n) " op
+if [ "$op" = "y" ] || [ "$op" = "Y" ]; then
+ git add --all
+fi
+
+# git commit -a -m "$CATEGORY/$PKGNAME: $MSG"
+echo
+echo
+echo Commit all files: git commit -a -m "\"$CATEGORY/$PKGNAME: $MSG\""
+read -p "Issue command above? (y/n) " op
+if [ "$op" = "y" ] || [ "$op" = "Y" ]; then
+ git commit -a -m "$CATEGORY/$PKGNAME: $MSG"
+fi
+
+# git push -f origin $PKGNAME
+echo
+echo
+echo Pushing to upstream master with: git push -f origin $PKGNAME
+read -p "Issue command above? (y/n) " op
+if [ "$op" = "y" ] || [ "$op" = "Y" ]; then
+ git push -f origin $PKGNAME
+fi
+
+# return to master branch
+echo
+echo
+echo Returning to master branch with: git checkout master
+git checkout master
+echo
+echo Done.