diff options
Diffstat (limited to 'tools/make-package-macosx')
-rwxr-xr-x | tools/make-package-macosx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/make-package-macosx b/tools/make-package-macosx index 7dd79175a..0aa76f279 100755 --- a/tools/make-package-macosx +++ b/tools/make-package-macosx @@ -17,11 +17,9 @@ cd package-macosx rm -rf ocaml.pkg ocaml-rw.dmg -VERSION=`sed -n -e '/ocaml_version/s/.*"\([^"]*\)".*/\1/p' ../stdlib/sys.ml` -VERSION_MAJOR=`sed -n -e '/ocaml_version/s/.*"\([0-9]*\)\..*/\1/p' \ - ../stdlib/sys.ml` -VERSION_MINOR=`sed -n -e '/ocaml_version/s/.*"[0-9]*\.\([0-9]*\)[.+].*/\1/p' \ - ../stdlib/sys.ml` +VERSION=`head -1 ../VERSION` +VERSION_MAJOR=`sed -n -e '1s/^\([0-9]*\)\..*/\1/p' ../VERSION +VERSION_MINOR=`sed -n -e '1s/^[0-9]*\.\([0-9]*\)[.+].*/\1/p' ../VERSION # Worked in 10.2: |