release script
This commit is contained in:
10
release.sh
10
release.sh
@@ -1,6 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -exu
|
set -exu
|
||||||
|
if [[ ! -d ~/www/static/six9.net/software/q-tools/ ]]; then
|
||||||
|
echo go to server
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
mkdir -p ~/tmp/q-tools-release-$$
|
mkdir -p ~/tmp/q-tools-release-$$
|
||||||
cd ~/tmp/q-tools-release-$$
|
cd ~/tmp/q-tools-release-$$
|
||||||
git clone ssh://git@git.six9.net:8222/moonq/q-tools.git
|
git clone ssh://git@git.six9.net:8222/moonq/q-tools.git
|
||||||
@@ -15,8 +19,6 @@ tar \
|
|||||||
.
|
.
|
||||||
ln -sfT q-tools.$version.tar.gz ~/www/static/six9.net/software/q-tools/current.tar.gz
|
ln -sfT q-tools.$version.tar.gz ~/www/static/six9.net/software/q-tools/current.tar.gz
|
||||||
echo $version > ~/www/static/six9.net/software/q-tools/current.txt
|
echo $version > ~/www/static/six9.net/software/q-tools/current.txt
|
||||||
cd $HOME
|
cd ~/www/static/six9.net/software/q-tools/
|
||||||
rm -r ~/tmp/q-tools-release-$$
|
rm -r ~/tmp/q-tools-release-$$
|
||||||
|
SimpleWebPage
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user