From f724eb81e8629305bfa2c23ee7684f40e2645ecf Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 10 Apr 2017 16:14:35 +0200 Subject: [PATCH] Continued: - added filter-jprojects.sh - allow force-push - fixed CHMOD Signed-off-by: Roland Haeder --- filter-jprojects.sh | 12 ++++++++++++ push-stick.sh | 9 +++++---- revert-jprojects.sh | 0 rm-jprojects.sh | 0 4 files changed, 17 insertions(+), 4 deletions(-) create mode 100755 filter-jprojects.sh mode change 100644 => 100755 revert-jprojects.sh mode change 100644 => 100755 rm-jprojects.sh 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 -- 2.39.5