Skip to content

Commit 2bc01b1

Browse files
committed
Only one place to obtain Duke3D shareware
1 parent 07041be commit 2bc01b1

File tree

2 files changed

+10
-25
lines changed

2 files changed

+10
-25
lines changed

Diff for: scriptmodules/ports/eduke32.sh

+9-11
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,14 @@ function install_eduke32() {
7676

7777
function game_data_eduke32() {
7878
local dest="$romdir/ports/duke3d"
79-
if [[ "$md_id" == "eduke32" ]]; then
80-
if [[ ! -n $(find $dest -maxdepth 1 -iname duke3d.grp) ]]; then
81-
mkUserDir "$dest"
82-
local temp="$(mktemp -d)"
83-
download "$__archive_url/3dduke13.zip" "$temp"
84-
unzip -L -o "$temp/3dduke13.zip" -d "$temp" dn3dsw13.shr
85-
unzip -L -o "$temp/dn3dsw13.shr" -d "$dest" duke3d.grp duke.rts
86-
rm -rf "$temp"
87-
chown -R $user:$user "$dest"
88-
fi
79+
if [[ ! -n $(find $dest -maxdepth 1 -iname duke3d.grp) ]]; then
80+
mkUserDir "$dest"
81+
local temp="$(mktemp -d)"
82+
download "$__archive_url/3dduke13.zip" "$temp"
83+
unzip -L -o "$temp/3dduke13.zip" -d "$temp" dn3dsw13.shr
84+
unzip -L -o "$temp/dn3dsw13.shr" -d "$dest" duke3d.grp duke.rts
85+
rm -rf "$temp"
86+
chown -R $user:$user "$dest"
8987
fi
9088
}
9189

@@ -107,7 +105,7 @@ function configure_eduke32() {
107105
rm -f "$romdir/ports/Duke3D Shareware.sh"
108106

109107
if [[ "$md_mode" == "install" ]]; then
110-
game_data_eduke32
108+
[[ "$md_id" == "eduke32" ]] && game_data_eduke32
111109

112110
touch "$config"
113111
iniConfig " " '"' "$config"

Diff for: scriptmodules/ports/jfduke3d.sh

+1-14
Original file line numberDiff line numberDiff line change
@@ -75,19 +75,6 @@ function install_jfduke3d() {
7575
fi
7676
}
7777

78-
function game_data_jfduke3d() {
79-
local dest="$romdir/ports/duke3d"
80-
if [[ ! -n $(find $dest -maxdepth 1 -iname duke3d.grp) ]]; then
81-
mkUserDir "$dest"
82-
local temp="$(mktemp -d)"
83-
download "$__archive_url/3dduke13.zip" "$temp"
84-
unzip -L -o "$temp/3dduke13.zip" -d "$temp" dn3dsw13.shr
85-
unzip -L -o "$temp/dn3dsw13.shr" -d "$dest" duke3d.grp duke.rts
86-
rm -rf "$temp"
87-
chown -R $user:$user "$dest"
88-
fi
89-
}
90-
9178
function config_file_jfduke3d() {
9279
local config="$1"
9380
if [[ -f "$config" ]] || isPlatform "x86"; then
@@ -113,6 +100,6 @@ function configure_jfduke3d() {
113100
if [[ "$md_mode" != "install" ]]; then
114101
return
115102
fi
116-
game_data_jfduke3d
103+
game_data_eduke32
117104
config_file_jfduke3d "$md_conf_root/jfduke3d/duke3d.cfg"
118105
}

0 commit comments

Comments
 (0)