summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-03-23 21:28:37 +0000
committerNick Mathewson <nickm@torproject.org>2005-03-23 21:28:37 +0000
commitfbf2289d3722d8acc691794cfb32cb01832a5cf4 (patch)
treec450845f4fe617586bfe7811c76cb0503c780615 /contrib
parenta799dad93726467480c7e1473a2fa4744176ca87 (diff)
downloadtor-fbf2289d3722d8acc691794cfb32cb01832a5cf4.tar.gz
tor-fbf2289d3722d8acc691794cfb32cb01832a5cf4.zip
Remove @LOCALSTATEDIR@ macros when building windows package
svn:r3842
Diffstat (limited to 'contrib')
-rw-r--r--contrib/package_nsis.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/package_nsis.sh b/contrib/package_nsis.sh
index 8ad3e391c3..479dd43381 100644
--- a/contrib/package_nsis.sh
+++ b/contrib/package_nsis.sh
@@ -24,7 +24,11 @@ man2html doc/tor.1.in > win_tmp/tmp/tor-reference.html
man2html doc/tor-resolve.1 > win_tmp/tmp/tor-resolve.html
clean_newlines() {
- perl -pe 'BEGIN {undef $;} s/^\n$/\r\n/mg; s/([^\r])\n$/\1\r\n/mg;' $1 >$2
+ perl -pe 'BEGIN {undef $/;} s/^\n$/\r\n/mg; s/([^\r])\n$/\1\r\n/mg;' $1 >$2
+}
+
+clean_localstatedir() {
+ perl -pe 'BEGIN {undef $/;} s/^\n$/\r\n/mg; s/([^\r])\n$/\1\r\n/mg; s{\@LOCALSTATEDIR\@/(lib|log)/tor/}{\\Application Data\\Tor\\}' $1 >$2
}
for fn in CLIENTS tor-spec.txt HACKING rend-spec.txt control-spec.txt \
@@ -42,7 +46,7 @@ for fn in README AUTHORS ChangeLog LICENSE; do \
clean_newlines $fn win_tmp/$fn
done
-clean_newlines src/config/torrc.sample.in win_tmp/src/config/torrc.sample
+clean_localstatedir src/config/torrc.sample.in win_tmp/src/config/torrc.sample
cp contrib/tor.nsi win_tmp/contrib