2012-10-16 17:16:43 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2012-11-22 17:13:06 +01:00
|
|
|
set -e -u
|
|
|
|
|
2012-11-22 17:20:08 +01:00
|
|
|
GCM_SENDER_ID=${GCM_SENDER_ID:-""}
|
|
|
|
|
2012-10-16 17:16:43 +02:00
|
|
|
if [ -z "$GCM_SENDER_ID" ]; then
|
2012-11-22 17:13:06 +01:00
|
|
|
echo "GCM_SENDER_ID empty; GCM use will be disabled" >&2
|
2012-10-16 17:16:43 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
cat <<EOF
|
|
|
|
// Auto-generated: DO NOT CHECK THIS IN until questions about
|
|
|
|
// obscuring the id are cleared up
|
2012-11-02 13:35:31 +01:00
|
|
|
package org.eehouse.android.xw4;
|
2012-10-16 17:16:43 +02:00
|
|
|
|
|
|
|
public class GCMConsts {
|
|
|
|
public static final String SENDER_ID = "${GCM_SENDER_ID}";
|
|
|
|
}
|
|
|
|
EOF
|