X-Git-Url: https://git.mxchange.org/?p=jprojects-scripts.git;a=blobdiff_plain;f=commit-jprojects.sh;h=61ac979b0a8bab1170012342b7da088854332ddb;hp=99f58bdb05bc5d005d0046bf208d5220ef749660;hb=4d9dc9a4e25cfe372b6d853b31bf1afffa33dc2b;hpb=2aa2d86cc5507a741523b9ab6ca94d804885486a diff --git a/commit-jprojects.sh b/commit-jprojects.sh index 99f58bd..61ac979 100755 --- a/commit-jprojects.sh +++ b/commit-jprojects.sh @@ -19,10 +19,24 @@ for project in ${LIST}; do if [ -n "${CHECK_CHANGES}" ] then echo "$0: Committing '${project}' ..." - if [ -n "$1" ] + if [ "$1" = "updated jar(s)" ] then + # Special commit ... (known-binaries) + git commit --signoff -S lib/*.jar -m "$1" + elif [ "$1" = "updated dist.sh" ] + then + # Special commit ... (known shell script) + git commit --signoff -S "dist.sh" -m "$1" + elif [ -n "$1" -a -n "$2" ] + then + # Regular commit with given message + git commit $2 --signoff -S -m "$1" || exit 255 + elif [ -n "$1" ] + then + # Regular commit with given message git commit -a --signoff -S -m "$1" || exit 255 else + # Regular commit, will open $EDITOR for commit message git commit -a --signoff -S || exit 255 fi else