source: gs3-extensions/tabletop-dl/trunk/RSYNC-INSTALL-TABLETOP-DL.sh

Last change on this file was 37572, checked in by davidb, 13 months ago

Now with css theme selector in control bar

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1#!/bin/bash
2
3dst_dir=../../web/ext/tabletop-dl
4
5echo ""
6echo "****"
7echo "Rsyncing extension files to: $dst_dir"
8echo "****"
9echo ""
10
11dst_dir=../../web/ext/tabletop-dl
12
13if [ ! -d $dst_dir ] ; then
14 echo "Making directory $dst_dir"
15 mkdir $dst_dir
16fi
17
18rsync -pav \
19 interactjs-dist \
20 winbox-with-interactjs-dist \
21 winbox-interact.js \
22 tabletop*.* \
23 backgrounds \
24 $dst_dir/.
25
26
27
28rsync -pav tabletop.xsl ../../web/interfaces/default/transform/pages/tabletop.xsl
29
30num_lines=`fgrep tabletop.xsl ../../web/interfaces/default/interfaceConfig.xml | wc -l`
31
32if [ $num_lines != "1" ] ; then
33 echo ""
34 echo "****"
35 echo "To use Tabletop-DL in Greenstone3 in the default interface,"
36 echo "ensure the following file:"
37 echo ""
38 echo " ../../web/interfaces/default/interfaceConfig.xml"
39 echo ""
40 echo "has a child entry of:"
41 echo ""
42 echo ' <action class="PageAction" name="p">'
43 echo ""
44 echo "includes the line:"
45 echo ""
46 echo ' <subaction name="tabletop" xslt="pages/tabletop.xsl"/>'
47 echo "****"
48 echo ""
49fi
50
51
Note: See TracBrowser for help on using the repository browser.