소스 검색

also add _build/ocaml.version

Alexander Kuzmenko 7 년 전
부모
커밋
a558b50d95
2개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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)