From 1ad1345e90e3d676d9ade74c127de53822e3e824 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 5 Oct 2000 18:10:25 +0000 Subject: [PATCH] *** empty log message *** --- dtool/src/build/Makefile.project.vars | 2 - dtool/src/build/ctproj.pl | 2 +- dtool/src/newheader/Sources.pp | 2 + dtool/src/newheader/newheader | 80 +++++++++++++++++++++++++++ 4 files changed, 83 insertions(+), 3 deletions(-) create mode 100644 dtool/src/newheader/Sources.pp create mode 100755 dtool/src/newheader/newheader diff --git a/dtool/src/build/Makefile.project.vars b/dtool/src/build/Makefile.project.vars index 98d7aca5e4..9303d7710e 100644 --- a/dtool/src/build/Makefile.project.vars +++ b/dtool/src/build/Makefile.project.vars @@ -37,8 +37,6 @@ ifneq (,$(OPTIMIZE)) export OPTIMIZE endif -$(CTPROJECT): install - install: install-$(CTPROJECT) uninstall: uninstall-$(CTPROJECT) diff --git a/dtool/src/build/ctproj.pl b/dtool/src/build/ctproj.pl index 0276d1a9a4..281af62b7f 100644 --- a/dtool/src/build/ctproj.pl +++ b/dtool/src/build/ctproj.pl @@ -17,7 +17,7 @@ sub CTProjPkg { $CTPPtmp =~ tr/a-z/A-Z/ ; $CTPPret =~ s/$ENV{ $CTPPtmp }// ; $CTPPret =~ s/\/src\/// ; - $CTPPret =~ s/\/metalib\/// ; + $CTPPret =~ s/\/metalibs\/// ; $CTPPret ; } diff --git a/dtool/src/newheader/Sources.pp b/dtool/src/newheader/Sources.pp new file mode 100644 index 0000000000..02e5f3afe4 --- /dev/null +++ b/dtool/src/newheader/Sources.pp @@ -0,0 +1,2 @@ +#define INSTALL_BIN \ + newheader diff --git a/dtool/src/newheader/newheader b/dtool/src/newheader/newheader new file mode 100755 index 0000000000..62173b6709 --- /dev/null +++ b/dtool/src/newheader/newheader @@ -0,0 +1,80 @@ +#!/bin/csh -f +# +# Automatically generate a header file for $1 +# +if ( ${#argv} < 1 ) then + echo You need to specify a filename... ala test.{c++,C,h,sal,ss} + exit 1 + endif + +# Let's do it + +# flags +set hfile=0 +set cfile=0 +set cppfile=0 +set salfile=0 + +if ( `basename $1 .h` != $1 ) set hfile=1 +if ( `basename $1 .hh` != $1 ) set hfile=1 +if ( `basename $1 .c` != $1 ) set cfile=1 +if ( `basename $1 .c++` != $1 ) set cppfile=1 +if ( `basename $1 .cxx` != $1 ) set cppfile=1 +if ( `basename $1 .cc` != $1 ) set cppfile=1 +if ( `basename $1 .C` != $1 ) set cppfile=1 +if ( `basename $1 .I` != $1 ) set cppfile=1 +if ( `basename $1 .i` != $1 ) set cppfile=1 +if ( `basename $1 .ii` != $1 ) set cppfile=1 +if ( `basename $1 .sal` != $1 ) set salfile=1 +if ( `basename $1 .ss` != $1 ) set salfile=1 +if ( `basename $1 .el` != $1 ) set salfile=1 +if ( `basename $1 .stk` != $1 ) set salfile=1 + +if ( ! ( $hfile || $cfile || $cppfile || $salfile ) ) then + echo Usage: $0 filename.ext + echo where ext is one of .h .hh .c .c++ .cxx .cc .C .sal .ss .el or .stk + exit 1 +endif + +# echo $hfile $cppfile $salfile +if ( $hfile || $cppfile ) then + + cat <