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