Merge commit '2301f8e58f55a8d793c236a3d1d8d1c3eca1d6a6' into nextRelease
This commit is contained in:
commit
ca97688a59
2 changed files with 24 additions and 26 deletions
46
ThirdParty/AllMake.stage5
vendored
46
ThirdParty/AllMake.stage5
vendored
|
@ -70,42 +70,40 @@ then
|
|||
# centralized under the same scratch area
|
||||
if [ ! -e ./rpmBuild/BUILD/swak4Foam-$SWAK_RELEASE_VERSION ];
|
||||
then
|
||||
echo "Checking for a Mercurial client: hg"
|
||||
echo "Checking for a Mercurial client: hg"
|
||||
command -v hg >/dev/null
|
||||
if [ $? -eq 0 ];
|
||||
then
|
||||
echo "Using Mercurial/hg to download the source code for swak4Foam"
|
||||
(
|
||||
cd ./rpmBuild/BUILD;
|
||||
hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam swak4Foam-$SWAK_RELEASE_VERSION;
|
||||
cd swak4Foam-$SWAK_RELEASE_VERSION;
|
||||
hg checkout version_${SWAK_RELEASE_VERSION}_v2.x
|
||||
)
|
||||
then
|
||||
echo "Using Mercurial/hg to download the source code for swak4Foam"
|
||||
(
|
||||
cd ./rpmBuild/BUILD;
|
||||
hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam swak4Foam-$SWAK_RELEASE_VERSION;
|
||||
cd swak4Foam-$SWAK_RELEASE_VERSION;
|
||||
hg checkout version_${SWAK_RELEASE_VERSION}_v2.x
|
||||
)
|
||||
else
|
||||
echo "Warning: Mercurial/hg is not installed. Switching to an alternate Subversion repository"
|
||||
echo "Warning: Mercurial/hg is not installed. Switching to an alternate Subversion repository"
|
||||
command -v svn >/dev/null
|
||||
if [ $? -eq 0 ];
|
||||
then
|
||||
echo "Using Subversion/svn to download the source code for swak4Foam"
|
||||
echo "Error: current Subversion-version does not support foam3. Please install mercurial"
|
||||
exit -1
|
||||
(cd ./rpmBuild/BUILD; svn checkout svn://svn.code.sf.net/p/openfoam-extend/svn/trunk/Breeder_1.7/libraries/swak4Foam swak4Foam-$SWAK_RELEASE_VERSION)
|
||||
then
|
||||
echo "Using Subversion/svn to download the source code for swak4Foam"
|
||||
(cd ./rpmBuild/BUILD; svn checkout svn://svn.code.sf.net/p/openfoam-extend/svn/trunk/Breeder_2.0/libraries/swak4Foam swak4Foam-$SWAK_RELEASE_VERSION)
|
||||
else
|
||||
echo "Error: Please install either a Mercurial or Subversion client in order to download the source code for swak4Foam"
|
||||
exit -1
|
||||
fi
|
||||
fi
|
||||
echo "Error: Please install either a Mercurial or Subversion client in order to download the source code for swak4Foam"
|
||||
exit -1
|
||||
fi
|
||||
fi
|
||||
# We move the compilation results directly to $FOAM_SITE_APPBIN and $FOAM_SITE_LIBBIN
|
||||
# If you prefer to keep the libraries and tools under $FOAM_USER_LIBBIN and $FOAM_USER_APPBIN, simply
|
||||
# comment out the next two lines
|
||||
(cd ./rpmBuild/BUILD/swak4Foam-$SWAK_RELEASE_VERSION; find . -name files | xargs -n 1 sed -i.old "s/FOAM_USER/FOAM_SITE/g")
|
||||
(cd ./rpmBuild/BUILD/swak4Foam-$SWAK_RELEASE_VERSION; find . -name options | xargs -n 1 sed -i.old "s/FOAM_USER/FOAM_SITE/g")
|
||||
(cd ./rpmBuild/BUILD/swak4Foam-$SWAK_RELEASE_VERSION; find . -name files | xargs -n 1 sed -i.old "s/FOAM_USER/FOAM_SITE/g")
|
||||
(cd ./rpmBuild/BUILD/swak4Foam-$SWAK_RELEASE_VERSION; find . -name options | xargs -n 1 sed -i.old "s/FOAM_USER/FOAM_SITE/g")
|
||||
|
||||
# We recompile everything
|
||||
(cd ./rpmBuild/BUILD/swak4Foam-$SWAK_RELEASE_VERSION; ./Allwclean; ./Allwmake)
|
||||
(cd ./rpmBuild/BUILD/swak4Foam-$SWAK_RELEASE_VERSION; ./Allwclean; ./Allwmake)
|
||||
else
|
||||
echo "The source code for swak4Foam is already present under ./rpmBuild/BUILD/swak4Foam-$SWAK_RELEASE_VERSION"
|
||||
echo "Please remove this directory if you want to refresh your installation of swak4Foam"
|
||||
echo "The source code for swak4Foam is already present under ./rpmBuild/BUILD/swak4Foam-$SWAK_RELEASE_VERSION"
|
||||
echo "Please remove this directory if you want to refresh your installation of swak4Foam"
|
||||
fi
|
||||
echo ""
|
||||
else
|
||||
|
|
4
ThirdParty/README.ThirdParty
vendored
4
ThirdParty/README.ThirdParty
vendored
|
@ -136,7 +136,7 @@ through when starting the compilation from scratch:
|
|||
- The .rpm files will be located under the directory
|
||||
$WM_THIRD_PARTY_DIR/rpmBuild/RPMS
|
||||
|
||||
- The .tgz files will be located under the directory
|
||||
- The .tgz files will be located under the directory
|
||||
$WM_THIRD_PARTY_DIR/rpmBuild/TGZS
|
||||
|
||||
e: The default installation root directory is "$WM_THIRD_PARTY_DIR".
|
||||
|
@ -158,7 +158,7 @@ Warning: This section is a bit advanced, and as of yet, I have no evidence that
|
|||
this feature has ever been used by anybody. So please feel free to skip
|
||||
this section if you don't need to relocate your ThirdParty packages
|
||||
installation directory, which you should not have do on most
|
||||
installation anyway.
|
||||
installation anyway.
|
||||
|
||||
a: All the generated RPMs can be relocated, meaning that you can override
|
||||
the hard-coded root installation directory when using those RPMs for
|
||||
|
|
Reference in a new issue