LP#1136084: drop silent dependency on 'bsdmainutils' Debian/Ubuntu package
authorGalen Charlton <gmc@esilibrary.com>
Thu, 28 Feb 2013 17:39:40 +0000 (12:39 -0500)
committerJason Stephenson <jstephenson@mvlc.org>
Tue, 5 Mar 2013 13:38:15 +0000 (08:38 -0500)
colrm is a perfectly good command, but isn't guaranteed to be
present on a minimal Ubuntu system.  This patch replaces ti with
with cut, which is more likely to be present (including on *BSD
servers).

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/src/extras/autogen.sh

index 0311bbe..acecbba 100755 (executable)
@@ -167,7 +167,7 @@ done;
                        md5sum $file
                fi
        done
-) | md5sum | cut -f1 -d' ' | colrm 1 26 > LOCALSTATEDIR/web/eg_cache_hash
+) | md5sum | cut -f1 -d' ' | cut -b 27-32 > LOCALSTATEDIR/web/eg_cache_hash
 
 echo
 echo -n "Current Evergreen cache key: "