#!/bin/sh -e dir_prefix="%PREFIX%" dir_runtime="%RUNTIME%" files=" lib/nxengine/nx share/nxengine/font.ttf share/nxengine/smalfont.bmp share/nxengine/sprites.sif share/nxengine/tilekey.dat share/nxengine/Doukutsu.exe share/nxengine/data " mkdir -p "$dir_runtime" for file in $files; do [ ! -L "$dir_runtime/$(basename "$file")" ] && ln -sf -t "$dir_runtime" "$dir_prefix/$file" done cd "$dir_runtime" && ./nx