summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-02-28 09:21:45 +0000
committerMike Frysinger <vapier@gentoo.org>2004-02-28 09:21:45 +0000
commit74870bff91a629e6debd5a1a78fb0e4331d3c739 (patch)
tree92741f1b6d33fa95c014d70c1476180ce354522d /games-rpg/nwn/files
parentVersion bumps (Manifest recommit) (diff)
downloadgentoo-2-74870bff91a629e6debd5a1a78fb0e4331d3c739.tar.gz
gentoo-2-74870bff91a629e6debd5a1a78fb0e4331d3c739.tar.bz2
gentoo-2-74870bff91a629e6debd5a1a78fb0e4331d3c739.zip
ver bump #43033
Diffstat (limited to 'games-rpg/nwn/files')
-rw-r--r--games-rpg/nwn/files/digest-nwn-1.622
-rw-r--r--games-rpg/nwn/files/nwn-1.62-fixinstall93
2 files changed, 95 insertions, 0 deletions
diff --git a/games-rpg/nwn/files/digest-nwn-1.62 b/games-rpg/nwn/files/digest-nwn-1.62
new file mode 100644
index 000000000000..ce176aaa41e8
--- /dev/null
+++ b/games-rpg/nwn/files/digest-nwn-1.62
@@ -0,0 +1,2 @@
+MD5 73c6515fd6aa5f860802098a55000ae8 nwclient129.tar.gz 5504342
+MD5 89f373e0a5e0042912a3a214ebf4436b linuxclientupdate129to162eng.tar.gz 71917130
diff --git a/games-rpg/nwn/files/nwn-1.62-fixinstall b/games-rpg/nwn/files/nwn-1.62-fixinstall
new file mode 100644
index 000000000000..a1e6063df9b6
--- /dev/null
+++ b/games-rpg/nwn/files/nwn-1.62-fixinstall
@@ -0,0 +1,93 @@
+#!/bin/bash
+# Initial version by Bioware
+# Modified to match the gentoo setup
+# 03/27/2003 phoen][x <phoenix@gentoo.org>
+
+cd GENTOO_DIR/nwn
+
+FaRequiredDirs=(ambient data music override miles nwm)
+aRequiredFiles=(chitin.key dialog.tlk nwmain patch.key)
+aLCDirs=(ambient data dmvault hak localvault music override portraits)
+aProblemFiles=()
+
+printf "\nFixing case\n\n"
+
+if [ -f dialog.TLK ]
+then
+ mv dialog.TLK dialog.tlk
+fi
+
+if [ -f dialogF.TLK ]
+then
+ mv dialogF.TLK dialogf.tlk
+fi
+
+printf "Checking for required files\n\n"
+
+for d in ${aRequiredDirs[@]}
+do
+ if [ -d $d ]
+ then
+ printf "PASSED: $d directory exists\n"
+ else
+ printf "FAILED: $d directory missing\n"
+ exit
+ fi
+done
+
+for f in ${aRequiredFiles[@]}
+do
+ if [ -f $f ]
+ then
+ printf "PASSED: $f exists\n"
+ else
+ printf "FAILED: $f missing\n"
+ exit
+ fi
+done
+
+printf "\nFixing case\n\n"
+
+for d in ${aLCDirs[@]}
+do
+ if [ -d $d ]
+ then
+ printf "$d\n"
+
+ cd $d
+
+ for f in $(find *.*)
+ do
+ lcf=$(echo $f | tr [:upper:] [:lower:])
+ if [ $f != $lcf ]
+ then
+ if [ -f $f ]
+ then
+ mv $f $(echo $f | tr [:upper:] [:lower:])
+ fi
+ fi
+ printf .
+ done
+
+ cd ..
+
+ printf "\n"
+ fi
+done
+
+printf "\nChecking for problem files\n\n"
+
+for f in ${aProblemFiles[@]}
+do
+ if [ -f $f ]
+ then
+ printf "WARNING: $f exists, deleting this file is recommended\n"
+ fi
+done
+
+printf "\nFixing permissions\n\n"
+
+chown GENTOO_USER:GENTOO_GROUP GENTOO_DIR/nwn/ -R
+chmod g+rwX GENTOO_DIR/nwn/ -R
+
+printf "\nYou are ready to run Neverwinter Nights.\n\n"