]> henry.ined.fr Git - .git/commitdiff
Summary: Version read from version.h, itself read with cmake
authorN. Brouard <brouard@ined.fr>
Wed, 30 Sep 2015 18:35:53 +0000 (18:35 +0000)
committerN. Brouard <brouard@ined.fr>
Wed, 30 Sep 2015 18:35:53 +0000 (18:35 +0000)
src/Makefile

index dd3746051f7dd39ff4472942306b262bd7fb5b1c..4a176a0420f9dde176735ef08689b9f8585d87a9 100644 (file)
@@ -1,5 +1,8 @@
 #Version has to be set in ../CMakeLists.txt too.
-VERSION=0.98r0
+#VERSION=0.98r2
+#VERSION=$(shell echo `grep IMACH_VERSION__ version.h | echo 'titi'`)
+VERSION=$(shell echo `grep IMACH_VERSION__ version.h | awk 'BEGIN { FS = "[ \t\n\"]+" }  { print $$3 }'`)
+OSTYPE = $(shell echo $$OSTYPE)
 # DRIVEG is for VirtualBox Windows 64bit 
 DRIVEG=f:
 #DIRG is the corresponding build directory for Virtual Windows
@@ -475,6 +478,7 @@ imachdmg : imachopt.o ../distributions/osx/create-dmg ../distributions/osx/creat
        pwd ;\
        cmake ../..;\
        cmake --build . ; \
+       echo $(OSTYPE);\
        rm -rf imach$(VERSION).app;\
        mkdir -p imach$(VERSION).app;\
        mkdir -p imach$(VERSION).app/Contents;\