X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Ftinfo%2FMKkeys_list.sh;h=158e34d25538df5fbbe4fe62da1448e3467c9b63;hp=98d5b1379a1c6f5b160abba616d7848fc5af14c6;hb=ade723c546e6559187580c695f7f4637eac13125;hpb=46722468f47c2b77b3987729b4bcf2321cccfd01 diff --git a/ncurses/tinfo/MKkeys_list.sh b/ncurses/tinfo/MKkeys_list.sh index 98d5b137..158e34d2 100755 --- a/ncurses/tinfo/MKkeys_list.sh +++ b/ncurses/tinfo/MKkeys_list.sh @@ -1,7 +1,7 @@ #! /bin/sh -# $Id: MKkeys_list.sh,v 1.2 2001/06/16 16:50:35 tom Exp $ +# $Id: MKkeys_list.sh,v 1.6 2019/03/02 22:47:33 tom Exp $ ############################################################################## -# Copyright (c) 2001 Free Software Foundation, Inc. # +# Copyright (c) 2001-2017,2019 Free Software Foundation, Inc. # # # # Permission is hereby granted, free of charge, to any person obtaining a # # copy of this software and associated documentation files (the "Software"), # @@ -30,16 +30,21 @@ # # MKkey_defs.sh -- generate list of function-keys for terminfo database # -# Author: Thomas E. Dickey 2001 +# Author: Thomas E. Dickey 2001 # # Extract function-key names from the Caps file # : ${AWK-awk} -DATA=${1-../../include/Caps} +if test $# != 0 +then + DATA="$*" +else + DATA=../../include/Caps +fi data=data$$ -trap 'rm -f $data' 0 1 2 5 15 -sed -e 's/[ ]\+/ /g' < $DATA >$data +trap 'rm -f $data' EXIT INT QUIT TERM HUP +cat $DATA | sed -e 's/[ ][ ]*/ /g' >$data cat <