Continued:
authorRoland Haeder <roland@mxchange.org>
Mon, 10 Apr 2017 14:14:35 +0000 (16:14 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 10 Apr 2017 19:04:27 +0000 (21:04 +0200)
- added filter-jprojects.sh
- allow force-push
- fixed CHMOD

Signed-off-by: Roland Haeder <roland@mxchange.org>
filter-jprojects.sh [new file with mode: 0755]
push-stick.sh
revert-jprojects.sh [changed mode: 0644->0755]
rm-jprojects.sh [changed mode: 0644->0755]

diff --git a/filter-jprojects.sh b/filter-jprojects.sh
new file mode 100755 (executable)
index 0000000..041aacf
--- /dev/null
@@ -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
index f3e72c19336725eeef22ac917a0b8003992406b6..d90e0f6e156ed26b8b60e177e71c24fb824edf27 100755 (executable)
@@ -3,6 +3,7 @@
 . ./.jprojects.sh || exit 255
 
 TARGETS="o d t u"
 . ./.jprojects.sh || exit 255
 
 TARGETS="o d t u"
+FORCE="--force"
 
 if [ "$1" = "a" ]
 then
 
 if [ "$1" = "a" ]
 then
@@ -33,7 +34,7 @@ for project in ${LIST}; do
                        git push daedalus :"$2"
                fi
 
                        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" ]
        elif [ "$1" = "t" ]
        then
                if [ -n "$2" ]
@@ -41,7 +42,7 @@ for project in ${LIST}; do
                        git push transport :"$2"
                fi
 
                        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" ]
        elif [ "$1" = "u" ]
        then
                if [ -n "$2" ]
@@ -49,14 +50,14 @@ for project in ${LIST}; do
                        git push upstream :"$2"
                fi
 
                        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
 
        else
                if [ -n "$2" ]
                then
                        git push origin :"$2"
                fi
 
-               git push --all || exit 255
+               git push ${FORCE} --all || exit 255
        fi
 done
 
        fi
 done
 
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)