Last change
on this file since 691 was 488, checked in by iritscen, 15 years ago |
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).
|
File size:
495 bytes
|
Rev | Line | |
---|
[488] | 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
|
---|
Note:
See
TracBrowser
for help on using the repository browser.