summaryrefslogtreecommitdiff
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
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.
-rwxr-xr-xupdate/create_music.sh3
-rwxr-xr-xupdate/createnew.sh3
-rwxr-xr-xupdate/update.sh2
-rwxr-xr-xupdate/update_music.sh2
4 files changed, 6 insertions, 4 deletions
diff --git a/update/create_music.sh b/update/create_music.sh
index a0f3264..db82b2f 100755
--- a/update/create_music.sh
+++ b/update/create_music.sh
@@ -13,7 +13,8 @@ mkdir upload
rm files/music.zip
cd ../../music
-find -iregex ".+[.]\(ogg\)" -printf "%P\n" | zip -@ ../tools/update/files/music.zip
+find -iregex ".+[.]\(ogg\)" -exec touch --date=2015-01-01 {} \;
+find -iregex ".+[.]\(ogg\)" -printf "%P\n" | zip -X -@ ../tools/update/files/music.zip
git log --pretty=oneline -n 1 | awk '{print $1}' >../tools/update/musiccommit.txt
cd $dir/files
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
diff --git a/update/update.sh b/update/update.sh
index 4ea4d0a..e092464 100755
--- a/update/update.sh
+++ b/update/update.sh
@@ -19,7 +19,7 @@ u1=`echo ${previous} | cut -c 1-7`
u2=`echo ${head} | cut -c 1-7`
git log --name-status ${previous}..${head} | awk '/^(A|M)\t/ {print $2}' | \
grep -e "[.]\(xml\|png\|tmx\|ogg\|txt\|po\|tsx\)" | sort | uniq | \
- xargs zip -9 -r ../tools/update/files/evol-${u1}..${u2}.zip
+ xargs zip -X -9 -r ../tools/update/files/evol-${u1}..${u2}.zip
cd $dir/files
if [ -f evol-${u1}..${u2}.zip ]; then
diff --git a/update/update_music.sh b/update/update_music.sh
index 8d11520..a74e15a 100755
--- a/update/update_music.sh
+++ b/update/update_music.sh
@@ -20,7 +20,7 @@ u2=`echo ${head} | cut -c 1-7`
git log --name-status ${previous}..${head} \
| awk '/^(A|M)\t/ {print $2}'
# grep -e "[.]\(ogg\)" | sort | uniq | \
-# xargs zip -9 -r ../../evol-tools/update/files/music-${u1}..${u2}.zip
+# xargs zip -X -9 -r ../../evol-tools/update/files/music-${u1}..${u2}.zip
exit
cd $dir/files