diff --git a/README b/README index 198b5c1a586d5ae6c8e05bc2e6d77b1fef9016ba..624d367b7bca662ca48989dafb746958b7058c98 100644 --- a/README +++ b/README @@ -4,4 +4,6 @@ Calling svg-kparse on a k script outputs SVG directly to stdout. Calling www-kparse on a k script outputs (to stdout) your image embedded in an HTML page for easy previewing. I've found it handy to run www-kparse as a CGI script, enabling quick previews via a Web browser. +Make sure you set $KHOME appropriately in each both *-kparse script. + This software is licensed under the GNU LGPL v3. Its author and maintainer is Phil Yeeles . diff --git a/svg-kparse b/svg-kparse index 747ad10e1780c6ac6ef9643187c4927c71b77824..441359136f95b539ea06a39acb8ed71841426161 100755 --- a/svg-kparse +++ b/svg-kparse @@ -1,5 +1,8 @@ -#!/bin/sh +#!/usr/bin env sh + +KHOME=/home/phil/build/ngn-k + echo "Content-type: image/svg" echo "" -k $@ | xargs echo +$KHOME/k $@ | xargs echo exit 0 diff --git a/www-kparse b/www-kparse index eba68233475c6a53b2bd7ef192281f93b52d5c8f..213765b08f5f8458b25827b7420fc7ea59501633 100755 --- a/www-kparse +++ b/www-kparse @@ -1,7 +1,10 @@ #!/bin/sh + +KHOME=/home/phil/build/ngn-k + echo "Content-type: text/html" echo "" echo "ksvg: Preview" -k $@ | xargs echo +$KHOME/k $@ | xargs echo echo "" exit 0