X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Fbase%2FMKlib_gen.sh;h=c8e4efe0c8d1107a2e1a8fe0c722ebd311c0410f;hp=c7877bfcd863d325bc4292fa3c87cff8364cfc37;hb=84cf9f63bf604413fa5714ef91f83076ac8f236b;hpb=86b16a498d6d545c03dceff7636d269eb7eb1e8f diff --git a/ncurses/base/MKlib_gen.sh b/ncurses/base/MKlib_gen.sh index c7877bfc..c8e4efe0 100755 --- a/ncurses/base/MKlib_gen.sh +++ b/ncurses/base/MKlib_gen.sh @@ -2,10 +2,11 @@ # # MKlib_gen.sh -- generate sources from curses.h macro definitions # -# ($Id: MKlib_gen.sh,v 1.60 2017/12/09 22:27:41 tom Exp $) +# ($Id: MKlib_gen.sh,v 1.64 2020/02/15 14:58:02 tom Exp $) # ############################################################################## -# Copyright (c) 1998-2017,2017 Free Software Foundation, Inc. # +# Copyright 2018,2020 Thomas E. Dickey # +# Copyright 1998-2016,2017 Free Software Foundation, Inc. # # # # Permission is hereby granted, free of charge, to any person obtaining a # # copy of this software and associated documentation files (the "Software"), # @@ -73,7 +74,7 @@ USE="$3" # determine if we are using gcc, and if so, what version because the proposed # solution uses a nonstandard option. PRG=`echo "$1" | $AWK '{ sub(/^[ ]*/,""); sub(/[ ].*$/, ""); print; }' || exit 0` -FSF=`"$PRG" --version 2>/dev/null || exit 0 | fgrep "Free Software Foundation" | head -n 1` +FSF=`("$PRG" --version 2>/dev/null || exit 0) | fgrep "Free Software Foundation" | head -n 1` ALL=`"$PRG" -dumpversion 2>/dev/null || exit 0` ONE=`echo "$ALL" | sed -e 's/\..*$//'` if test -n "$FSF" && test -n "$ALL" && test -n "$ONE" ; then @@ -99,6 +100,7 @@ if test "$USE" = implemented ; then cat >$ED1 <" print "" - print "#undef vw_scanw" - print "#undef vwscanw" - print "" - print "#undef vw_printw" - print "#undef vwprintw" } /^DECLARATIONS/ {start = 1; next;} {