summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2005-12-19 16:12:57 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2005-12-19 16:12:57 +0000
commit8df32856c8618e386bc89e1beef4654a4a85560b (patch)
tree1254192bcc7d509544879b7ce6d6a23a1b0b35e3 /games-rpg/nwn/files
parentUse python eclass functions to determine installed python version. (diff)
downloadgentoo-2-8df32856c8618e386bc89e1beef4654a4a85560b.tar.gz
gentoo-2-8df32856c8618e386bc89e1beef4654a4a85560b.tar.bz2
gentoo-2-8df32856c8618e386bc89e1beef4654a4a85560b.zip
Fixing fixinstall file and made it install properly.
(Portage version: 2.0.53)
Diffstat (limited to 'games-rpg/nwn/files')
-rwxr-xr-xgames-rpg/nwn/files/fixinstall6
1 files changed, 4 insertions, 2 deletions
diff --git a/games-rpg/nwn/files/fixinstall b/games-rpg/nwn/files/fixinstall
index f92a9d9707c6..c324b61bf89e 100755
--- a/games-rpg/nwn/files/fixinstall
+++ b/games-rpg/nwn/files/fixinstall
@@ -92,7 +92,8 @@ chown GENTOO_USER:GENTOO_GROUP GENTOO_DIR/nwn/ -R
chmod g+rwX GENTOO_DIR/nwn/ -R
# 1.65-specific fixes to permissions
-chmod a-x GENTOO_DIR/nwn/data/patch.bif 2>&1 > /dev/null
+[ -e GENTOO_DIR/nwn/data/patch.bif ] && \
+ chmod a-x GENTOO_DIR/nwn/data/patch.bif 2>&1 > /dev/null
chmod a-x GENTOO_DIR/nwn/nwm/Chapter1.nwm 2>&1 > /dev/null
chmod a-x GENTOO_DIR/nwn/nwm/Chapter1E.nwm 2>&1 > /dev/null
chmod a-x GENTOO_DIR/nwn/nwm/Chapter2.nwm 2>&1 > /dev/null
@@ -100,6 +101,7 @@ chmod a-x GENTOO_DIR/nwn/nwm/Chapter2E.nwm 2>&1 > /dev/null
chmod a-x GENTOO_DIR/nwn/nwm/Chapter3.nwm 2>&1 > /dev/null
chmod a-x GENTOO_DIR/nwn/nwm/Chapter4.nwm 2>&1 > /dev/null
chmod a-x GENTOO_DIR/nwn/nwm/Prelude.nwm 2>&1 > /dev/null
-chmod a-x GENTOO_DIR/nwn/patch.key 2>&1 > /dev/null
+[ -e GENTOO_DIR/nwn/patch.key ] && \
+ chmod a-x GENTOO_DIR/nwn/patch.key 2>&1 > /dev/null
printf "\nYou are ready to run Neverwinter Nights.\n\n"