https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
6 lines
198 B
Bash
6 lines
198 B
Bash
#!@shell@
|
|
|
|
if [ -e ~/.config/freeorion/config.xml ]; then
|
|
@libxsltBin@/bin/xsltproc -o ~/.config/freeorion/config.xml @out@/share/freeorion/fix-paths.xslt ~/.config/freeorion/config.xml
|
|
fi
|
|
exit 0
|