diff --git a/compile_nodelist.sh b/compile_nodelist.sh index 591335e..bae01a1 100755 --- a/compile_nodelist.sh +++ b/compile_nodelist.sh @@ -2,7 +2,11 @@ ORIGDIR=$PWD IWORKDIR="/root/git/tqwnet_nodelist" +IPACKDIR="/root/git/tqwnet_infopack" WORKDIR="${1:-IWORKDIR}" +PACKDIR="${2:-IPACKDIR}" + +COMMIT="$(date "+%Y-%m-%d %H:%M:%S")" cd $WORKDIR git pull @@ -17,7 +21,18 @@ newext="z${ext:1:2}" zip -j9 zip/tqwnet.$newext $absfile git add . -A -git commit -m "$(date "+%Y-%m-%d %H:%M:%S")" +git commit -m "$COMMIT" +git push + +cd $PACKDIR + +rm tqwnet.z* +rm tqwinfo.zip +cp $WORKDIR/zip/tqwnet.$newext . +zip -9 tqwinfo.zip * + +git add . -A +git commit -m "$COMMIT" git push cd $ORIGDIR