[Rt-commit] rt branch, 4.4/search-attributes-scaffolding, created. rt-4.4.1-306-gaf10dc9

Shawn Moore shawn at bestpractical.com
Wed Feb 15 16:43:13 EST 2017


The branch, 4.4/search-attributes-scaffolding has been created
        at  af10dc9d1e12b1aa48759927aacfe5395993a203 (commit)

- Log -----------------------------------------------------------------
commit af10dc9d1e12b1aa48759927aacfe5395993a203
Author: Shawn M Moore <shawn at bestpractical.com>
Date:   Wed Feb 15 16:41:47 2017 -0500

    Templatize and install rt-search-attributes
    
    rt-search-attributes was a standalone script dropped into the repo's
    sbin/ but it was neither templated (*.in) to take Perl or RT paths,
    nor was it installed into /opt/rt4.

diff --git a/.gitignore b/.gitignore
index 35850b0..2aa2450 100644
--- a/.gitignore
+++ b/.gitignore
@@ -32,6 +32,7 @@
 /sbin/rt-externalize-attachments
 /sbin/rt-fulltext-indexer
 /sbin/rt-preferences-viewer
+/sbin/rt-search-attributes
 /sbin/rt-server
 /sbin/rt-server.fcgi
 /sbin/rt-session-viewer
diff --git a/Makefile.in b/Makefile.in
index 464bda0..fd412f1 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -149,6 +149,7 @@ SYSTEM_BINARIES		=	rt-attributes-viewer \
 				rt-importer \
 				rt-ldapimport \
 				rt-preferences-viewer \
+				rt-search-attributes \
 				rt-serializer \
 				rt-server \
 				rt-server.fcgi \
diff --git a/configure.ac b/configure.ac
index 6b9e88c..65a342c 100755
--- a/configure.ac
+++ b/configure.ac
@@ -478,6 +478,7 @@ AC_CONFIG_FILES([
                  sbin/rt-validator
                  sbin/rt-validate-aliases
                  sbin/rt-email-group-admin
+                 sbin/rt-search-attributes
                  sbin/rt-server
                  sbin/rt-server.fcgi
                  sbin/standalone_httpd
diff --git a/sbin/rt-search-attributes b/sbin/rt-search-attributes.in
similarity index 98%
rename from sbin/rt-search-attributes
rename to sbin/rt-search-attributes.in
index 0b247e3..25cda61 100755
--- a/sbin/rt-search-attributes
+++ b/sbin/rt-search-attributes.in
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!@PERL@
 # BEGIN BPS TAGGED BLOCK {{{
 #
 # COPYRIGHT:
@@ -53,7 +53,7 @@ use warnings;
 BEGIN { # BEGIN RT CMD BOILERPLATE
     require File::Spec;
     require Cwd;
-    my @libs = ("lib", "local/lib");
+    my @libs = ("@RT_LIB_PATH@", "@LOCAL_LIB_PATH@");
     my $bin_path;
 
     for my $lib (@libs) {

-----------------------------------------------------------------------


More information about the rt-commit mailing list