root/gsdl/trunk/bin/script/incremental-import.pl @ 18470

Revision 18470, 1.6 KB (checked in by davidb, 11 years ago)

Additions scripts to support full (re)building and incremental (re)building

  • Property svn:executable set to *
Line 
1#!/usr/bin/perl -w
2
3###########################################################################
4#
5# full-import.pl -- runs import.pl with -incremental option on
6# A component of the Greenstone digital library software
7# from the New Zealand Digital Library Project at the
8# University of Waikato, New Zealand.
9#
10# Copyright (C) 2009 New Zealand Digital Library Project
11#
12# This program is free software; you can redistribute it and/or modify
13# it under the terms of the GNU General Public License as published by
14# the Free Software Foundation; either version 2 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20# GNU General Public License for more details.
21#
22# You should have received a copy of the GNU General Public License
23# along with this program; if not, write to the Free Software
24# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25#
26###########################################################################
27
28
29# This program is designed to support incremental building of Greenstone
30# Runs:        import.pl -incremental ...
31
32
33use strict;
34
35my $quoted_argv = join(" ", map { "\"$_\"" } @ARGV);
36
37
38my $import_cmd = "import.pl -incremental $quoted_argv";
39
40my $import_status = system($import_cmd)/256;
41
42if ($import_status != 0) {
43    print STDERR "Error: Failed to run: $import_cmd\n";
44    print STDERR "       $!\n" if ($! ne "");
45    exit(-1);
46}
47
Note: See TracBrowser for help on using the browser.