From a232c4ba2ef379a5ab49f9714c591c0fe2210b6a Mon Sep 17 00:00:00 2001 From: Jay Freeman Date: Wed, 18 Jun 2008 07:23:15 +0000 Subject: Minified terminfo database for smaller bootstrap. git-svn-id: http://svn.telesphoreo.org/trunk@329 514c082c-b64e-11dc-b46d-3d985efe055d --- data/ncurses/make.sh | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'data') diff --git a/data/ncurses/make.sh b/data/ncurses/make.sh index f0296ced4..a16febfea 100644 --- a/data/ncurses/make.sh +++ b/data/ncurses/make.sh @@ -1,12 +1,24 @@ +shopt -s extglob pkg:setup cd .. dir=$(echo *) mkdir bld-ncurses{,w} cd bld-ncurses -PKG_CONF=../${dir}/configure pkg:configure --with-shared --without-normal --without-debug --enable-sigwinch +flags='--with-shared --without-normal --without-debug --enable-sigwinch' +PKG_CONF=../${dir}/configure pkg:configure ${flags} make pkg:install cd ../bld-ncursesw -PKG_CONF=../${dir}/configure pkg:configure --with-shared --without-normal --without-debug --enable-sigwinch --disable-overwrite --enable-widec +PKG_CONF=../${dir}/configure pkg:configure ${flags} --disable-overwrite --enable-widec make pkg:install + +for ti in "${PKG_DEST}"/usr/share/terminfo/*/*; do + if [[ ${ti} == */@(?(pc)ansi|cons25|cygwin|dumb|linux|mach|rxvt|screen|sun|vt@(52|100|102|220)|swvt25?(m)|[Ex]term)?(-*) ]]; then + echo "keeping terminfo: ${ti}" + else + rm -f "${ti}" + fi +done + +rmdir --ignore-fail-on-non-empty "${PKG_DEST}"/usr/share/terminfo/* -- cgit v1.2.3