Quick shell scripting question


i wrote script keep of open-source software use up-to-date. using subversion repositories, there way branch script depending on whether or not new revision detected, , similarly, branch depending on whether or not xcode build succeeds? script follows below (feel free point out newbie mistakes):

code:
#! /bin/bash  cd /volumes/external/src/gears svn update cd /volumes/external/src/gears/base/safari/project/ xcodebuild  cd /volumes/external/src/adium svn update xcodebuild cp -rlf build/development/adium.app /applications  cd /volumes/external/src/transmission svn update xcodebuild cp -rlf macosx/transmission.app /applications  cd desktop/inbox/ wget -r http://ftp.mozilla.org//pub/mozilla.org/camino/nightly/latest-1.6-m1.8/camino.dmg open camino.dmg cp -rlf /volumes/camino/camino.app /applications/browsers hdiutil detach /volumes/camino/ mv desktop/inbox/camino.dmg ~/.trash/  exit
 

also, on same subject, how 1 go closing application script without knowing pid beforehand?

edit: ok, guess applescript trick, out of curiosity, there bash-ier way of doing it?
 


Forums Macs Mac Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments

Popular posts from this blog

MacBook hang up PLEASE HELP!

Powerbook G4 power issue

Apple Script