This repository has been archived on 2026-03-28. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
eodev/eo/win/create_dsp.sh
2001-11-11 06:55:12 +00:00

19 lines
538 B
Bash
Executable file

#! /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