Brown - Bash Question
Posted by matthew.green on 2012-03-28 20:45
Hey,
If I were to run a script, what would return value be if any (ie $? on the cmd line) after it completes
Also, as setup-tools.sh is now, does it already check if the necessary dependancies are already installed. Or was that your install.sh script. Sorry if this question is vague, i can clear up tomorrow if necessary,
Green
If I were to run a script, what would return value be if any (ie $? on the cmd line) after it completes
Also, as setup-tools.sh is now, does it already check if the necessary dependancies are already installed. Or was that your install.sh script. Sorry if this question is vague, i can clear up tomorrow if necessary,
Green
Home / Developer API / Tour / Get a Project - Solutions for Bug & Issue Tracking, Collaboration Tools, Subversion Hosting, Git Hosting
Androidguitar is powered by Assembla.
2 Comments
By brownm04 on 2012-03-30 13:59
Currently setup-tools.sh checks if dependencies are already installed, that's the whole command -v ant >/dev/null 2>&1 call for each of the dependency programs. The part that needs to be changed is the whole svn section. I'm pretty sure that if we just stop deleting the whole android folder to retest (what i was doing), and just clean the ant build every time it should be easy to change it to just check if the code has been checked out, and if it hasn't, check it out. If it has been checked out, just update to the newest revision. That should be relatively minor and I'll take a look at it to see if I can get a better version out to you.
By brownm04 on 2012-03-30 14:33
42
So, you should be able to keep track of the pid you spawn for setup-tools and call wait $PID or something. It also says $! returns the most recent background pid but I personally would think the storing the pid is the safest bet.