Last change
on this file since 998 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
|
---|
9 | GSDLHOME=`pwd`
|
---|
10 | export GSDLHOME
|
---|
11 | GSDLOS=`uname -s | tr A-Z a-z`
|
---|
12 | export GSDLOS
|
---|
13 | PATH=$PATH:$GSDLHOME/bin/script:$GSDLHOME/bin/$GSDLOS
|
---|
14 | export PATH
|
---|
15 |
|
---|
16 | # do the import
|
---|
17 | import.pl demo
|
---|
18 |
|
---|
19 | if (test ! -e $GSDLHOME/collect/demo/archives/archives.inf;) then
|
---|
20 | echo "import.pl failed"; exit 1;
|
---|
21 | fi
|
---|
22 |
|
---|
23 | # do the build
|
---|
24 | buildcol.pl demo
|
---|
25 |
|
---|
26 | if (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
|
---|
30 | fi
|
---|
31 |
|
---|
32 | if (test ! -d $GSDLHOME/collect/demo/building/index;) then
|
---|
33 | mkdir $GSDLHOME/collect/demo/index
|
---|
34 | fi
|
---|
35 |
|
---|
36 | # move built indexes to index directory
|
---|
37 | mv $GSDLHOME/collect/demo/building/* $GSDLHOME/collect/demo/index
|
---|
Note:
See
TracBrowser
for help on using the repository browser.