Clean up deploy-examples. Now it finds examples automatically.

This commit is contained in:
Nick Martin
2013-03-18 20:53:55 -07:00
parent 331177d002
commit 1bc0a0cff8

View File

@@ -1,10 +1,18 @@
#!/bin/bash
cd $METEOR_HOME/examples;
set -e
cd `dirname $0`
cd ../examples
read -p "Prefix? " PREFIX;
for EXAMPLE in leaderboard todos wordplay parties
do
cd $EXAMPLE;
echo "meteor deploy $@ $PREFIX-$EXAMPLE;"
meteor deploy $@ $PREFIX-$EXAMPLE;
cd ..;
for EXAMPLE in * ; do
if [ -d "$EXAMPLE/.meteor" ] ; then
cd $EXAMPLE;
echo "meteor deploy $@ $PREFIX-$EXAMPLE;"
meteor deploy $@ $PREFIX-$EXAMPLE;
cd ..;
fi
done