Commit efa5f3bc authored by captainwong's avatar captainwong

upload

parent a03311a9
......@@ -3,17 +3,19 @@
set -e
if [ $# -ne 1 ]; then
DST_HOST='192.168.50.107'
DST_HOST='192.168.50.192'
else
DST_HOST=$1
fi
IGNORES="qt/Debug qt/Release"
USER=jack
IGNORES="qt/Debug/\* qt/Release/\* 3rdparty/\* obsolete/\* win32/\*"
rm -f jlib.zip
cd jlib
zip -r ../jlib.zip * -x $IGNORES
zip -r ../jlib.zip * -x qt/Debug/\* qt/Release/\* 3rdparty/\* obsolete/\* win32/\*
cd ..
scp jlib.zip root@$DST_HOST:/root/projects/jlib
ssh ${USER}@$DST_HOST "rm -f /tmp/jlib.zip"
scp jlib.zip ${USER}@$DST_HOST:/tmp
rm -f jlib.zip
ssh root@$DST_HOST "cd /root/projects/jlib && unzip -o jlib.zip -d jlib && rm -f jlib.zip"
ssh ${USER}@$DST_HOST "cd /tmp && sudo unzip -o jlib.zip -d /usr/local/include/jlib && rm -f jlib.zip"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment