add marc_export to list of scripts installed in /openils/bin
authorgmc <gmc@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 20 Apr 2011 13:47:09 +0000 (13:47 +0000)
committergmc <gmc@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 20 Apr 2011 13:47:09 +0000 (13:47 +0000)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>

git-svn-id: svn://svn.open-ils.org/ILS/trunk@20237 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/Makefile.am
Open-ILS/src/support-scripts/marc_export.in [moved from Open-ILS/src/support-scripts/marc_export with 99% similarity]
configure.ac

index 7f96111..7d52ad5 100644 (file)
@@ -139,7 +139,7 @@ if BUILDEGJAVA
 OILSJAVA_DIR = java
 endif
 
-bin_SCRIPTS = $(core_scripts) $(reporter_scripts) $(installautojs) @srcdir@/extras/eg_config @srcdir@/extras/fast-extract @srcdir@/extras/import/marc2are.pl @srcdir@/extras/import/marc2bre.pl @srcdir@/extras/import/marc2sre.pl @srcdir@/extras/import/parallel_pg_loader.pl
+bin_SCRIPTS = $(core_scripts) $(reporter_scripts) $(installautojs) @srcdir@/extras/eg_config @srcdir@/extras/fast-extract @srcdir@/extras/import/marc2are.pl @srcdir@/extras/import/marc2bre.pl @srcdir@/extras/import/marc2sre.pl @srcdir@/extras/import/parallel_pg_loader.pl $(supportscr)/marc_export
 data_DATA = $(core_data) $(reporter_data)
 
 # Take care of which subdirectories to build, and which extra files to include in a distribution.
similarity index 99%
rename from Open-ILS/src/support-scripts/marc_export
rename to Open-ILS/src/support-scripts/marc_export.in
index 3fe5ec1..08a164e 100755 (executable)
@@ -23,7 +23,7 @@ use Getopt::Long;
 
 my @formats = qw/USMARC UNIMARC XML BRE ARE/;
 
-my $config = '/openils/conf/opensrf_core.xml';
+my $config = '@sysconfdir@/opensrf_core.xml';
 my $format = 'USMARC';
 my $encoding = 'MARC8';
 my $location = '';
@@ -72,7 +72,7 @@ in their ID sequences.
 
 Usage: $0 [options]
  --help or -h       This screen.
- --config or -c     Configuration file [/openils/conf/opensrf_core.xml]
+ --config or -c     Configuration file [@sysconfdir@/opensrf_core.xml]
  --format or -f     Output format (USMARC, UNIMARC, XML, BRE, ARE) [USMARC]
  --encoding or -e   Output encoding (UTF-8, ISO-8859-?, MARC8) [MARC8]
  --xml-idl or -x    Location of the IDL XML
index 335ab4f..8131258 100644 (file)
@@ -378,6 +378,7 @@ AC_CONFIG_FILES([Makefile
          Open-ILS/src/extras/import/marc2bre.pl
          Open-ILS/src/extras/import/marc2sre.pl
          Open-ILS/src/extras/import/parallel_pg_loader.pl
+         Open-ILS/src/support-scripts/marc_export
          Open-ILS/src/perlmods/Makefile
          Open-ILS/src/perlmods/lib/OpenILS/Utils/Cronscript.pm],
         [
@@ -387,6 +388,7 @@ AC_CONFIG_FILES([Makefile
             if test -e "./Open-ILS/src/extras/import/marc2bre.pl"; then chmod 755 Open-ILS/src/extras/import/marc2bre.pl; fi;
             if test -e "./Open-ILS/src/extras/import/marc2sre.pl"; then chmod 755 Open-ILS/src/extras/import/marc2sre.pl; fi;
             if test -e "./Open-ILS/src/extras/import/parallel_pg_loader.pl"; then chmod 755 Open-ILS/src/extras/import/parallel_pg_loader.pl; fi;
+            if test -e "./Open-ILS/src/support-scripts/marc_export"; then chmod 755 Open-ILS/src/support-scripts/marc_export; fi;
         ])
 AC_OUTPUT