gfse: somewhat simplified configuration/installation

This commit is contained in:
hallgren
2011-03-28 15:04:43 +00:00
parent 06a29cb573
commit d1b95cef99
3 changed files with 34 additions and 11 deletions

View File

@@ -0,0 +1,19 @@
#!/bin/bash
echo "Content-Type: text/javascript"
echo ""
case "$QUERY_STRING" in
jsonp=*) prefix="${QUERY_STRING#jsonp=}("; suffix=")" ;;
*) prefix=""; suffix=""
esac
echo -n "$prefix"
sep="["
for g in *.pgf ; do
echo -n "$sep\"$g\""
sep=", "
done
echo "]$suffix"
#echo "/*"
#set
#echo "*/"