summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-10-25 13:22:11 -0300
committerJesusaves <cpntb1@ymail.com>2022-10-25 13:22:11 -0300
commite7e73cffa7edc3686c1c2718488001ef10a7ebb4 (patch)
treee4c8251ac7bf3800cf3276804721f7990c036c96
parent6042f741ddcf5068d8c4654accb81709b7f22b45 (diff)
downloadtools-e7e73cffa7edc3686c1c2718488001ef10a7ebb4.tar.gz
tools-e7e73cffa7edc3686c1c2718488001ef10a7ebb4.tar.bz2
tools-e7e73cffa7edc3686c1c2718488001ef10a7ebb4.tar.xz
tools-e7e73cffa7edc3686c1c2718488001ef10a7ebb4.zip
Dehardcode some stuff
-rwxr-xr-xupdate/createnew.sh5
1 files 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