summaryrefslogtreecommitdiff
path: root/source/l/ncurses/ncurses.mkhashsize.diff
diff options
context:
space:
mode:
Diffstat (limited to 'source/l/ncurses/ncurses.mkhashsize.diff')
-rw-r--r--source/l/ncurses/ncurses.mkhashsize.diff10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/l/ncurses/ncurses.mkhashsize.diff b/source/l/ncurses/ncurses.mkhashsize.diff
index 7694a39d..035956da 100644
--- a/source/l/ncurses/ncurses.mkhashsize.diff
+++ b/source/l/ncurses/ncurses.mkhashsize.diff
@@ -1,11 +1,11 @@
---- ./include/MKhashsize.sh.orig 2006-10-21 19:45:39.000000000 -0500
-+++ ./include/MKhashsize.sh 2006-12-27 17:21:06.000000000 -0600
+--- ./include/MKhashsize.sh.orig 2019-04-22 14:07:41.451003244 -0500
++++ ./include/MKhashsize.sh 2019-04-22 14:10:09.163003249 -0500
@@ -35,7 +35,7 @@
echo " */"
- CAPS="${1-Caps}"
--TABSIZE=`grep -v '^[ #]' $CAPS | grep -v "^$" | grep -v "^capalias"| grep -v "^infoalias" | wc -l`
-+TABSIZE=$(grep -v '^[ #]' $CAPS | grep -v "^$" | grep -v "^capalias"| grep -v "^infoalias" | wc -l)
+ test $# = 0 && set Caps
+-TABSIZE=`cat "$@" | grep -v '^[ #]' | grep -v "^$" | grep -v "^capalias"| grep -v "^infoalias" | grep -v "^userdef" | grep -v "^used_by" | wc -l`
++TABSIZE=$(cat "$@" | grep -v '^[ #]' | grep -v "^$" | grep -v "^capalias"| grep -v "^infoalias" | grep -v "^userdef" | grep -v "^used_by" | wc -l)
echo ""
echo "#define CAPTABSIZE ${TABSIZE}"