Remove MSYSLibs from installer component list.
[tor/rransom.git] / contrib / package_nsis.sh
blob863dfdff9d2127416f0e1746bd7425bd57930ccb
1 #!/bin/sh
3 # Script to package a Tor installer on win32. This script assumes that
4 # you have already built Tor, that you are running cygwin, and that your
5 # environment is basically exactly the same as Nick's.
7 # This file is obsolete.
9 rm -rf win_tmp
10 mkdir win_tmp
11 mkdir win_tmp/bin
12 mkdir win_tmp/contrib
13 mkdir win_tmp/doc
14 mkdir win_tmp/doc/design-paper
15 mkdir win_tmp/doc/contrib
16 mkdir win_tmp/src
17 mkdir win_tmp/src/config
18 mkdir win_tmp/tmp
20 cp Win32Build/vc7/Tor/Debug/Tor.exe win_tmp/bin/tor.exe
21 cp Win32Build/vc7/tor_resolve/Debug/tor_resolve.exe win_tmp/bin
22 cp c:/windows/system32/libeay32.dll win_tmp/bin
23 cp c:/windows/system32/ssleay32.dll win_tmp/bin
25 man2html doc/tor.1.in > win_tmp/tmp/tor-reference.html
26 man2html doc/tor-resolve.1 > win_tmp/tmp/tor-resolve.html
28 clean_newlines() {
29 perl -pe 's/^\n$/\r\n/mg; s/([^\r])\n$/\1\r\n/mg;' $1 >$2
32 clean_localstatedir() {
33 perl -pe 's/^\n$/\r\n/mg; s/([^\r])\n$/\1\r\n/mg; s{\@LOCALSTATEDIR\@/(lib|log)/tor/}{C:\\Documents and Settings\\Application Data\\Tor\\}' $1 >$2
36 for fn in tor-spec.txt HACKING rend-spec.txt control-spec.txt \
37 tor-doc.html tor-doc.css version-spec.txt; do
38 clean_newlines doc/$fn win_tmp/doc/$fn
39 done
41 cp doc/design-paper/tor-design.pdf win_tmp/doc/design-paper/tor-design.pdf
43 for fn in tor-reference.html tor-resolve.html; do \
44 clean_newlines win_tmp/tmp/$fn win_tmp/doc/$fn
45 done
47 for fn in README AUTHORS ChangeLog LICENSE; do \
48 clean_newlines $fn win_tmp/$fn
49 done
51 clean_localstatedir src/config/torrc.sample.in win_tmp/src/config/torrc.sample
53 cp contrib/tor.nsi win_tmp/contrib
55 cd win_tmp/contrib
56 makensis tor.nsi
57 mv tor-*.exe ../..