Browse Source

also add _build/ocaml.version

Alexander Kuzmenko 7 years ago
parent
commit
a558b50d95
2 changed files with 4 additions and 0 deletions
  1. 2 0
      Makefile
  2. 2 0
      Makefile.win

+ 2 - 0
Makefile

@@ -213,6 +213,8 @@ package_unix:
 	rm -rf $(PACKAGE_FILE_NAME) $(PACKAGE_FILE_NAME).tar.gz
 	#delete all content which was generated in _build dir except interfaces
 	find _build/ -type f ! -name '*.cmi' -delete
+	#add ocaml version to the _build dir
+	ocaml -version > _build/ocaml.version
 	# Copy the package contents to $(PACKAGE_FILE_NAME)
 	mkdir -p $(PACKAGE_FILE_NAME)
 	cp -r $(OUTPUT) haxelib$(EXTENSION) std extra/LICENSE.txt extra/CONTRIB.txt extra/CHANGES.txt _build $(PACKAGE_FILE_NAME)

+ 2 - 0
Makefile.win

@@ -42,6 +42,8 @@ package_win:
 	rm -rf $(PACKAGE_FILE_NAME) $(PACKAGE_FILE_NAME).zip temp.zip
 	#delete all content which was generated in _build dir except interfaces
 	find _build/ -type f ! -name '*.cmi' -delete
+	#add ocaml version to the _build dir
+	ocaml -version > _build/ocaml.version
 	# Copy the package contents to $(PACKAGE_FILE_NAME)
 	# Using poor man's cp (zip then unzip), because cp in cygwin is quite broken
 	mkdir -p $(PACKAGE_FILE_NAME)