From: Roland Haeder Date: Mon, 10 Apr 2017 14:14:35 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=92c984c29e9a0eab7b2fa54db6cec853342bf789;p=jprojects-scripts.git Continued: - added filter-jprojects.sh - allow force-push - fixed CHMOD Signed-off-by: Roland Haeder --- diff --git a/filter-jprojects.sh b/filter-jprojects.sh new file mode 100755 index 0000000..041aacf --- /dev/null +++ b/filter-jprojects.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +. ./.jprojects.sh || exit 255 + +for project in ${LIST}; do + echo "$0: Processing '${project}' ..." + cd "${JPROJECTS_HOME}/${project}/" || exit 255 + /opt/bin/git-author.sh || exit 255 +done + +echo "$0: All done." +exit 0 diff --git a/push-stick.sh b/push-stick.sh index f3e72c1..d90e0f6 100755 --- a/push-stick.sh +++ b/push-stick.sh @@ -3,6 +3,7 @@ . ./.jprojects.sh || exit 255 TARGETS="o d t u" +FORCE="--force" if [ "$1" = "a" ] then @@ -33,7 +34,7 @@ for project in ${LIST}; do git push daedalus :"$2" fi - git push --all daedalus || exit 255 + git push ${FORCE} --all daedalus || exit 255 elif [ "$1" = "t" ] then if [ -n "$2" ] @@ -41,7 +42,7 @@ for project in ${LIST}; do git push transport :"$2" fi - git push --all transport || exit 255 + git push ${FORCE} --all transport || exit 255 elif [ "$1" = "u" ] then if [ -n "$2" ] @@ -49,14 +50,14 @@ for project in ${LIST}; do git push upstream :"$2" fi - git push --all upstream || exit 255 + git push ${FORCE} --all upstream || exit 255 else if [ -n "$2" ] then git push origin :"$2" fi - git push --all || exit 255 + git push ${FORCE} --all || exit 255 fi done diff --git a/revert-jprojects.sh b/revert-jprojects.sh old mode 100644 new mode 100755 diff --git a/rm-jprojects.sh b/rm-jprojects.sh old mode 100644 new mode 100755