1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

- 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)


cmd-line-utils/libedit/Makefile.am:
   - replace @AWK@ with the correct path to the awk binary determined by
     configure instead of using a hard-coded path (BUG#2297)
cmd-line-utils/libedit/makelist.sh:
   - replace @AWK@ with the correct path to the awk binary determined by
     configure instead of using a hard-coded path (BUG#2297)
This commit is contained in:
unknown
2004-01-16 16:22:59 +01:00
parent 9a7ea95853
commit 94e6b9be19
2 changed files with 13 additions and 2 deletions

View File

@ -24,10 +24,21 @@ noinst_HEADERS = chared.h el.h histedit.h key.h \
hist.h map.h prompt.h search.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
SUFFIXES = .sh
.sh:
@RM@ -f $@ $@-t
@SED@ \
-e 's!@''AWK''@!@AWK@!' \
$< > $@-t
@MV@ $@-t $@
vi.h: vi.c makelist
sh ./makelist -h ./vi.c > $@.tmp && \
mv $@.tmp $@

View File

@ -39,7 +39,7 @@
# makelist.sh: Automatically generate header files...
AWK=/usr/bin/awk
AWK=@AWK@
USAGE="Usage: $0 -h|-e|-fc|-fh|-bc|-bh|-m <filenames>"
if [ "x$1" = "x" ]