x plane: Add ortho4XP scenery update script to x-plane-env
parent
04b4442abb
commit
32fa0d93b3
|
@ -35,10 +35,15 @@ let
|
||||||
Installer run Installer
|
Installer run Installer
|
||||||
SHELL run bash inside FHS environment
|
SHELL run bash inside FHS environment
|
||||||
prepare prepare all currently activated addons
|
prepare prepare all currently activated addons
|
||||||
revert [ADDON]... remove modifications from named addons
|
revert [ADDON]...
|
||||||
navdata FILE [OLDCYCLE] update navigation DB
|
remove modifications from named addons
|
||||||
/abs/path [ARG]... run /abs/path inside FHS environment
|
navdata FILE [OLDCYCLE]
|
||||||
rel/path [ARG]... run $XPLANEPATH/rel/path inside FHS environment
|
update navigation DB
|
||||||
|
ortho update links to zOrtho4XP scenery files
|
||||||
|
/abs/path [ARG]...
|
||||||
|
run /abs/path inside FHS environment
|
||||||
|
rel/path [ARG]...
|
||||||
|
run $XPLANEPATH/rel/path inside FHS environment
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
sys=${stdenv.targetPlatform.system}
|
sys=${stdenv.targetPlatform.system}
|
||||||
|
@ -57,6 +62,7 @@ let
|
||||||
prepare) exec ${prepareScript} ;;
|
prepare) exec ${prepareScript} ;;
|
||||||
revert) shift; exec ${revertScript} "$@" ;;
|
revert) shift; exec ${revertScript} "$@" ;;
|
||||||
navdata) shift; exec ${navdbScript} "$@" ;;
|
navdata) shift; exec ${navdbScript} "$@" ;;
|
||||||
|
ortho) exec ${orthoScript} ;;
|
||||||
/*) exec "$@" ;;
|
/*) exec "$@" ;;
|
||||||
*) shift; exec "''${XPLANEPATH}/$bin" "$@" ;;
|
*) shift; exec "''${XPLANEPATH}/$bin" "$@" ;;
|
||||||
esac
|
esac
|
||||||
|
@ -166,6 +172,17 @@ let
|
||||||
ln -sf "$newpath" "$XPLANEPATH/Custom Data"
|
ln -sf "$newpath" "$XPLANEPATH/Custom Data"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
orthoScript = writeScript "update-scenery-packs-ini" ''
|
||||||
|
: ''${XPLANEPATH:=${xplanePathStr}}
|
||||||
|
(
|
||||||
|
cd "$XPLANEPATH"
|
||||||
|
sed -i -e '/^SCENERY_PACK Custom Scenery\/zOrtho4XP_.*$/d' "Custom Scenery/scenery_packs.ini"
|
||||||
|
for f in "Custom Scenery/zOrtho4XP_"*; do
|
||||||
|
echo "SCENERY_PACK $f"
|
||||||
|
done >>"Custom Scenery/scenery_packs.ini"
|
||||||
|
)
|
||||||
|
'';
|
||||||
|
|
||||||
in buildFHSUserEnv rec {
|
in buildFHSUserEnv rec {
|
||||||
name = "x-plane-env";
|
name = "x-plane-env";
|
||||||
passthru = { inherit addons; };
|
passthru = { inherit addons; };
|
||||||
|
|
Loading…
Reference in New Issue