Add a "idle" method to the state structure
[neverball] / macosx / modify_neverball_pkg_uninstaller.sh
1 #!/bin/sh
2 # Usage: `sh modify_neverball_pkg_uninstaller.sh Uninstall\ Neverball.mpkg`
3 # Please run this script on the .mpkg installer after building.
4 distFile=$1/Contents/distribution.dist
5 tempDistFile=$1/Contents/distribution.dist.temp
6 packageLoc=$1/Contents/Packages/
7 sed 's/neverballuninstallscript.pkg</Neverball_Uninstall_Script.pkg</' "$distFile" > "$tempDistFile"
8 rm "$distFile"
9 mv "$tempDistFile" "$distFile"
10 mv "$packageLoc/neverballuninstallscript.pkg" "$packageLoc/Neverball_Uninstall_Script.pkg"