Files
lotherkandClaude Opus 5.5 3b2a54c64b ext/src/mcde: import CDE 2.5.3 and pkgsrc wm/cde unchanged (the base of the MCDE fork)
cde-2.5.3.tar.gz, SHA512 a01b413b... as in pkgsrc distinfo; recipe from
pkgsrc 3c1118e94432.  Added with -f: CDE's .gitignore hides 612 files of
the archive.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 19:36:46 +00:00

29 lines
640 B
Awk

#
# file: msg.awk
#
#
BEGIN{
}
/^\$set/ { SET_NAME = $2 }
# if a line does not start with $, and the first character of the second
# argument is a double quote, then delete the first argument from $0,
# then delete $1 from $0, concatenate TXT_,SET_NAME,_, and $1, and print
# $0 (w/t $1)
/^[^\$]/ { if (substr($2,1,1) == "\"")
{ arg1=$1;
sub($1,"",$0);
print "#define TXT_" SET_NAME "_" arg1 " " $0
}
else
print $0
}
/^$/ { print $0 } # print line if blank
/^\$/ { sub(/^\$/ ,"/*",$0);
sub( /$/," */",$0);
print $0; # C style comments
}
END {
}