Changeset 329

Show
Ignore:
Timestamp:
06/18/08 07:23:15 (3 months ago)
Author:
saurik
Message:

Minified terminfo database for smaller bootstrap.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/data/ncurses/make.sh

    r289 r329  
     1shopt -s extglob 
    12pkg:setup 
    23cd .. 
     
    45mkdir bld-ncurses{,w} 
    56cd bld-ncurses 
    6 PKG_CONF=../${dir}/configure pkg:configure --with-shared --without-normal --without-debug --enable-sigwinch 
     7flags='--with-shared --without-normal --without-debug --enable-sigwinch' 
     8PKG_CONF=../${dir}/configure pkg:configure ${flags} 
    79make 
    810pkg:install 
    911cd ../bld-ncursesw 
    10 PKG_CONF=../${dir}/configure pkg:configure --with-shared --without-normal --without-debug --enable-sigwinch --disable-overwrite --enable-widec 
     12PKG_CONF=../${dir}/configure pkg:configure ${flags} --disable-overwrite --enable-widec 
    1113make 
    1214pkg:install 
     15 
     16for ti in "${PKG_DEST}"/usr/share/terminfo/*/*; do 
     17    if [[ ${ti} == */@(?(pc)ansi|cons25|cygwin|dumb|linux|mach|rxvt|screen|sun|vt@(52|100|102|220)|swvt25?(m)|[Ex]term)?(-*) ]]; then 
     18        echo "keeping terminfo: ${ti}" 
     19    else 
     20        rm -f "${ti}" 
     21    fi 
     22done 
     23 
     24rmdir --ignore-fail-on-non-empty "${PKG_DEST}"/usr/share/terminfo/*