source: trunk/gsdl/builddemo.sh@ 995

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