Last change
on this file since 995 was 975, checked in by sjboddie, 24 years ago |
added builddemo shell script to cvs
|
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
911 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 | export GSDLHOME=`pwd`
|
---|
10 | export GSDLOS=`uname -s | tr A-Z a-z`
|
---|
11 | export PATH=$PATH:$GSDLHOME/bin/script:$GSDLHOME/bin/$GSDLOS
|
---|
12 |
|
---|
13 | # do the import
|
---|
14 | import.pl demo
|
---|
15 |
|
---|
16 | if test ! -e $GSDLHOME/collect/demo/archives/archives.inf; then
|
---|
17 | echo "import.pl failed"; exit 1;
|
---|
18 | fi
|
---|
19 |
|
---|
20 | # do the build
|
---|
21 | buildcol.pl demo
|
---|
22 |
|
---|
23 | if test ! -e $GSDLHOME/collect/demo/building/text/demo.ldb; then
|
---|
24 | if test ! -e $GSDLHOME/collect/demo/building/text/demo.bdb; then
|
---|
25 | echo "buildcol.pl failed"; exit 1;
|
---|
26 | fi
|
---|
27 | fi
|
---|
28 |
|
---|
29 | if test ! -d $GSDLHOME/collect/demo/building/index; then
|
---|
30 | # rm -rf $GSDLHOME/collect/demo/index/*
|
---|
31 | else
|
---|
32 | mkdir $GSDLHOME/collect/demo/index
|
---|
33 | fi
|
---|
34 |
|
---|
35 | # move built indexes to index directory
|
---|
36 | mv $GSDLHOME/collect/demo/building/* $GSDLHOME/collect/demo/index
|
---|
Note:
See
TracBrowser
for help on using the repository browser.