fixup commit for tag 'llgen-1-0'
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
cc-and-mkdep.ack
|
||||
cc-and-mkdep.all
|
||||
cc-and-mkdep.sun
|
||||
do_deps
|
||||
do_resolve
|
||||
lint-lib.ack
|
||||
lint-lib.unix
|
||||
mk_manpage
|
||||
rm_deps
|
||||
@@ -1,7 +0,0 @@
|
||||
: '$Id$'
|
||||
|
||||
: Compile and make dependencies. First argument is the file on which the
|
||||
: dependencies must be produced. This version is for ACK.
|
||||
n=$1
|
||||
shift
|
||||
exec $CC -Rcem-A$n -Rcem-m $*
|
||||
@@ -1,20 +0,0 @@
|
||||
: '$Id$'
|
||||
|
||||
: Compile and make dependencies. First argument is the file on which the
|
||||
: dependencies must be produced. This version is a generic one that should
|
||||
: work for all Unix systems.
|
||||
n=$1
|
||||
shift
|
||||
cpp_args=
|
||||
for i in $*
|
||||
do
|
||||
case $i in
|
||||
-I*|-D*|-U*) cpp_args="$cpp_args $i"
|
||||
;;
|
||||
-*) ;;
|
||||
*) cpp_args="$cpp_args $i"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
$UTIL_HOME/lib.bin/cpp -d -m $cpp_args > $n
|
||||
exec $CC $*
|
||||
@@ -1,7 +0,0 @@
|
||||
: '$Id$'
|
||||
|
||||
: Compile and make dependencies. First argument is the file on which the
|
||||
: dependencies must be produced. This version is for the SUN cc.
|
||||
n=$1
|
||||
shift
|
||||
exec $CC -Qpath $UTIL_HOME/lib.bin -Qoption cpp -d$n -Qoption cpp -m $*
|
||||
18
bin/do_deps
18
bin/do_deps
@@ -1,18 +0,0 @@
|
||||
: '$Id$'
|
||||
|
||||
: Produce dependencies for all argument files
|
||||
|
||||
for i in $*
|
||||
do
|
||||
n=`basename $i .c`
|
||||
if [ -f $n.dep ]
|
||||
then
|
||||
:
|
||||
else
|
||||
echo $n.'$(SUF): '$i > $n.dep
|
||||
echo " head -5 $n.dep > $n.dp1" >> $n.dep
|
||||
echo ' CC="$(CC)" UTIL_HOME="$(UTIL_HOME)" $(CC_AND_MKDEP) '$n.dp2 '$(CFLAGS)' -c $i >> $n.dep
|
||||
echo " cat $n.dp1 $n.dp2 > $n.dep" >> $n.dep
|
||||
echo " rm -f $n.dp1 $n.dp2" >> $n.dep
|
||||
fi
|
||||
done
|
||||
@@ -1,47 +0,0 @@
|
||||
: '$Id$'
|
||||
|
||||
: Resolve name clashes in the files on the argument list. If these
|
||||
: files reside in another directory, a copy is made in the current
|
||||
: directory. If not, it is overwritten. Never do this in a source
|
||||
: directory! A list of the new files is produced on standard output.
|
||||
|
||||
UTIL_BIN=$UTIL_HOME/bin
|
||||
|
||||
trap "rm -f tmp$$ a.out nmclash.* longnames clashes" 0 1 2 3 15
|
||||
|
||||
: first find out if we have to resolve problems with identifier significance.
|
||||
|
||||
cat > nmclash.c <<'EOF'
|
||||
/* Accepted if many characters of long names are significant */
|
||||
abcdefghijklmnopr() { }
|
||||
abcdefghijklmnopq() { }
|
||||
main() { }
|
||||
EOF
|
||||
if $CC nmclash.c
|
||||
then : no identifier significance problem
|
||||
for i in $*
|
||||
do
|
||||
echo $i
|
||||
done
|
||||
else
|
||||
$UTIL_BIN/prid -l7 $* > longnames
|
||||
|
||||
: remove code generating routines from the clashes list.
|
||||
: code generating routine names start with C_.
|
||||
: also remove names starting with flt_.
|
||||
|
||||
sed '/^C_/d' < longnames | sed '/^flt_/d' > tmp$$
|
||||
$UTIL_BIN/cclash -c -l7 tmp$$ > clashes
|
||||
for i in $*
|
||||
do
|
||||
$UTIL_BIN/cid -Fclashes < $i > tmp$$
|
||||
n=`basename $i .xxx`
|
||||
if cmp -s $n tmp$$
|
||||
then
|
||||
rm -f tmp$$
|
||||
else
|
||||
mv tmp$$ $n
|
||||
fi
|
||||
echo $n
|
||||
done
|
||||
fi
|
||||
@@ -1 +0,0 @@
|
||||
exec /usr/em/doc/em/int/em /usr/em/doc/em/int/tables ${1-e.out} core
|
||||
@@ -1,12 +0,0 @@
|
||||
: '$Id$'
|
||||
|
||||
: Create a lint library file. The name of the library file is constructed
|
||||
: from the first argument. The second argument indicates the directory where
|
||||
: the result is to be placed. This version is for ACK lint.
|
||||
|
||||
n=$1
|
||||
shift
|
||||
d=$1
|
||||
shift
|
||||
lint -L$n $*
|
||||
mv $n.llb $d
|
||||
@@ -1,12 +0,0 @@
|
||||
: '$Id$'
|
||||
|
||||
: Create a lint library file. The name of the library file is constructed
|
||||
: from the first argument. The second argument indicates the directory where
|
||||
: the result is to be placed. This version is for Unix lint.
|
||||
|
||||
n=$1
|
||||
shift
|
||||
d=$1
|
||||
shift
|
||||
/usr/bin/lint -C$n $*
|
||||
mv llib-l$n.ln $d
|
||||
@@ -1,18 +0,0 @@
|
||||
num=`expr $1 : '.*\.\([1-8]\)'`
|
||||
|
||||
if [ -d $2/man ] ; then : ; else mkdir $2/man ; fi
|
||||
if [ -f $2/man/head ] ; then : ; else cat > $2/man/head <<'EOF'
|
||||
.rn TH yy
|
||||
.de TH
|
||||
.di zz
|
||||
.yy "\\$1" "\\$2" "\\$3" "\\$4"
|
||||
.ds ]W 5th ACK distribution
|
||||
.ds ]D Amsterdam Compiler Kit
|
||||
.ds ]L "\\$3
|
||||
.di
|
||||
.rm zz
|
||||
..
|
||||
EOF
|
||||
fi
|
||||
if [ -d $2/man/man$num ] ; then : ; else mkdir $2/man/man$num ; fi
|
||||
cat $2/man/head $1 | sed "s!TARGETHOME!$2!" > $2/man/man$num/`expr //$1 : '.*/\([^/]*\)'`
|
||||
@@ -1,8 +0,0 @@
|
||||
: $Id$
|
||||
|
||||
: remove dependencies from a makefile, write result on standard output.
|
||||
: we cannot do this directly in a makefile because some make versions
|
||||
: have # start a comment, always.
|
||||
|
||||
sed -e '/^#DEPENDENCIES/,$d' $1
|
||||
echo '#DEPENDENCIES'
|
||||
Reference in New Issue
Block a user