source: AE/Installer/trunk/source/replace_installer.sh@ 927

Last change on this file since 927 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
Line 
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
7CURDIR=$(cd $(dirname "$0"); pwd)
8DELDIR=$1
9OLDINS=$CURDIR/../../../install/Installer.app
10NEWINS=$CURDIR/Installer.app
11
12sleep 1
13
14if [ -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
25else
26 open $OLDINS
27fi
Note: See TracBrowser for help on using the repository browser.