xwords/xwords4/android/scripts/gen_gcmid.sh

29 lines
707 B
Bash
Raw Normal View History

#!/bin/sh
set -e -u
2012-11-22 17:20:08 +01:00
GCM_SENDER_ID=${GCM_SENDER_ID:-""}
2014-02-10 16:32:16 +01:00
CRITTERCISM_APP_ID=${CRITTERCISM_APP_ID:-""}
2012-11-22 17:20:08 +01:00
if [ -z "$GCM_SENDER_ID" ]; then
echo "GCM_SENDER_ID empty; GCM use will be disabled" >&2
fi
2014-02-10 16:32:16 +01:00
if [ -z "$CRITTERCISM_APP_ID" ]; then
echo "CRITTERCISM_APP_ID empty; Crittercism will not be enabled" >&2
fi
PKG=$1
cat <<EOF
// Auto-generated: DO NOT CHECK THIS IN until questions about
2014-02-10 16:32:16 +01:00
// obscuring various ids are cleared up. For now they're not meant
// to be committed to public repos.
package org.eehouse.android.$PKG;
public class GCMConsts {
public static final String SENDER_ID = "${GCM_SENDER_ID}";
2014-02-10 16:32:16 +01:00
public static final String CRITTERCISM_APP_ID = "${CRITTERCISM_APP_ID}";
}
EOF