Created
September 15, 2011 16:27
-
-
Save basicer/1219717 to your computer and use it in GitHub Desktop.
This file contains 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
make: other levels lua sound | |
produce: pull bundle | |
pull: | |
hg pull | |
hg up | |
win: make | |
cp -r gum .. | |
cp -r loop .. | |
cp -r ui .. | |
run: make | |
/Applications/CoronaSDK/Corona\ Terminal .. | |
installapk: | |
~/android-sdk-mac_x86/platform-tools/adb install -r -s ~/Desktop/dist.apk | |
buildinfo.lua: dummy | |
echo 'module("buildinfo")' > buildinfo.lua | |
echo 'hginfo = "' `hg parents --template "{author|person} {node|short} : {desc}"` '"' >> buildinfo.lua | |
echo 'hgdate = "' `hg parents --template '{date|date}'` '"' >> buildinfo.lua | |
echo 'makedate = "' `date` '"' >> buildinfo.lua | |
dummy: | |
debug: make | |
/Applications/CoronaSDK/Corona\ Terminal -debug 1 .. | |
other: | |
find . -mindepth 1 -name "*.settings" | sed s/^[.][/]// | xargs -L1 -I{} echo "ln -f {} ../\`echo {} | sed s/\\\\\\\\//./g\` " | sh | |
levels: | |
find . -mindepth 1 -name "*.json" | sed s/^[.][/]// | xargs -L1 -I{} echo "ln -f {} ../\`echo {} | sed s/\\\\\\\\//./g\` " | sh | |
lua: buildinfo.lua | |
find . -mindepth 1 -name "*.lua" | sed s/^[.][/]// | xargs -L1 -I{} echo "ln -f {} ../\`echo {} | sed s/\\\\\\\\//./g\` " | sh | |
sound: | |
( cd ../assets; find . -mindepth 1 -name "*.wav" -or -name "*.mp3" | sed s/^[.][/]// | xargs -L1 -I{} echo "ln -f {} ../assets_\`echo {} | sed s/[\\\\\\\\/-]/_/g\` " | sh ); | |
( cd ../tassets; find . -mindepth 1 -name "*.wav" -or -name "*.mp3" | sed s/^[.][/]// | xargs -L1 -I{} echo "ln -f {} ../assets_\`echo {} | sed s/\\\\\\\\//_/g\` " | sh ); | |
bundle: rmbundle cpbundle | |
cpbundle: buildinfo.lua | |
find . -mindepth 1 -name "*.lua" | sed s/^[.][/]// | xargs -L1 -I{} echo "cp {} ../dist/\`echo {} | sed s/\\\\\\\\//./g\` " | sh | |
( cd ../assets; find . -mindepth 1 -name "*.wav" -or -name "*.mp3" | sed s/^[.][/]// | xargs -L1 -I{} echo "cp {} ../dist/assets_\`echo {} | sed s/[\\\\\\\\/-]/_/g\` " | sh ); | |
( cd ../tassets; find . -mindepth 1 -name "*.wav" -or -name "*.mp3" | sed s/^[.][/]// | xargs -L1 -I{} echo "cp {} ../dist/tassets_\`echo {} | sed s/[\\\\\\\\/-]/_/g\` " | sh ); | |
find . -mindepth 1 -name "*.json" | sed s/^[.][/]// | xargs -L1 -I{} echo "ln -f {} ../dist/\`echo {} | sed s/\\\\\\\\//./g\` " | sh | |
find . -maxdepth 1 -name "Icon*.png" | xargs -L1 -I{} cp {} ../dist/{} | |
find . -maxdepth 1 -name "*.settings" | xargs -L1 -I{} cp {} ../dist/{} | |
cp -r ../assets ../dist/assets | |
cp -r ../widget_ios ../dist/widget_ios | |
cp -r ../tassets ../dist/tassets | |
(cd ../dist/assets; find . -name "*.wav" -or -name "*.mp3" -or -name "*.mp3src" | xargs rm -f ) | |
(cd ../dist; find . -name "loop.component.*.lua" -or -name "loop.object.*.lua" -or -name "loop.thread.*.lua" -or -name "loop.debug.*.lua" -or -name "loop.compiler.*.lua" | xargs rm -f ) | |
winbundle: bundle | |
cp -r gum ../dist/ | |
cp -r loop ../dist/ | |
cp -r ui ../dist/ | |
clean: | |
rm -rf ../dist | |
find .. -maxdepth 1 -name "level-*.json" -or -name "*.*.lua" -or -name "*.*.mp3" -or -name "*.*.wav" -type f | xargs rm -f | |
cleanwin: clean | |
rm -r ../gum | |
rm -r ../loop | |
rm -r ../ui |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment