Created
September 14, 2019 20:51
-
-
Save fernandospr/01a97d8b4eb6dd2171afc9b92dcd2e00 to your computer and use it in GitHub Desktop.
Android Materials Generator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ $# -eq 0 ]; then | |
echo | |
echo "Example usage:" | |
echo "Having MyProject-Starter and MyProject-Final folders execute:" | |
echo | |
echo "$ bash $0 MyProject-Starter MyProject-Final" | |
echo | |
echo "This will generate a Materials.zip containing MyProject-Starter and MyProject-Final folders." | |
exit 1 | |
fi | |
for var in "$@" | |
do | |
rm "$var"/*.iml | |
rm "$var"/app/*.iml | |
rm "$var"/local.properties | |
rm -rf "$var"/.idea | |
rm -rf "$var"/.git | |
rm -rf "$var"/.gradle | |
rm -rf "$var"/build | |
rm -rf "$var"/app/build | |
done | |
zip -r Materials.zip "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment