Initial import of the CDE 2.1.30 sources from the Open Group.

This commit is contained in:
Peter Howkins
2012-03-10 18:21:40 +00:00
commit 83b6996daa
18978 changed files with 3945623 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
#!/bin/ksh
# $XConsortium: terminfoCreate /main/3 1996/07/23 17:11:13 drk $
sed -e '/^##/d' |
${CPP:-/lib/cpp} |
sed -e '/^[ ]*$/d' \
-e '/^#/d' \
-e 's/[ ][ ]*$//' |
awk '
{
if (NR == 1) {
printf "%s\n", $0;
buflen = 0;
buffer = "";
} else {
if ((buflen + length($0)) >= 71) {
printf "\t%s\n", buffer;
buffer = $0" ";
buflen = length($0) + 1;
} else {
buffer = buffer""$0" ";
buflen += length($0) + 1;
}
}
}
END {
if (buflen > 0) {
printf "\t%s\n", buffer;
}
}'