From 7e3e955cfbad8964d65876161d07ddb869e1c0f7 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Fri, 14 Jul 2017 12:00:16 +0900 Subject: collection handling automatized in update.sh --- update.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'update.sh') diff --git a/update.sh b/update.sh index 879d2995..90cb5203 100755 --- a/update.sh +++ b/update.sh @@ -47,6 +47,19 @@ for i in `ls tlpkg/tlpsrc/*.tlpsrc | sort` ; do echo "depend $bn" >> $col done +git add $col +if ! git diff --cached --exit-code >/dev/null ; then + # something is staged + echo "collection contrib is updated, diff is as following:" + git diff --cached + echo "" + echo -n "Do you want to commit these changes (y/N): " + read REPLY <&2 + case $REPLY in + y*|Y*) git commit -m "collection-contrib updated" ;; + *) echo "Ok, leave it for now!" ;; + esac +fi if $do_tlpdb ; then # update tlpdb -- cgit v1.2.3