diff options
author | Nick Daly <nick.m.daly@gmail.com> | 2010-02-02 21:03:07 -0600 |
---|---|---|
committer | Nick Daly <nick.m.daly@gmail.com> | 2010-02-02 21:03:07 -0600 |
commit | 1d5ba1b928aaef6ee43955dd3d53f1b0df1329a2 (patch) | |
tree | 7cff59a66fa640389fe497d7d358843dba6b830c /includes | |
parent | 933c53a67d04b9418e54286b1ff19f8b89655941 (diff) | |
download | gemrb-gameinstallers-1d5ba1b928aaef6ee43955dd3d53f1b0df1329a2.tar.bz2 gemrb-gameinstallers-1d5ba1b928aaef6ee43955dd3d53f1b0df1329a2.zip |
Installations are now saved in a simple registry.
Also, quoted a few variables in auto-installer for fun.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/autoinstall-includes.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/includes/autoinstall-includes.sh b/includes/autoinstall-includes.sh index fe503a0..cff3499 100644 --- a/includes/autoinstall-includes.sh +++ b/includes/autoinstall-includes.sh @@ -107,6 +107,9 @@ function recommendcfg STARTCD=1 fi + gemrbDir="~/.gemrb" + installRegistry="${gemrbDir}/installations.ini" + displayText="To play the game with GemRB, you will need to add the following\n" displayText=${displayText}"lines to your GemRB.cfg file:\n" @@ -137,4 +140,9 @@ function recommendcfg else echo -e "$displayText" fi + + # record the installation in the installation registry. + mkdir "$gemrbDir" + touch "$installRegistry" + echo "$TARGETDIR" >> "$installRegistry" } |