xwords/xwords4/android/scripts/gen_gcmid.sh
Eric House 50238bea3e generate sender_id const from ENV so doesn't need to be checked in.
Now works to register as I'm using the right id.
2012-10-16 08:16:43 -07:00

16 lines
333 B
Bash
Executable file

#!/bin/sh
if [ -z "$GCM_SENDER_ID" ]; then
echo "GCM_SENDER_ID not in env"
exit 1
fi
cat <<EOF
// Auto-generated: DO NOT CHECK THIS IN until questions about
// obscuring the id are cleared up
package org.eehouse.android.xw4gcm;
public class GCMConsts {
public static final String SENDER_ID = "${GCM_SENDER_ID}";
}
EOF