Mercurial > mxe-octave
view src/ncurses-1-gcc-5-fix.patch @ 4192:438a4bfdc887
new rules for creating a tarball from Octave's hg sources
* hg-octave-dist.mk: New file.
* Makefile.in: Include hg-octave-dist.mk.
(ENV_PATH, ENV_PKG_CONFIG_PATH, ENV_LD_LIBRARY_PATH):
Capture values from environment.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 29 Aug 2016 11:21:19 -0400 |
parents | 703b6f9eaea1 |
children |
line wrap: on
line source
diff -ur ncurses-5.9.orig/ncurses/base/MKlib_gen.sh ncurses-5.9/ncurses/base/MKlib_gen.sh --- ncurses-5.9.orig/ncurses/base/MKlib_gen.sh 2015-09-11 08:07:30.154205355 -0400 +++ ncurses-5.9/ncurses/base/MKlib_gen.sh 2015-09-11 08:10:59.265578376 -0400 @@ -436,12 +436,18 @@ -e 's/^\([a-zA-Z_][a-zA-Z_]*[ *]*\)/\1 gen_/' \ -e 's/gen_$//' \ -e 's/ / /g' >>$TMP +cat >$ED1 <<EOF +s/ / /g +s/^ // +s/ $// +s/P_NCURSES_BOOL/NCURSES_BOOL/g +EOF + +sed -e 's/bool/P_NCURSES_BOOL/g' $TMP > $ED2 +cat $ED2 >$TMP $preprocessor $TMP 2>/dev/null \ -| sed \ - -e 's/ / /g' \ - -e 's/^ //' \ - -e 's/_Bool/NCURSES_BOOL/g' \ +| sed -f $ED1 \ | $AWK -f $AW2 \ | sed -f $ED3 \ | sed \