Commit 78fc9ba5 authored by lenz@kallisto.local's avatar lenz@kallisto.local

- Fixed BUG#2297: cmd-line-utils/libedit/makelist used a hard-coded

   call to /usr/bin/awk - replaced this with the proper autoconf variable
   instead (makelist is now generated out of makelist.sh during the compile
   phase)
parent 1d75d8d5
...@@ -24,10 +24,21 @@ noinst_HEADERS = chared.h el.h histedit.h key.h \ ...@@ -24,10 +24,21 @@ noinst_HEADERS = chared.h el.h histedit.h key.h \
hist.h map.h prompt.h search.h \ hist.h map.h prompt.h search.h \
strlcpy.h libedit_term.h tty.h strlcpy.h libedit_term.h tty.h
EXTRA_DIST = makelist EXTRA_DIST = makelist.sh
CLEANFILES = makelist
DEFS = -DUNDEF_THREADS_HACK -DHAVE_CONFIG_H -DNO_KILL_INTR DEFS = -DUNDEF_THREADS_HACK -DHAVE_CONFIG_H -DNO_KILL_INTR
SUFFIXES = .sh
.sh:
@RM@ -f $@ $@-t
@SED@ \
-e 's!@''AWK''@!@AWK@!' \
$< > $@-t
@MV@ $@-t $@
vi.h: vi.c makelist vi.h: vi.c makelist
sh ./makelist -h ./vi.c > $@.tmp && \ sh ./makelist -h ./vi.c > $@.tmp && \
mv $@.tmp $@ mv $@.tmp $@
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
# makelist.sh: Automatically generate header files... # makelist.sh: Automatically generate header files...
AWK=/usr/bin/awk AWK=@AWK@
USAGE="Usage: $0 -h|-e|-fc|-fh|-bc|-bh|-m <filenames>" USAGE="Usage: $0 -h|-e|-fc|-fh|-bc|-bh|-m <filenames>"
if [ "x$1" = "x" ] if [ "x$1" = "x" ]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment