summaryrefslogtreecommitdiff
path: root/update/create_music.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/create_music.sh
parent9ec17823c8992464aa3e0bd79c7d34f546340cda (diff)
downloadtools-8e466279958a6daa9c611f1a76f64e4304eb2484.tar.gz
tools-8e466279958a6daa9c611f1a76f64e4304eb2484.tar.bz2
tools-8e466279958a6daa9c611f1a76f64e4304eb2484.tar.xz
tools-8e466279958a6daa9c611f1a76f64e4304eb2484.zip
update: set files date time to fixed value before packing into zips.
Diffstat (limited to 'update/create_music.sh')
-rwxr-xr-xupdate/create_music.sh3
1 files changed, 2 insertions, 1 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