[PATCH 2/4] 'head -1' is deprecated syntax.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: MATSUU Takuto <matsuu@xxxxxxxxxx>

---
 configure.ac |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index aee4dd0..502924c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -259,7 +259,7 @@ fi
 
 if test "x$BUILD_MOD_GLUSTERFS" = "xyes"; then
    HTTPD_BIN_DIR=`$APXS -q SBINDIR`
-   MOD_GLUSTERFS_HTTPD_VERSION=`$HTTPD_BIN_DIR/httpd -V | head -1 | awk "{print $3}" | sed 's/[[^0-9.]]//g' |        sed 's/\(.*\..*\)\..*/\1/'`
+   MOD_GLUSTERFS_HTTPD_VERSION=`$HTTPD_BIN_DIR/httpd -V | head -n 1 | awk "{print $3}" | sed 's/[[^0-9.]]//g' |        sed 's/\(.*\..*\)\..*/\1/'`
 fi
 
 if test "x$with_apxspath" != "x"; then
@@ -278,7 +278,7 @@ fi
 
 if test "x$APACHE_MANUAL" = "xyes"; then
    HTTPD_BIN_DIR=`$APXS_MANUAL -q SBINDIR`
-   MOD_GLUSTERFS_HTTPD_VERSION=`$HTTPD_MANUAL -V | head -1 | awk "{print $3}" | sed 's/[[^0-9.]]//g' | sed 's/\(.*\..*\)\..*/\1/'`
+   MOD_GLUSTERFS_HTTPD_VERSION=`$HTTPD_MANUAL -V | head -n 1 | awk "{print $3}" | sed 's/[[^0-9.]]//g' | sed 's/\(.*\..*\)\..*/\1/'`
    APXS=$APXS_MANUAL
 fi
 
-- 
1.6.3





[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux