Files
mcde/programs/dtinfo/tools/misc/treecomp
T
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

36 lines
713 B
Bash
Executable File

#!/bin/sh
# Compile a treeres file
if [ $# != 1 ] ; then
echo "usage: treecomp filename"
fi
if [ ! -f $1 ] ; then
echo "treecomp: $1 does not exist"
exit 1
fi
# Look for .res suffix, if found dump output to file without suffix
basename=`basename $1 .res`
if [ $1 != $basename ] ; then
dirname=`dirname $1`
output=$dirname/$basename
fi
# Establish commands to run.
CPP=${CPP:-/am/buildsets/qa/current/bin/gpp}
CPPFLAGS=${CPPFLAGS:-"-C -traditional"}
TREERES=${TREERES:-treeres}
# Do the deed.
if [ -n "$output" ] ; then
$CPP $CPPFLAGS $1 | $TREERES | sed -e "s/VERSION/(Developer - ${USER})/" \
> $output
else
$CPP $CPPFLAGS $1 | $TREERES | sed -e "s/VERSION/(Developer - ${USER})/"
fi