Browse Source

Fix nxengine

master
mid-kid 8 years ago
parent
commit
9cda092fec
  1. 2
      satellites/extrafiles/nxengine/nxengine.sh
  2. 4
      satellites/nxengine.sat

2
satellites/extrafiles/nxengine/nxengine.sh

@ -18,7 +18,7 @@ files="
mkdir -p "$dir_runtime" mkdir -p "$dir_runtime"
for file in $files; do for file in $files; do
[ ! -L "$dir_runtime/$(basename "$file")" ] && ln -sf -t "$dir_runtime" "$dir_prefix/$file" [ ! -L "$dir_runtime/$(basename "$file")" ] && ln -sf -t "$dir_runtime" "/$dir_prefix/$file"
done done
cd "$dir_runtime" && ./nx cd "$dir_runtime" && ./nx

4
satellites/nxengine.sat

@ -38,8 +38,8 @@ cp -r CaveStory/data "$dir_install/$dir_prefix/share/nxengine/data"
dir_runtime="$(option dir_runtime=\$HOME/.nxengine)" dir_runtime="$(option dir_runtime=\$HOME/.nxengine)"
sed -i -e "s/%PREFIX%/$(safe_sed "$dir_prefix")/" \ sed -i -e "s/%PREFIX%/$(safe_sed "$dir_prefix")/" \
-e "s/%RUNTIME%/$(safe_sed "$dir_runtime")/" \ -e "s/%RUNTIME%/$(safe_sed "$dir_runtime")/" \
-e "s/%LIBDIR%/$(safe_sed "$dir_libdir")" \ -e "s/%LIBDIR%/$(safe_sed "$dir_libdir")/" \
-e "s/%DATADIR%/$(safe_sed "$dir_datadir")" \ -e "s/%DATADIR%/$(safe_sed "$dir_datadir")/" \
nxengine.sh nxengine.sh
install -Dm755 nxengine.sh "$dir_install/$dir_prefix/$dir_bindir/nxengine" install -Dm755 nxengine.sh "$dir_install/$dir_prefix/$dir_bindir/nxengine"

Loading…
Cancel
Save