]> git.saurik.com Git - apple/system_cmds.git/blob - dynamic_pager.tproj/generate_plist.sh
system_cmds-790.tar.gz
[apple/system_cmds.git] / 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