From: Ian Silvester <iansilvester@fastmail.fm>
Date: Fri, 4 Jan 2013 21:36:15 +0000 (+0000)
Subject: Serve the user manual locally
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/developer-manual/static/@proxy-info-url@?a=commitdiff_plain;h=030221d958b74b3e1d13e0cc9d4d23018f951c8d;p=OSXPackageBuilder.git

Serve the user manual locally
---

diff --git a/constructPkgContent.sh b/constructPkgContent.sh
index b7da5fd..ac2edb2 100755
--- a/constructPkgContent.sh
+++ b/constructPkgContent.sh
@@ -71,11 +71,12 @@ done
 # Enter the correct values for confdir and logdir into the config file 
 echo ""
 echo ""
-echo "Copy the config file from the '${SOURCE_DIR}' directory, modifying the confdir and logdir in passing"
+echo "Copy the config file from the '${SOURCE_DIR}' directory, modifying the confdir, logdir and user-manual settings in passing"
 echo ""
-sed 's/confdir ./confdir \/usr\/local\/etc\/privoxy/g' ../${SOURCE_DIR}/config > pkg\ content/usr/local/etc/privoxy/vanilla/config_temp
-sed 's/logdir ./logdir \/var\/log\/privoxy/g' pkg\ content/usr/local/etc/privoxy/vanilla/config_temp > pkg\ content/usr/local/etc/privoxy/vanilla/config
-rm -f pkg\ content/usr/local/etc/privoxy/vanilla/config_temp
+sed 's/confdir ./confdir \/usr\/local\/etc\/privoxy/g' ../${SOURCE_DIR}/config > pkg\ content/usr/local/etc/privoxy/vanilla/config_temp1
+sed 's/logdir ./logdir \/var\/log\/privoxy/g' pkg\ content/usr/local/etc/privoxy/vanilla/config_temp1 > pkg\ content/usr/local/etc/privoxy/vanilla/config_temp2
+sed 's/#user-manual http:\/\/www.privoxy.org\/user-manual\//user-manual \/usr\/local\/share\/doc\/privoxy\/user-manual\//g' pkg\ content/usr/local/etc/privoxy/vanilla/config_temp2 > pkg\ content/usr/local/etc/privoxy/vanilla/config
+rm -f pkg\ content/usr/local/etc/privoxy/vanilla/config_temp*
 
 # Copy the documentation hierarchy from the '${SOURCE_DIR}' directory
 echo ""