summaryrefslogtreecommitdiff
path: root/bin/info2src
diff options
context:
space:
mode:
authornobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-01-01 08:00:34 +0000
committernobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-01-01 08:00:34 +0000
commitd9661aebab28abc0ec4fb1e716170d347d56c168 (patch)
treeecb671ab4b8e299bf5cbb8b2dfeed8a49b65fc06 /bin/info2src
parentea0d28240863caf437a18071bfd03e7b146c5ade (diff)
downloadATCD-unlabeled-4.3.2.tar.gz
This commit was manufactured by cvs2svn to create branchunlabeled-4.3.2
'unlabeled-4.3.2'.
Diffstat (limited to 'bin/info2src')
-rwxr-xr-xbin/info2src133
1 files changed, 0 insertions, 133 deletions
diff --git a/bin/info2src b/bin/info2src
deleted file mode 100755
index e8e3847faf7..00000000000
--- a/bin/info2src
+++ /dev/null
@@ -1,133 +0,0 @@
-#! /bin/sh
-# =============================================================================
-#
-# = DESCRIPTION
-# Script to combine class2info and info2src.
-#
-# = AUTHOR(S)
-# Graham Dumpleton
-# 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/bin"}
-
-AWK="nawk"
-
-#
-# 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` file.ci"
-}
-
-if test $# != "1" -o "'basename $1 .ci'" = "$1"
-then
- USAGE
-fi
-
-#
-# Check for awk file.
-#
-INFO2SRC=$BINDIR/info2src.awk
-HIDINGFMT=$LIBDIR/hiding.fmt
-
-file=`basename $1`
-base="`echo $file | sed -e 's/\..*$//'`"
-
-if test ! -f $INFO2SRC
-then
- ERROR "Can't find $INFO2SRC"
-fi
-
-if test ! -f $HIDINGFMT
-then
- ERROR "Can't find $HIDINGFMT"
-fi
-
-
-VCSA=`$AWK '
-BEGIN {
- FS="\n"; RS=""
-}
-$1 ~ "^CSAHEADER$" {
- if ( $2 ~ "on" )
- printf("%s","csaprintheader=on");
- else
- printf("%s","csaprintheader=");
-}' $HIDINGFMT`
-
-VPUBL=`$AWK '
-BEGIN {
- FS="\n"; RS=""
-}
-$1 ~ "^PUBLIC$" {
- if ( $2 ~ "on" )
- printf("%s","publ=on");
- else
- printf("%s","publ=");
-}' $HIDINGFMT`
-
-VPROT=`$AWK '
-BEGIN {
- FS="\n"; RS=""
-}
-$1 ~ "^PROTECTED$" {
- if ( $2 ~ "on" )
- printf("%s","prot=on");
- else
- printf("%s","prot=");
-}' $HIDINGFMT`
-
-VPRIV=`$AWK '
-BEGIN {
- FS="\n"; RS=""
-}
-$1 ~ "^PRIVATE$" {
- if ( $2 ~ "on" )
- printf("%s","priv=on");
- else
- printf("%s","priv=");
-}' $HIDINGFMT`
-
-echo " $VPUBL $VPROT $VPRIV $VCSA "
-
-
-# $VARG publ=on $VARG prot=on $VARG priv=on \
-echo "making $base.cxx file ..."
-$AWK -f $INFO2SRC \
- $VARG $VPUBL $VARG $VPROT $VARG $VPRIV $VARG $VCSA \
- $VARG infile=$1 $VARG classext= $VARG mode=multiple \
- $1 > $base.cxx
-echo "$base.cxx file done!"