From 157ecf53c46f056a7531b4704c6546aacc5add05 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 14 Oct 2003 00:14:22 +0000 Subject: ver bump #29316 fix output msg #29505 fix SRC_URI #31073 --- games-rpg/nwn/files/digest-nwn-1.32 | 3 ++ games-rpg/nwn/files/nwn-1.32-fixinstall | 91 +++++++++++++++++++++++++++++++++ 2 files changed, 94 insertions(+) create mode 100644 games-rpg/nwn/files/digest-nwn-1.32 create mode 100644 games-rpg/nwn/files/nwn-1.32-fixinstall (limited to 'games-rpg/nwn/files') diff --git a/games-rpg/nwn/files/digest-nwn-1.32 b/games-rpg/nwn/files/digest-nwn-1.32 new file mode 100644 index 000000000000..820e0f7f0dbd --- /dev/null +++ b/games-rpg/nwn/files/digest-nwn-1.32 @@ -0,0 +1,3 @@ +MD5 73c6515fd6aa5f860802098a55000ae8 nwclient129.tar.gz 5504342 +MD5 2be2a924284d783c007af0b2d2b4cd1a linuxclientupdate129to132eng.tar.gz 47992382 +MD5 8222401efe25235b56d01b38ae880b5b nwresources129.tar.gz 1212356127 diff --git a/games-rpg/nwn/files/nwn-1.32-fixinstall b/games-rpg/nwn/files/nwn-1.32-fixinstall new file mode 100644 index 000000000000..44a67423b87b --- /dev/null +++ b/games-rpg/nwn/files/nwn-1.32-fixinstall @@ -0,0 +1,91 @@ +#!/bin/bash +# Initial version by Bioware +# Modified to match the gentoo setup +# 03/27/2003 phoen][x + +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" -- cgit v1.2.3-65-gdbad