summaryrefslogtreecommitdiff
path: root/update/createnew.sh
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-18 17:26:55 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-18 17:26:55 +0300
commit8e466279958a6daa9c611f1a76f64e4304eb2484 (patch)
tree29829046a3f4f41f8dfdabf839a8879b188ebc64 /update/createnew.sh
parent9ec17823c8992464aa3e0bd79c7d34f546340cda (diff)
downloadevol-tools-8e466279958a6daa9c611f1a76f64e4304eb2484.tar.gz
evol-tools-8e466279958a6daa9c611f1a76f64e4304eb2484.tar.bz2
evol-tools-8e466279958a6daa9c611f1a76f64e4304eb2484.tar.xz
evol-tools-8e466279958a6daa9c611f1a76f64e4304eb2484.zip
update: set files date time to fixed value before packing into zips.
Diffstat (limited to 'update/createnew.sh')
-rwxr-xr-xupdate/createnew.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/update/createnew.sh b/update/createnew.sh
index 0b4a484..535ea81 100755
--- a/update/createnew.sh
+++ b/update/createnew.sh
@@ -13,7 +13,8 @@ mkdir upload
rm files/evol.zip
cd ../../client-data
-find -iregex ".+[.]\(xml\|png\|tmx\|ogg\|txt\|po\|tsx\)" -printf "%P\n" | zip -@ ../tools/update/files/evol.zip
+find -iregex ".+[.]\(xml\|png\|tmx\|ogg\|txt\|po\|tsx\)" -exec touch --date=2015-01-01 {} \;
+find -iregex ".+[.]\(xml\|png\|tmx\|ogg\|txt\|po\|tsx\)" -printf "%P\n" | zip -X -@ ../tools/update/files/evol.zip
git log --pretty=oneline -n 1 | awk '{print $1}' >../tools/update/commit.txt
cd $dir/files