mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
fixed silly mistakes in wmakePrintBuild
This commit is contained in:
@ -61,15 +61,15 @@ do
|
|||||||
-h | -help)
|
-h | -help)
|
||||||
usage
|
usage
|
||||||
;;
|
;;
|
||||||
-check)
|
-c | -check)
|
||||||
checkOnly=true
|
checkOnly=true
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
-update)
|
-u | -update)
|
||||||
update=true
|
update=true
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
-version)
|
-v | -version)
|
||||||
[ "$#" -ge 2 ] || usage "'$1' option requires an argument"
|
[ "$#" -ge 2 ] || usage "'$1' option requires an argument"
|
||||||
version=$2
|
version=$2
|
||||||
shift 2
|
shift 2
|
||||||
@ -108,14 +108,14 @@ fi
|
|||||||
# update persistent build tag if possible
|
# update persistent build tag if possible
|
||||||
if [ $rc -eq 0 -a -n "$update" -a "$version" != "$previous" ]
|
if [ $rc -eq 0 -a -n "$update" -a "$version" != "$previous" ]
|
||||||
then
|
then
|
||||||
if [ -w "$build" -a \( -w "$WM_PROJECT_DIR" -o ! -e "$build" \) ]
|
if [ -w "$build" -o \( -w "$WM_PROJECT_DIR" -a ! -e "$build" \) ]
|
||||||
then
|
then
|
||||||
echo $version >| "$build" 2>/dev/null
|
echo $version >| "$build" 2>/dev/null
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# check git vs. persistent build tag - no output
|
# check git vs. persistent build tag
|
||||||
if [ -n "$checkOnly" ]
|
if [ -n "$checkOnly" ]
|
||||||
then
|
then
|
||||||
if [ $rc -eq 0 ]
|
if [ $rc -eq 0 ]
|
||||||
|
|||||||
Reference in New Issue
Block a user