Merge pull request #69370 from chkno/no-extra-flags
makeWrapper: Remove unused extraFlagsArray feature
This commit is contained in:
@@ -19,9 +19,6 @@ assertExecutable() {
|
|||||||
# the environment
|
# the environment
|
||||||
# --unset VAR : remove VAR from the environment
|
# --unset VAR : remove VAR from the environment
|
||||||
# --run COMMAND : run command before the executable
|
# --run COMMAND : run command before the executable
|
||||||
# The command can push extra flags to a magic list
|
|
||||||
# variable extraFlagsArray, which are then added to
|
|
||||||
# the invocation of the executable
|
|
||||||
# --add-flags FLAGS : add FLAGS to invocation of executable
|
# --add-flags FLAGS : add FLAGS to invocation of executable
|
||||||
|
|
||||||
# --prefix ENV SEP VAL : suffix/prefix ENV with VAL, separated by SEP
|
# --prefix ENV SEP VAL : suffix/prefix ENV with VAL, separated by SEP
|
||||||
@@ -109,12 +106,8 @@ makeWrapper() {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Note: extraFlagsArray is an array containing additional flags
|
|
||||||
# that may be set by --run actions.
|
|
||||||
# Silence warning about unexpanded extraFlagsArray:
|
|
||||||
# shellcheck disable=SC2016
|
|
||||||
echo exec ${argv0:+-a \"$argv0\"} \""$original"\" \
|
echo exec ${argv0:+-a \"$argv0\"} \""$original"\" \
|
||||||
"$flagsBefore" '"${extraFlagsArray[@]}"' '"$@"' >> "$wrapper"
|
"$flagsBefore" '"$@"' >> "$wrapper"
|
||||||
|
|
||||||
chmod +x "$wrapper"
|
chmod +x "$wrapper"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ wrapGSMake() {
|
|||||||
|
|
||||||
export GNUSTEP_CONFIG_FILE="$config"
|
export GNUSTEP_CONFIG_FILE="$config"
|
||||||
|
|
||||||
exec "$wrapped" "\$@" "\${extraFlagsArray[@]}"
|
exec "$wrapped" "\$@"
|
||||||
EOF
|
EOF
|
||||||
chmod +x "$program"
|
chmod +x "$program"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,4 +9,4 @@ fi
|
|||||||
|
|
||||||
initString+="]}}"
|
initString+="]}}"
|
||||||
|
|
||||||
exec -a "$0" "@out@/bin/@wrapped@" "${initString}" "${extraFlagsArray[@]}" "$@"
|
exec -a "$0" "@out@/bin/@wrapped@" "${initString}" "$@"
|
||||||
|
|||||||
@@ -9,4 +9,4 @@ fi
|
|||||||
|
|
||||||
initString+="]}"
|
initString+="]}"
|
||||||
|
|
||||||
exec -a "$0" "@out@/bin/@wrapped@" "${initString}" "${extraFlagsArray[@]}" "$@"
|
exec -a "$0" "@out@/bin/@wrapped@" "${initString}" "$@"
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ let
|
|||||||
cat > "$out/bin/simutrans" <<EOF
|
cat > "$out/bin/simutrans" <<EOF
|
||||||
#!${runtimeShell}
|
#!${runtimeShell}
|
||||||
cd "$out"/share/simutrans
|
cd "$out"/share/simutrans
|
||||||
exec "${binaries}/bin/simutrans" -use_workdir "\''${extraFlagsArray[@]}" "\$@"
|
exec "${binaries}/bin/simutrans" -use_workdir "\$@"
|
||||||
EOF
|
EOF
|
||||||
chmod +x "$out/bin/simutrans"
|
chmod +x "$out/bin/simutrans"
|
||||||
'';
|
'';
|
||||||
|
|||||||
Reference in New Issue
Block a user