]> sourceware.org Git - lvm2.git/commitdiff
change awk path
authorAlasdair Kergon <agk@redhat.com>
Fri, 30 Apr 2010 13:58:08 +0000 (13:58 +0000)
committerAlasdair Kergon <agk@redhat.com>
Fri, 30 Apr 2010 13:58:08 +0000 (13:58 +0000)
configure.in
make.tmpl.in
scripts/relpath.awk

index ed9e631dd124d68976f2656cddc45a5922bb1edd..459455997a0f9eeba7371f5ccdd0a68bdedf97f8 100644 (file)
@@ -1048,6 +1048,7 @@ LVM_LIBAPI=`echo "$VER" | $AWK -F '[[()]]' '{print $2}'`
 
 ################################################################################
 AC_SUBST(APPLIB)
+AC_SUBST(AWK)
 AC_SUBST(BUILD_CMIRRORD)
 AC_SUBST(BUILD_DMEVENTD)
 AC_SUBST(CCS_CFLAGS)
index 5e7f44fd0916e63eca3ef9e3ed93af964d3a7a84..a2fe0035e2fe772ee4b74ebb3cf0ab16005d2914 100644 (file)
@@ -28,6 +28,7 @@ GENHTML = @GENHTML@
 LN_S = @LN_S@
 SED = @SED@
 CFLOW_CMD = @CFLOW_CMD@
+AWK = @AWK@
 
 LIBS = @LIBS@
 # Extra libraries always linked with static binaries
@@ -63,7 +64,7 @@ localedir = $(DESTDIR)@LOCALEDIR@
 staticdir = $(DESTDIR)@STATICDIR@
 udevdir = $(DESTDIR)@udevdir@
 USRLIB_RELPATH = $(shell echo $(abspath $(usrlibdir) $(libdir)) | \
-  awk -f $(top_srcdir)/scripts/relpath.awk)
+  $(AWK) -f $(top_srcdir)/scripts/relpath.awk)
 
 # Setup vpath search paths for some suffixes
 vpath %.c $(srcdir)
@@ -142,13 +143,13 @@ STRIP=
 LVM_VERSION := $(shell cat $(top_srcdir)/VERSION)
 
 LIB_VERSION_LVM := $(shell cat $(top_srcdir)/VERSION | \
-                    awk -F '.' '{printf "%s.%s",$$1,$$2}')
+                    $(AWK) -F '.' '{printf "%s.%s",$$1,$$2}')
 
 LIB_VERSION_DM := $(shell cat $(top_srcdir)/VERSION_DM | \
-                   awk -F '.' '{printf "%s.%s",$$1,$$2}')
+                   $(AWK) -F '.' '{printf "%s.%s",$$1,$$2}')
 
 LIB_VERSION_APP := $(shell cat $(top_srcdir)/VERSION | \
-                    awk -F '[(). ]' '{printf "%s.%s",$$1,$$4}')
+                    $(AWK) -F '[(). ]' '{printf "%s.%s",$$1,$$4}')
 
 INCLUDES += -I. -I$(top_builddir)/include
 
index 26fe1eeaad6b6d5b837fde2ece35f86db166a8ae..0d3c1ef175bd174eeff96c7f76dc62e0fe3568b4 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/awk -f
+#!/bin/awk -f
 #
 # Copyright (C) 2010 Red Hat, Inc. All rights reserved.
 #
This page took 0.042778 seconds and 5 git commands to generate.