LP1204123 install opensrf-perl.pl as osrf_control
authorBill Erickson <berick@esilibrary.com>
Mon, 12 Aug 2013 15:33:11 +0000 (11:33 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Wed, 4 Sep 2013 15:07:59 +0000 (11:07 -0400)
Symlink osrf_control to opensrf-perl.pl to act as the replacement for
osrf_ctl.sh.  I chose "osrf_control" since it matches more closely to
"osrf_config" -- also it's probably less confusing than calling it
osrf_ctl, which would likely get confused w/ osrf_ctl.sh

TODO: documentation

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
src/Makefile.am

index b8c3b30..315698e 100644 (file)
@@ -69,6 +69,9 @@ install-exec-hook:
                done; \
        fi
        cp -r @srcdir@/javascript/* $(DESTDIR)$(jsdir)/
+       if [ ! -e @bindir@/osrf_control ]; then \ 
+               ln -s @bindir@/opensrf-perl.pl @bindir@/osrf_control; \
+       fi
 
 uninstall-hook:
        rm -f @includedir@/opensrf/apachetools.h