]> git.cameronkatri.com Git - apple_cmds.git/blob - system_cmds/dynamic_pager.tproj/generate_plist.sh
shell_cmds: Install sh as ash
[apple_cmds.git] / system_cmds / dynamic_pager.tproj / generate_plist.sh
1 #!/bin/sh
2 set -e
3 set -x
4
5 cp "${SCRIPT_INPUT_FILE_0}" "${SCRIPT_OUTPUT_FILE_0}"
6 case "$PLATFORM_NAME" in
7 iphone*|appletv*|watch*|bridge*)
8 /usr/libexec/PlistBuddy -c "Add :LaunchOnlyOnce bool true" "${SCRIPT_OUTPUT_FILE_0}"
9 ;;
10 macosx)
11 ;;
12 *)
13 echo "Unsupported platform: $PLATFORM_NAME"
14 exit 1
15 ;;
16 esac