|
|
NWN_SET="platinum_cd" |
if [ -f "${CD_ROOT}"/data2.cab ] |
einfo "Neverwinter Nights Platinum DVD/CD set found..." |
then |
|
NWN_SET="platinum_dvd" |
|
einfo "Neverwinter Nights Platinum DVD found..." |
|
else |
|
NWN_SET="platinum_cd" |
|
einfo "Neverwinter Nights Platinum CD set found..." |
|
fi |
|
|
touch .metadata/sou || die "touch sou" |
if use sou |
touch .metadata/hou || die "touch hou" |
then |
|
touch .metadata/sou || die "touch sou" |
|
fi |
|
if use hou |
|
then |
|
touch .metadata/hou || die "touch hou" |
|
fi |
|
|
|
platinum_dvd) |
|
einfo "Both shadows of the Undertide and Hordes of the Underdark will" |
|
einfo "be installed from your DVD along with Neverwinter Nights" |
|
if use sou |
|
then |
|
touch .metadata/sou || die "touch sou" |
|
einfo "Shadows of the Undertide will be installed as well." |
|
fi |
|
if use hou |
|
then |
|
touch .metadata/hou || die "touch hou" |
|
fi |
|
touch .metadata/orig || die "touch orig" |
|
cdrom_get_cds ArcadeInstallNWNXP213f.EXE |
|
;; |
|
|
|
platinum_dvd) |
|
# The directory structure is created when unzipping |
|
# but the unshielded data2.cab files have to be moved. |
|
mkdir -p "${S}" |
|
cd "${S}" |
|
einfo "Unpacking files..." |
|
unzip -qo "${CDROM_ROOT}"/Data_Shared.zip || die "unpacking" |
|
unzip -qo "${CDROM_ROOT}"/Language_data.zip || die "unpacking" |
|
unzip -qo "${CDROM_ROOT}"/Language_Update.zip || die "unpacking" |
|
if use sou || use hou |
|
then |
|
unshield x ${CDROM_ROOT}/data2.cab || die "unpacking" |
|
fi |
|
rm -rf _* |
|
mv NWN_Platinum/Miles/* miles/ |
|
mv NWN_Platinum/ambient/*.wav ambient/ |
|
mv NWN_Platinum/docs . |
|
mv NWN_Platinum/modules . |
|
mv NWN_Platinum/nwm . |
|
mv NWN_Platinum/utils/nwupdateskins/*.bmp utils/nwupdateskins/ |
|
rm -rf NWN_Platinum/ |
|
;; |