From e7e73cffa7edc3686c1c2718488001ef10a7ebb4 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 25 Oct 2022 13:22:11 -0300 Subject: Dehardcode some stuff --- update/createnew.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/update/createnew.sh b/update/createnew.sh index e09ec85..e4ee61f 100755 --- a/update/createnew.sh +++ b/update/createnew.sh @@ -17,9 +17,10 @@ ls -lh ../.. echo "\033[1mcd ../../clientdata\033[0m" cd ../../clientdata echo "\033[1mGenerating zip file...\033[0m" +ls -lh ../.. find -iregex ".+[.]\(xml\|png\|jpg\|tmx\|ogg\|txt\|po\|tsx\)" -exec touch --date=2015-01-01 {} \; -find -iregex ".+[.]\(xml\|png\|jpg\|tmx\|ogg\|txt\|po\|tsx\)" -printf "%P\n" | zip -X -@ ../tools/update/files/TMW2.zip -git log --pretty=oneline -n 1 | awk '{print $1}' >../tools/update/commit.txt +find -iregex ".+[.]\(xml\|png\|jpg\|tmx\|ogg\|txt\|po\|tsx\)" -printf "%P\n" | zip -X -@ $dir/files/TMW2.zip +git log --pretty=oneline -n 1 | awk '{print $1}' > $dir/commit.txt echo "\033[1mcd $dir/files\033[0m" cd $dir/files -- cgit v1.2.3-60-g2f50