summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-06-18 07:23:15 +0000
committerJay Freeman <saurik@saurik.com>2008-06-18 07:23:15 +0000
commita232c4ba2ef379a5ab49f9714c591c0fe2210b6a (patch)
tree8d37a074d101e02f635aa5d19be17df9fa02d66e /data
parent9a30b1f59bf7c216c0cd8838b175f2a4e9eb9ffb (diff)
Minified terminfo database for smaller bootstrap.
git-svn-id: http://svn.telesphoreo.org/trunk@329 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data')
-rw-r--r--data/ncurses/make.sh16
1 files changed, 14 insertions, 2 deletions
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/*