Created
February 16, 2010 18:15
-
-
Save theshortcut/305756 to your computer and use it in GitHub Desktop.
simple shell script frontend to fcsh
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
#!/bin/bash | |
#fires up fcsh, runs initial compile and watches tmp/rebuild.txt | |
#any updates to tmp/rebuild.txt will cause a recompile | |
#initialization | |
fcsh="/c/flex/sdks/4.0.0/bin/fcsh.exe" | |
sources="l:/Flash_Libraries/Clay l:/Flash_Libraries/greensock-tweening-platform-as3 l:/Flash_Libraries/MonsterDebugger" | |
built="false" | |
function send_to_fcsh { | |
while : | |
do | |
if [[ $built == "false" ]]; then | |
echo >&2 "initial build" | |
echo >&2 "press enter key to rebuild" | |
echo "mxmlc --static-link-runtime-shared-libraries=true -sp $sources -o bin/LearningQuiz.swf src/LearningQuiz.as " | |
built="true" | |
elif [[ $built == "true" ]]; then | |
echo >&2 "" | |
read -p "" readEnterKey >&2 | |
echo "compile 1" | |
fi | |
done | "$fcsh" 2>&1 | |
} | |
#main | |
echo >&2 "[INFO] starting server." | |
send_to_fcsh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment