From 6324bb5179a314c5514ee0abcff098f1d3d92bdf Mon Sep 17 00:00:00 2001 From: evomarc Date: Sun, 11 Nov 2001 06:55:12 +0000 Subject: [PATCH] Create_dsp.sh is a script that will create the .dsp file from a source file name in the test dir --- eo/win/create_dsp.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 eo/win/create_dsp.sh diff --git a/eo/win/create_dsp.sh b/eo/win/create_dsp.sh new file mode 100755 index 00000000..2baa32f5 --- /dev/null +++ b/eo/win/create_dsp.sh @@ -0,0 +1,19 @@ +#! /bin/tcsh -f + +if ($#argv < 3) then + echo Usage $0 SourceName TargetName [Additional lib] + echo Example: $0 t-eoGA t_eoga ga + echo " will create t_eoga.dsp that in turn is the Win project file" + echo " that will create the executable t_eoga using source" + echo " t-eoga.cpp in test dir" + exit +endif +echo "Creating $2.dsp" +echo s/DIRNAME/$2/g > toto.sed +echo s/SOURCENAME/$1/g >> toto.sed +if ($#argv == 3) then + echo s/ADDLIB/$3/g >> toto.sed +endif + +sed -f toto.sed test_dsp.tmpl > $2.dsp +/bin/rm toto.sed