diff options
author | gumi <git@gumi.ca> | 2018-01-30 19:08:45 -0500 |
---|---|---|
committer | gumi <git@gumi.ca> | 2018-01-30 19:08:45 -0500 |
commit | e6fb3a07714dec721d0216982fcc1ccef68af2c8 (patch) | |
tree | 3bc3cd2e61c3c53c6cca5b6f6bbf89b51c8964c1 /client | |
parent | cccbedfcf42e504dfa9d889457b8daa11241ba47 (diff) | |
download | tools-e6fb3a07714dec721d0216982fcc1ccef68af2c8.tar.gz tools-e6fb3a07714dec721d0216982fcc1ccef68af2c8.tar.bz2 tools-e6fb3a07714dec721d0216982fcc1ccef68af2c8.tar.xz tools-e6fb3a07714dec721d0216982fcc1ccef68af2c8.zip |
change last modified dates when not using the default update server
Diffstat (limited to 'client')
-rwxr-xr-x | client/make-updates.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/client/make-updates.sh b/client/make-updates.sh index fd5de5c..64c4ecb 100755 --- a/client/make-updates.sh +++ b/client/make-updates.sh @@ -59,6 +59,11 @@ rm -v $UPDATE_DIR/resources2.txt 2>/dev/null || : # Legacy: used by mana client echo -e "\e[96m>> Entering client-data...\e[0m" pushd $cdata &>/dev/null +if [ "$UPDATE_HTTP" == "none" ] ; then + echo -e "\e[96m>> Changing last modified dates...\e[0m" + find -iregex ".+[.]\(xml\|png\|tmx\|ogg\|txt\|po\|tsx\)" -exec touch --date=2015-01-01 {} \; +fi + echo -e "\e[96m>> Compressing files...\e[0m" find -path ./music -prune -o -iregex ".+[.]\(xml\|png\|tmx\|ogg\|txt\|po\|tsx\)" -printf "%P\n" | zip -X -@ $dir/files/Legacy.zip find -path ./sfx -prune -o -iregex ".+[.]\(ogg\)" -printf "%P\n" | zip -X -@ $dir/files/Legacy-music.zip |