Author: bhavani Date: Thu Jan 12 18:10:06 2012 New Revision: 1230677 URL: http://svn.apache.org/viewvc?rev=1230677&view=rev Log: UIMA-2333 changes to the build source script to include linux and windows build artifacts.
Modified: uima/uimacpp/trunk/buildSrcTree.sh uima/uimacpp/trunk/createRelease.txt Modified: uima/uimacpp/trunk/buildSrcTree.sh URL: http://svn.apache.org/viewvc/uima/uimacpp/trunk/buildSrcTree.sh?rev=1230677&r1=1230676&r2=1230677&view=diff ============================================================================== --- uima/uimacpp/trunk/buildSrcTree.sh (original) +++ uima/uimacpp/trunk/buildSrcTree.sh Thu Jan 12 18:10:06 2012 @@ -18,7 +18,7 @@ # under the License. # for now, change versionnumber in line below -srcName=uimacpp-2.4.0 +srcName=uimacpp-2.4.0-src if [ "$1" = 'TRACE' ] then set -vx ;shift @@ -67,7 +67,24 @@ else LIBEXT=so fi + +# No Configure script means we have to run autogen +if [ -x "./configure" ] ; then + # even if we have a configure script, if the template has been updated we should + # run it again to account for the changes, which also means we need to run a autogen + # to create the actual script and associated autoconf artifacts. + if [ "./configure.ac" -ot "./configure" ] ; then + echo "configure is up to date" + else + ./autogen.sh + fi +else + ./autogen.sh +fi + + mkdir $target_dir +mkdir $target_dir/m4 mkdir $target_dir/data mkdir $target_dir/docs mkdir $target_dir/src @@ -88,6 +105,17 @@ cp $CPL $UIMACPP_SOURCE/RELEASE_NOTES* cp $CPL $UIMACPP_SOURCE/README.4src $target_dir/README cp $CPL $UIMACPP_SOURCE/README.4sdk $target_dir/ cp $CPL $UIMACPP_SOURCE/NOTICE.4sdk $target_dir/ +cp $CPL $UIMACPP_SOURCE/configure $target_dir/ +cp $CPLR $UIMACPP_SOURCE/config $target_dir +cp $CPL $UIMACPP_SOURCE/Makefile.in $target_dir +cp $CPL $UIMACPP_SOURCE/configure.ac $target_dir +cp $CPL $UIMACPP_SOURCE/autogen.sh $target_dir +cp $CPL $UIMACPP_SOURCE/Makefile.am $target_dir +cp $CPL $UIMACPP_SOURCE/m4/find_icu.m4 $target_dir/m4 +cp $CPL $UIMACPP_SOURCE/m4/find_xerces.m4 $target_dir/m4 +cp $CPL $UIMACPP_SOURCE/m4/find_apr.m4 $target_dir/m4 +cp $CPL $UIMACPP_SOURCE/m4/find_activemq.m4 $target_dir/m4 +cp $CPL $UIMACPP_SOURCE/aclocal.m4 $target_dir print -u2 "copying from $UIMACPP_SOURCE/data" cp $CPL $UIMACPP_SOURCE/data/*.xsd $target_dir/data/ @@ -100,17 +128,8 @@ cp $CPL $UIMACPP_SOURCE/docs/doxyheader. cp $CPL $UIMACPP_SOURCE/docs/overview_and_setup.html $target_dir/docs print -u2 "copying from $UIMACPP_SOURCE/src" -cp $CPL $UIMACPP_SOURCE/src/Makefile.in $target_dir/src/ -cp $CP $UIMACPP_SOURCE/src/aclocal.m4 $target_dir/src/ -cp $CP $UIMACPP_SOURCE/src/install-sh $target_dir/src/ -cp $CP $UIMACPP_SOURCE/src/config.guess $target_dir/src/ -cp $CP $UIMACPP_SOURCE/src/config.sub $target_dir/src/ -cp $CP $UIMACPP_SOURCE/src/ltmain.sh $target_dir/src/ -cp $CPL $UIMACPP_SOURCE/src/Makefile.unix $target_dir/src/ -cp $CPL $UIMACPP_SOURCE/src/configure $target_dir/src/ cp $CPL $UIMACPP_SOURCE/src/base.mak $target_dir/src/ - -cp $CPL $UIMACPP_SOURCE/src/configure.in $target_dir/src/ +cp $CPL $UIMACPP_SOURCE/src/Makefile.in $target_dir/src/ cp $CPL $UIMACPP_SOURCE/src/Makefile.am $target_dir/src/ print -u2 "copying from $UIMACPP_SOURCE/src/cas" @@ -152,12 +171,29 @@ cp $CPL $UIMACPP_SOURCE/src/test/fvtTest find $target_dir/src/test -type f -iname '*.l?' -exec rm -f {} \; find $target_dir/src/test -type f -iname '*.o' -exec rm -f {} \; +print -u2 "copying files required for a Windows build" +cp $CPL $UIMACPP_SOURCE/buildsdk.cmd $target_dir +cp $CPL $UIMACPP_SOURCE/docs/builddocs.cmd $target_dir/docs +cp $CPL $UIMACPP_SOURCE/src/*.cmd $target_dir/src +cp $CPL $UIMACPP_SOURCE/examples/*.cmd $target_dir/examples +cp $CPL $UIMACPP_SOURCE/src/*.bat $target_dir/src +cp $CPL $UIMACPP_SOURCE/src/test/*.bat $target_dir/src/test +cp $CPL $UIMACPP_SOURCE/src/*.vcproj $target_dir/src +cp $CPL $UIMACPP_SOURCE/src/test/src/*.vcproj $target_dir/src/test/src +cp $CPL $UIMACPP_SOURCE/src/test/fvtTestfile.debug $target_dir/src/test +cp $CPL $UIMACPP_SOURCE/examples/src/*.vcproj $target_dir/examples/src +cp $CPL $UIMACPP_SOURCE/examples/tutorial/src/*.vcproj $target_dir/examples/tutorial\src +cp $CPL $UIMACPP_SOURCE/src/*.sln $target_dir/src +cp $CPL $UIMACPP_SOURCE/src/test/*.sln $target_dir/src/test +cp $CLP $UIMACPP_SOURCE/examples/src/*.sln $target_dir/examples/src + + print -u2 "removing unused files from $UIMACPP_SOURCE" find $target_dir -depth -type d -name .svn -exec rm -rf {} \; -find $target_dir -type f -iname '*.sln' -exec rm -f {} \; -find $target_dir -type f -iname '*.vcproj' -exec rm -f {} \; -find $target_dir -type f -iname '*.cmd' -exec rm -f {} \; -find $target_dir -type f -iname '*.bat' -exec rm -f {} \; +#find $target_dir -type f -iname '*.sln' -exec rm -f {} \; +#find $target_dir -type f -iname '*.vcproj' -exec rm -f {} \; +#find $target_dir -type f -iname '*.cmd' -exec rm -f {} \; +#find $target_dir -type f -iname '*.bat' -exec rm -f {} \; find $target_dir -type f -iname '*~' -exec rm -f {} \; print -u2 "DONE ... Source image created in $target_dir" Modified: uima/uimacpp/trunk/createRelease.txt URL: http://svn.apache.org/viewvc/uima/uimacpp/trunk/createRelease.txt?rev=1230677&r1=1230676&r2=1230677&view=diff ============================================================================== --- uima/uimacpp/trunk/createRelease.txt (original) +++ uima/uimacpp/trunk/createRelease.txt Thu Jan 12 18:10:06 2012 @@ -32,13 +32,6 @@ For a new build on Linux define environment variable ICU_HOME, APR_HOME, XERCES_HOME, ACTIVEMQ_HOME, JAVA_INCLUDE ./configure --with-jdk=$JAVA_HOME/include --with-apr=$APR_HOME --with-icu=$ICU_HOME --with-xerces=$XERCES_HOME --with-activemq=$ACTIVEMQ_HOME -4. create src tarball - make dist - This create libuima-2.4.0.tar.gz - -5. rat scan of source - java -jar apache-rat-0.6.jar uimacpp-2.4.0 > uimacpp-src-linux-report.txt - 6. build, test and create sdk tree cd uimacpp-2.4.0 [setup env for the build] @@ -96,17 +89,7 @@ For a new build on Windows 1. checkout source from current release branch svn co https://svn.apache.org/repos/asf/uima/uimacpp/branches/uimacpp-2.4.0 -3. create source tree - ./buildSrcTree buildDir - -4. create src zipfile of buildDir\uimacpp-2.4.0 as - uimacpp-2.4.0-src.zip - -5. rat scan of source - cd buildDir - java -jar apache-rat-0.6.jar uimacpp-2.4.0 > uimacpp-src-windows-report.txt - -6. build, test and create sdk tree +2. build, test and create sdk tree cd uimacpp-2.4.0\src [setup env for the build] winmake /build release @@ -122,13 +105,13 @@ For a new build on Windows cd ..\.. buildsdk .. -7. create bin zipfile of buildDir\uimacpp as +3. create bin zipfile of buildDir\uimacpp as uimacpp-2.4.0-bin.zip -8. rat scan of bin +4. rat scan of bin java -jar apache-rat-0.6.jar uimacpp > uimacpp-bin-windows-report.txt -9. sniff test of base sdk +5. sniff test of base sdk cd uimacpp set UIMACPP_HOME=%cd% path=%path%;%cd%\bin;%cd%\examples\src @@ -137,7 +120,7 @@ For a new build on Windows cd .. runall -10. sniff test of scriptators (following base sniff test) +6. sniff test of scriptators (following base sniff test) cd ..\scriptators\perl winmake runAECpp PerlSample.xml ..\..\examples\data\ @@ -150,7 +133,7 @@ For a new build on Windows winmake runAECpp TclSample.xml ..\..\examples\data\ -11. sniff test of uimacpp service wrapper +7. sniff test of uimacpp service wrapper in a "Uima AS window", run: startBroker back in the UimaCpp test window: @@ -158,3 +141,20 @@ For a new build on Windows runRemoteAsyncAE tcp://localhost:61616 MeetingAnnotator \ -d tutorial\descriptors\Deploy_MeetingAnnotator.xml + +Create Source Tar ball + +The source tar ball contains sources needed to build the Windows and Linux +binaries. +The source packaging should be done on Linux as it requires running the autoconf tool to generate the configure script required for a Linux build. + +1. update srcName in the buildSrcTree.sh +2. create source directory + ./buildSrcTree.sh target_directory + This will create the uimacpp-X.Y.Z-src directory in the target_directory +3. create src tarball + From target_directory + tar -zcvf uimacpp-X.Y.X-src.tgz uimacpp-X.Y.Z-src +4. Rat scan of source + java -jar apache-rat-0.6.jar uimacpp-X.Y.Z-src > +uimacpp-X.Y.Z-src-linux-report.txt