summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgumi <mekolat@users.noreply.github.com>2017-11-20 15:13:56 -0500
committergumi <mekolat@users.noreply.github.com>2017-11-20 15:13:56 -0500
commit8f07eda99a1fcfdfc808693e25d4b3b3b388b128 (patch)
tree815be0a1f1575f5ed16576cf1fefb51dbac6bbf4
parente97b3f71b9198f27fac03f53eacc3e7c9d32b750 (diff)
downloadtools-8f07eda99a1fcfdfc808693e25d4b3b3b388b128.tar.gz
tools-8f07eda99a1fcfdfc808693e25d4b3b3b388b128.tar.bz2
tools-8f07eda99a1fcfdfc808693e25d4b3b3b388b128.tar.xz
tools-8f07eda99a1fcfdfc808693e25d4b3b3b388b128.zip
improve the update script
-rw-r--r--client/make-music.sh2
-rwxr-xr-xclient/make-updates12
2 files changed, 9 insertions, 5 deletions
diff --git a/client/make-music.sh b/client/make-music.sh
index cdec1dc..dafcf2c 100644
--- a/client/make-music.sh
+++ b/client/make-music.sh
@@ -45,7 +45,9 @@ cp xml_header.txt resources.xml
cat xml_footer.txt >>resources.xml
echo ">> Moving stuff around..."
+chmod a+r Legacy-music.zip
cp Legacy-music.zip $output/
+chmod a+r resources.xml
cp resources.xml $output/
popd
popd
diff --git a/client/make-updates b/client/make-updates
index 1179a66..7fed2ed 100755
--- a/client/make-updates
+++ b/client/make-updates
@@ -22,11 +22,10 @@ mkdir -pv files
mkdir -pv $output
mkdir -pv $cdata/music
+chmod u+x ./make-music.sh
+
echo ">> Removing leftovers..."
rm -rv files/* 2>/dev/null || :
-cp $output/news.txt files/ 2>/dev/null || :
-cp $output/news.html files/ 2>/dev/null || :
-rm -rv $output/* 2>/dev/null || :
echo ">> Entering client-data..."
pushd $cdata
@@ -34,6 +33,8 @@ echo ">> Changing file dates..."
find -path ./music -prune -o -iregex ".+[.]\(xml\|png\|tmx\|ogg\|txt\|po\|tsx\)" -exec touch --date=2015-01-01 {} \;
echo ">> Compressing files..."
find -path ./music -prune -o -iregex ".+[.]\(xml\|png\|tmx\|ogg\|txt\|po\|tsx\)" -printf "%P\n" | zip -X -@ $dir/files/Legacy.zip
+chmod a+r $dir/files/Legacy.zip
+
echo ">> Dumping git revision to file..."
git rev-parse HEAD >$dir/commit.txt
@@ -52,10 +53,11 @@ cp xml_header.txt resources.xml
cat xml_footer.txt >>resources.xml
echo ">> Moving stuff around..."
+chmod a+r Legacy.zip
cp -v Legacy.zip $output/
+chmod a+r resources2.txt
cp -v resources2.txt $output/
+chmod a+r resources.xml
cp -v resources.xml $output/
-cp -v news.txt $output/ 2>/dev/null || :
-cp -v news.html $output/ 2>/dev/null || :
popd
popd