From f7ce3d8b91cad80861710994f1a127f3bf1265f0 Mon Sep 17 00:00:00 2001 From: kuepper Date: Sun, 14 Jan 2007 18:56:31 +0000 Subject: [PATCH] * createEOproject.sh: Set TargetDir to /tmp/. This is a workaround for automake finding the scripts of eo itself if we run it in a embedded subdirectory. (COPYING, INSTALL): create. * README: State more explicitly what a "complete installation" means. Give build-instructions for moved directories. --- eo/tutorial/Templates/ChangeLog | 6 ++++++ eo/tutorial/Templates/README | 7 +++++++ eo/tutorial/Templates/createEOproject.sh | 9 ++++++--- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/eo/tutorial/Templates/ChangeLog b/eo/tutorial/Templates/ChangeLog index f109cfe4..32197953 100644 --- a/eo/tutorial/Templates/ChangeLog +++ b/eo/tutorial/Templates/ChangeLog @@ -1,6 +1,12 @@ 2007-01-14 Jochen Küpper + * createEOproject.sh: Set TargetDir to /tmp/. This is a workaround + for automake finding the scripts of eo itself if we run it in a embedded + subdirectory. + (COPYING, INSTALL): create. + * README: State more explicitly what a "complete installation" means. + Give build-instructions for moved directories. 2006-12-16 Jochen Küpper diff --git a/eo/tutorial/Templates/README b/eo/tutorial/Templates/README index c4732681..cadda633 100644 --- a/eo/tutorial/Templates/README +++ b/eo/tutorial/Templates/README @@ -13,4 +13,11 @@ setenv CPLUS_INCLUDE_PATH /usr/local/include/eo:"$CPLUS_INCLUDE_PATH" setenv LIBRARY_PATH /usr/local/lib:"$LIBRARY_PATH" +You can freely move the created project around. However, whenever you +change the location of the source- or build-directories, you need to +run + touch configure.ac && autoreconf && make +in the source-directory and make in the build-directory. + + See README.manual for more details. diff --git a/eo/tutorial/Templates/createEOproject.sh b/eo/tutorial/Templates/createEOproject.sh index 29d785a0..4e2a5c01 100755 --- a/eo/tutorial/Templates/createEOproject.sh +++ b/eo/tutorial/Templates/createEOproject.sh @@ -21,9 +21,9 @@ endif # we're going to do something echo " " if ($#argv == 1) then - set TargetDir = ../$1 + set TargetDir = /tmp/$1 else - set TargetDir = ../$2 + set TargetDir = /tmp/$2 endif if ( -d $TargetDir ) then echo "Warning: The target directory does exist already." @@ -57,7 +57,9 @@ sed s/MyStruct/$1/g Makefile.am.top-tmpl > $TargetDir/Makefile.am sed s/MyStruct/$1/g Makefile.am.src-tmpl > $TargetDir/src/Makefile.am sed s/MyStruct/$1/g README.tmpl > $TargetDir/README touch $TargetDir/AUTHORS +touch $TargetDir/COPYING touch $TargetDir/ChangeLog +touch $TargetDir/INSTALL touch $TargetDir/NEWS echo "Successfully created project $1 in $TargetDir!" @@ -68,12 +70,13 @@ echo "Start building the new project" cd $TargetDir aclocal || exit autoheader || exit -automake --add-missing --copy --gnu || exit +automake --add-missing --copy --force-missing --gnu || exit autoconf || exit ./configure || exit make || exit # done +echo "" echo "Project $1 successfully build in $TargetDir!" echo "Implement your code and enjoy."