Skip to content
Snippets Groups Projects
Commit 4ce22e4c authored by mattijs's avatar mattijs
Browse files

ENH: foamConfigurePaths: overwrite the version always

parent ff5bc12a
No related merge requests found
...@@ -107,13 +107,14 @@ do ...@@ -107,13 +107,14 @@ do
shift 2 shift 2
;; ;;
--projectVersion) --projectVersion)
# [ "$#" -ge 2 ] || usage "'$1' option requires an argument" [ "$#" -ge 2 ] || usage "'$1' option requires an argument"
# projectVersion="$2" projectVersion="$2"
# # replace WM_PROJECT_VERSION=... # replace WM_PROJECT_VERSION=...
# _inlineSed \ # No checking since might already be set.
# etc/bashrc \ echo "Replacing WM_PROJECT_VERSION setting by $projectVersion"
# '/^[^#]/s@WM_PROJECT_VERSION=.*@WM_PROJECT_VERSION='"$projectVersion@" \ sed -i \
# "Replacing WM_PROJECT_VERSION setting by $projectVersion" '/^[^#]/s@WM_PROJECT_VERSION=.*@WM_PROJECT_VERSION='"$projectVersion@" \
etc/bashrc
shift 2 shift 2
;; ;;
-archOption | --archOption) -archOption | --archOption)
...@@ -142,7 +143,7 @@ do ...@@ -142,7 +143,7 @@ do
esac esac
done done
[ -n "$foamInstall" -o -n "$projectName" -o -n "$archOption" -o -n "$paraviewInstall" ] || usage "Please specify at least one configure option" [ -n "$foamInstall" -o -n "$projectName" -o -n "$projectVersion" -o -n "$archOption" -o -n "$paraviewInstall" ] || usage "Please specify at least one configure option"
#echo "Replacing WM_PROJECT setting by '$projectName'" #echo "Replacing WM_PROJECT setting by '$projectName'"
#sed -i -e 's@WM_PROJECT=.*@WM_PROJECT='"$projectName@" etc/bashrc #sed -i -e 's@WM_PROJECT=.*@WM_PROJECT='"$projectName@" etc/bashrc
......
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