Replace popd/pushd because travis' /bin/sh doesn't support it.

pull/87/head
Johannes 'fish' Ziemke 12 years ago
parent fc16580b4c
commit 59f8ba9121

@ -10,10 +10,10 @@ cat <<EOF > $type_file
var types = map [string] map [string] string {
EOF
CDIR=`pwd`
for dir in $@
do
pushd "$dir" > /dev/null
cd "$dir"
echo -e "\t\"`basename $dir`\": {"
echo -e "\t\"`basename $dir`\": {" >> $type_file
@ -30,7 +30,7 @@ do
done
echo -e "\t}," >> $type_file
echo -e "\t},"
popd > /dev/null
cd $CDIR
done
echo '}'
cat $type_file

Loading…
Cancel
Save