mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
pass package to script so can work from variants
This commit is contained in:
parent
2eefd14231
commit
0c15a0000e
2 changed files with 7 additions and 3 deletions
|
@ -85,8 +85,10 @@
|
|||
|
||||
<exec dir="." executable="../scripts/gen_gcmid.sh"
|
||||
output="src/org/eehouse/android/xw4/GCMConsts.java"
|
||||
logError="true"
|
||||
/>
|
||||
logError="true" failonerror="true"
|
||||
>
|
||||
<arg value="xw4"/>
|
||||
</exec>
|
||||
<exec dir=".." executable="./scripts/genvers.sh" output="ant_out.txt">
|
||||
<arg value="XWords4"/>
|
||||
<arg value="xw4"/>
|
||||
|
|
|
@ -8,10 +8,12 @@ if [ -z "$GCM_SENDER_ID" ]; then
|
|||
echo "GCM_SENDER_ID empty; GCM use will be disabled" >&2
|
||||
fi
|
||||
|
||||
PKG=$1
|
||||
|
||||
cat <<EOF
|
||||
// Auto-generated: DO NOT CHECK THIS IN until questions about
|
||||
// obscuring the id are cleared up
|
||||
package org.eehouse.android.xw4;
|
||||
package org.eehouse.android.$PKG;
|
||||
|
||||
public class GCMConsts {
|
||||
public static final String SENDER_ID = "${GCM_SENDER_ID}";
|
||||
|
|
Loading…
Reference in a new issue