Skip to content
Snippets Groups Projects
Commit 74a8a6f9 authored by Henry's avatar Henry
Browse files

doc/Doxygen/Allwmake: Automated the setting of FOAM_ONLINE_REPO

Patch provided by Bruno Santos
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1528
parent d9cc06f9
Branches
Tags
No related merge requests found
......@@ -22,6 +22,27 @@ USAGE
exit 1
}
defineURL() {
case "$WM_PROJECT_VERSION" in
[0-9].[0-9].x)
FOAM_BRANCH_NAME="master"
FOAM_REPO_VERSION="$WM_PROJECT-$WM_PROJECT_VERSION"
;;
[0-9].[0-9].[0-9])
FOAM_BRANCH_NAME="version-$WM_PROJECT_VERSION"
FOAM_REPO_VERSION="$WM_PROJECT-${WM_PROJECT_VERSION%.*}.x"
;;
*)
FOAM_BRANCH_NAME="master"
FOAM_REPO_VERSION="$WM_PROJECT-$WM_PROJECT_VERSION"
;;
esac
export FOAM_BASE_REPO="https://github.com/$WM_PROJECT/$FOAM_REPO_VERSION"
export FOAM_ONLINE_REPO="$FOAM_BASE_REPO/tree/$FOAM_BRANCH_NAME"
}
# parse options
while [ "$#" -gt 0 ]
do
......@@ -30,7 +51,7 @@ do
usage
;;
-online)
export FOAM_ONLINE_REPO="https://github.com/$WM_PROJECT/$WM_PROJECT-$WM_PROJECT_VERSION/tree/master"
defineURL
shift
;;
*)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment