X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=ncurses%2Ftinfo%2FMKkeys_list.sh;h=0facfbb813a2fb314a719f1a725b28fabfdf870a;hb=79b07cae47a6fa064aa4d2ea70fe930884751eb4;hp=b669eecce3aa60271e860e8814323e62a6f3328c;hpb=a20e6eb464be80b9cd8cae7ce925d27fe9c209ed;p=ncurses.git diff --git a/ncurses/tinfo/MKkeys_list.sh b/ncurses/tinfo/MKkeys_list.sh old mode 100755 new mode 100644 index b669eecc..0facfbb8 --- a/ncurses/tinfo/MKkeys_list.sh +++ b/ncurses/tinfo/MKkeys_list.sh @@ -1,7 +1,8 @@ #! /bin/sh -# $Id: MKkeys_list.sh,v 1.5 2017/08/12 12:22:06 tom Exp $ +# $Id: MKkeys_list.sh,v 1.8 2022/02/05 20:40:20 tom Exp $ ############################################################################## -# Copyright (c) 2001-2003,2017 Free Software Foundation, Inc. # +# Copyright 2019-2020,2022 Thomas E. Dickey # +# Copyright 2001-2003,2017 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"), # @@ -35,11 +36,17 @@ # 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 3 15 -sed -e 's/[ ][ ]*/ /g' < $DATA >$data +trap 'rm -f $data; exit 1' 1 2 3 15 +trap 'rm -f $data' 0 +cat $DATA | sed -e 's/[ ][ ]*/ /g' >$data cat <