source: main/tags/2.13/gsdl/builddemo.sh@ 21110

Last change on this file since 21110 was 998, checked in by sjboddie, 24 years ago

tidied up configuration a bit

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 891 bytes
Line 
1#! /bin/sh
2
3# this script will attempt to build the demo collection
4
5# note that this script must be run from within
6# the top level gsdl directory
7
8# set some environment variables
9GSDLHOME=`pwd`
10export GSDLHOME
11GSDLOS=`uname -s | tr A-Z a-z`
12export GSDLOS
13PATH=$PATH:$GSDLHOME/bin/script:$GSDLHOME/bin/$GSDLOS
14export PATH
15
16# do the import
17import.pl demo
18
19if (test ! -e $GSDLHOME/collect/demo/archives/archives.inf;) then
20 echo "import.pl failed"; exit 1;
21fi
22
23# do the build
24buildcol.pl demo
25
26if (test ! -e $GSDLHOME/collect/demo/building/text/demo.ldb;) then
27 if (test ! -e $GSDLHOME/collect/demo/building/text/demo.bdb;) then
28 echo "buildcol.pl failed"; exit 1;
29 fi
30fi
31
32if (test ! -d $GSDLHOME/collect/demo/building/index;) then
33 mkdir $GSDLHOME/collect/demo/index
34fi
35
36# move built indexes to index directory
37mv $GSDLHOME/collect/demo/building/* $GSDLHOME/collect/demo/index
Note: See TracBrowser for help on using the repository browser.