diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1996-10-21 21:41:34 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1996-10-21 21:41:34 +0000 |
commit | a5fdebc5f6375078ec1763850a4ca23ec7fe6458 (patch) | |
tree | bcf0a25c3d45a209a6e3ac37b233a4812f29c732 /bin/class2hxxcxx | |
download | ATCD-a5fdebc5f6375078ec1763850a4ca23ec7fe6458.tar.gz |
Initial revision
Diffstat (limited to 'bin/class2hxxcxx')
-rwxr-xr-x | bin/class2hxxcxx | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/bin/class2hxxcxx b/bin/class2hxxcxx new file mode 100755 index 00000000000..2254f645d75 --- /dev/null +++ b/bin/class2hxxcxx @@ -0,0 +1,80 @@ +#! /bin/sh +# ============================================================================= +# +# = DESCRIPTION +# Script to combine class2info and info2head and info2src. +# +# = AUTHOR(S) +# K. Dorn +# +# = COPYRIGHT +# Copyright 1991 OTC LIMITED +# +# ============================================================================= + +OSE_HOST= + +OSE_RELEASE_NAME= +export OSE_RELEASE_NAME + +OSE_ROOT=${OSE_ROOT-$WRAPPER_ROOT} +export OSE_ROOT + +OSE_VERSION_ROOT=$OSE_ROOT/$OSE_RELEASE_NAME +export OSE_VERSION_ROOT + +BINDIR="$OSE_VERSION_ROOT/$OSE_HOST/bin" +LIBDIR=${CLASSINFOLIBDIR-"$OSE_VERSION_ROOT/lib"} + +CLASS2INFO="$BINDIR/class2info" +INFO2HEAD="$BINDIR/info2head" +INFO2SRC="$BINDIR/info2src" + +# +# Error. +# +ERROR() +{ + echo "`basename $0`: $1" >&2 + shift + while test $# != "0" + do + echo $1 >&2 + shift + done + exit 1 +} + +# +# Usage message. +# +USAGE() +{ + ERROR "Usage: `basename $0` files" +} + +# +# Check usage. +# +if test "$#" = "0" +then + USAGE +fi + +while test "$#" != "0" +do + $CLASS2INFO $1 + if test "$?" != "0" + then + exit 1 + fi + file=`basename $1` + base="`echo $file | sed -e 's/\..*$//'`" + if test -f "$base.ci" + then + $INFO2SRC $base.ci + $INFO2HEAD $base.ci +# rm -f $base.ci + fi + shift +done |