add script to update infopack and make a new zip
This commit is contained in:
parent
7607ef863b
commit
bfd5004535
@ -2,7 +2,11 @@
|
|||||||
|
|
||||||
ORIGDIR=$PWD
|
ORIGDIR=$PWD
|
||||||
IWORKDIR="/root/git/tqwnet_nodelist"
|
IWORKDIR="/root/git/tqwnet_nodelist"
|
||||||
|
IPACKDIR="/root/git/tqwnet_infopack"
|
||||||
WORKDIR="${1:-IWORKDIR}"
|
WORKDIR="${1:-IWORKDIR}"
|
||||||
|
PACKDIR="${2:-IPACKDIR}"
|
||||||
|
|
||||||
|
COMMIT="$(date "+%Y-%m-%d %H:%M:%S")"
|
||||||
|
|
||||||
cd $WORKDIR
|
cd $WORKDIR
|
||||||
git pull
|
git pull
|
||||||
@ -17,7 +21,18 @@ newext="z${ext:1:2}"
|
|||||||
zip -j9 zip/tqwnet.$newext $absfile
|
zip -j9 zip/tqwnet.$newext $absfile
|
||||||
|
|
||||||
git add . -A
|
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
|
git push
|
||||||
|
|
||||||
cd $ORIGDIR
|
cd $ORIGDIR
|
||||||
|
Loading…
x
Reference in New Issue
Block a user