| Revision: | 488 | 
| Committed: | Wed Dec 30 11:45:45 2009 UTC (15 years, 10 months ago) by iritscen | 
| Content type: | text/x-sh | 
| File size: | 495 byte(s) | 
| Log Message: | Adding Install_Info.cfg to correct place in packages, and adding replace_installer.sh to incorrect place (it should go in the install/ folder in the actual release). | 
| # | Content | 
|---|---|
| 1 | #!/bin/sh | 
| 2 | #Installer Replacement Script v1.0 | 
| 3 | #by Iritscen | 
| 4 | #For use in the Anniversary Edition, a modding framework for Oni | 
| 5 | #This file should be in Edition/updates/Edition[-patch]/install/ | 
| 6 | |
| 7 | CURDIR=$(cd $(dirname "$0"); pwd) | 
| 8 | DELDIR=$1 | 
| 9 | OLDINS=$CURDIR/../../../install/Installer.app | 
| 10 | NEWINS=$CURDIR/Installer.app | 
| 11 | |
| 12 | sleep 1 | 
| 13 | |
| 14 | if [ -a $NEWINS ]; then | 
| 15 | if [ -a $OLDINS ]; then | 
| 16 | mv $OLDINS $DELDIR | 
| 17 | else | 
| 18 | exit | 
| 19 | fi | 
| 20 | sleep 1 | 
| 21 | mv $NEWINS $OLDINS | 
| 22 | NEWINS=$OLDINS | 
| 23 | sleep 1 | 
| 24 | open $NEWINS | 
| 25 | else | 
| 26 | open $OLDINS | 
| 27 | fi |