source: other-projects/nz-flag-design/trunk/INSTALL.sh@ 31212

Last change on this file since 31212 was 29970, checked in by davidb, 9 years ago

Additional test added to do the right thing on Cygwin

  • Property svn:executable set to *
File size: 1.9 KB
Line 
1#!/bin/bash
2
3if [ ! -d main-form/images ] ; then
4 echo "Error: Unable to find 'main-form/images'. Have you run UNZIP.sh?" 1>&2
5 exit
6fi
7
8config_file="nz-flag-design.xml"
9
10echo ""
11echo "****"
12echo "* 1. Making 'render-3d/images/' world-writable to ensure web server can write to it"
13echo "* and also the top-levle 'published' folder"
14echo "* => chmod a+rwx render-3d/images"
15echo "* => chmod a+rwx published"
16#echo "* => chmod a+rw render-3d/images/*.png"
17echo "****"
18chmod a+rwx render-3d/images/
19chmod a+rwx published
20#chmod a+rw render-3d/images/*.png
21
22echo ""
23echo "****"
24echo "* 2. Making 'similarity-2d' world-writable so web server can save JSON data there"
25echo "* => chmod a+rwx similarity-2d"
26echo "* => chmod a+rwx similarity-2d/json-data"
27echo "****"
28chmod a+rwx similarity-2d
29chmod a+rwx similarity-2d/json-data
30
31echo ""
32echo "****"
33echo "* 3. Copying local extension files to SVG-Edit folder"
34echo "****"
35for f in main-form/svg-edit-local/* ; do
36 if [ -f $f ] ; then
37 /bin/cp $f main-form/svg-edit-trunk/editor/.
38 fi
39done
40
41/bin/cp -r main-form/svg-edit-local/extensions/* main-form/svg-edit-trunk/editor/extensions/.
42
43docBase=`pwd`
44cygpath -h > /dev/null
45if [ $? == 0 ] ; then
46 docBase=`cygpath -w $docBase`
47fi
48
49echo "<Context path=\"/nz-flag-design\"" > "$config_file"
50echo " useHttpOnly=\"false\"" >> "$config_file"
51echo " docBase=\"$docBase\"" >> "$config_file"
52echo " debug=\"1\" reloadable=\"true\"" >> "$config_file"
53echo " allowLinking=\"true\">" >> "$config_file"
54echo " <Manager pathname=\"SESSIONS.ser\" />" >> "$config_file"
55echo "</Context>" >> "$config_file"
56
57#echo ""
58echo "+++ ... Done"
59#echo ""
60
61echo "****"
62echo "* 4. Now copy:"
63echo "* $config_file"
64echo "* to:"
65echo "* <tomcat-home>/conf/Catalina/localhost/$config_file"
66echo "****"
67
68
Note: See TracBrowser for help on using the repository browser.