add export project script

This commit is contained in:
Ivan Smolin 2019-06-13 18:31:34 +03:00
parent adde0b3480
commit d240fc3a2a
1 changed files with 12 additions and 0 deletions

12
export_src.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
PROJECT_DIR=$1
PLATFORM=$2
cd /tmp/
git clone --recurse-submodules -j8 git@github.com:TouchInstinct/${PROJECT_DIR}-${PLATFORM}.git --branch develop
cd ${PROJECT_DIR}-${PLATFORM}
find . -name ".git*" -print0 | xargs -0 rm -rf
zip -r ${PROJECT_DIR}-${PLATFORM}-src-$(date +%F).zip .
open .