Skip to content

Commit

Permalink
Validate OCAMLBRANCH
Browse files Browse the repository at this point in the history
  • Loading branch information
dra27 committed Jan 28, 2022
1 parent bcff037 commit 8387912
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions appveyor_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ case "$OCAML_PORT" in
*) echo "Unrecognised OCAML_PORT: $OCAML_PORT"; exit 1;;
esac

case "$OCAMLBRANCH"
*.*|trunk) ;;
*) echo "Unrecognised OCAMLBRANCH: $OCAMLBRANCH"; exit 1;;
esac

echo ** OCAMLROOT=$OCAMLROOT

#echo "APPVEYOR_PULL_REQUEST_NUMBER = $APPVEYOR_PULL_REQUEST_NUMBER"
Expand All @@ -72,6 +77,11 @@ git clone https://github.com/ocaml/ocaml.git --branch $OCAMLBRANCH${OCAMLREV:+.}

cd ocaml

if [[ $OCAMLBRANCH = trunk ]]; then
OCAMLBRANCH="$(sed -ne '1s/\([^.]*\.[^.]*\).*/\1/p' VERSION)"
echo "trunk VERSION is $OCAMLBRANCH"
fi

MAKEOCAML=make
CONFIG_DIR=config
GRAPHICS_DISABLE=
Expand Down

0 comments on commit 8387912

Please sign in to comment.