build-scripts/update-copyright.sh
author Sam Lantinga <slouken@libsdl.org>
Fri, 26 Oct 2018 09:27:31 -0700
changeset 12360 a21c0a3bf183
parent 10739 1887bc9a89e2
permissions -rwxr-xr-x
Don't build SDL_JOYSTICK_HIDAPI by default on iOS
If you enable this, you'll need to link with CoreBluetooth.framework and add something like this to your Info.plist:
<key>NSBluetoothPeripheralUsageDescription</key>
<string>MyApp would like to remain connected to nearby bluetooth Game Controllers and Game Pads even when you're not using the app.</string>
slouken@9618
     1
#!/bin/sh
slouken@9618
     2
slouken@9618
     3
find . -type f -exec grep -Il "Copyright" {} \;     \
slouken@9618
     4
| grep -v \.hg                             \
slouken@10738
     5
| while read file;                            \
slouken@9618
     6
do \
slouken@10739
     7
  LC_ALL=C sed -b -i "s/\(.*Copyright.*\)[0-9]\{4\}\( *Sam Lantinga\)/\1`date +%Y`\2/" "$file"; \
slouken@9618
     8
done