about summary refs log tree commit diff
path: root/nixpkgs/pkgs/games/freeorion/fix-paths.sh
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/games/freeorion/fix-paths.sh')
-rw-r--r--nixpkgs/pkgs/games/freeorion/fix-paths.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/games/freeorion/fix-paths.sh b/nixpkgs/pkgs/games/freeorion/fix-paths.sh
new file mode 100644
index 000000000000..def017ddc5b0
--- /dev/null
+++ b/nixpkgs/pkgs/games/freeorion/fix-paths.sh
@@ -0,0 +1,6 @@
+#!@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