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

This commit is contained in:
Johannes 'fish' Ziemke 2013-03-19 15:51:05 +01:00
parent fc16580b4c
commit 59f8ba9121
1 changed files with 3 additions and 3 deletions

View File

@ -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