[MLton-commit] r6280
Matthew Fluet
fluet at mlton.org
Mon Dec 17 16:18:45 PST 2007
Use RELEASE variable
----------------------------------------------------------------------
U mlton/trunk/package/macosx/Info.plist.in
U mlton/trunk/package/macosx/Makefile
----------------------------------------------------------------------
Modified: mlton/trunk/package/macosx/Info.plist.in
===================================================================
--- mlton/trunk/package/macosx/Info.plist.in 2007-12-18 00:18:27 UTC (rev 6279)
+++ mlton/trunk/package/macosx/Info.plist.in 2007-12-18 00:18:44 UTC (rev 6280)
@@ -11,7 +11,7 @@
<key>IFMajorVersion</key>
<integer>VERSION</integer>
<key>IFMinorVersion</key>
- <integer>0</integer>
+ <integer>RELEASE</integer>
<key>IFPkgFlagAllowBackRev</key>
<false/>
<key>IFPkgFlagAuthorizationAction</key>
Modified: mlton/trunk/package/macosx/Makefile
===================================================================
--- mlton/trunk/package/macosx/Makefile 2007-12-18 00:18:27 UTC (rev 6279)
+++ mlton/trunk/package/macosx/Makefile 2007-12-18 00:18:44 UTC (rev 6280)
@@ -7,11 +7,11 @@
RELEASE := 1
endif
-mlton-$(VERSION).$(TARGET_ARCH)-$(TARGET_OS).dmg: mlton-$(VERSION).$(TARGET_ARCH)-$(TARGET_OS).pkg
+mlton-$(VERSION)-$(RELEASE).$(TARGET_ARCH)-$(TARGET_OS).dmg: mlton-$(VERSION)-$(RELEASE).$(TARGET_ARCH)-$(TARGET_OS).pkg
hdiutil create -srcfolder $< $@
rm -rf $<
-mlton-$(VERSION).$(TARGET_ARCH)-$(TARGET_OS).pkg: Info.plist Description.plist install/usr/local/bin/mlton Resources/postinstall Resources/postupgrade
+mlton-$(VERSION)-$(RELEASE).$(TARGET_ARCH)-$(TARGET_OS).pkg: Info.plist Description.plist install/usr/local/bin/mlton Resources/postinstall Resources/postupgrade
/Developer/Tools/packagemaker -build -ds -v -i Info.plist -d Description.plist -f install/usr/local -r Resources -p $@
sudo rm -rf install
@@ -25,6 +25,8 @@
cp Info.plist.in Info.plist
sed "s/\(.*\)VERSION\(.*\)/\1$(VERSION)\2/" <Info.plist >z && \
mv z Info.plist;
+ sed "s/\(.*\)RELEASE\(.*\)/\1$(RELEASE)\2/" <Info.plist >z && \
+ mv z Info.plist;
sed "s/\(.*\)TARGET_ARCH\(.*\)/\1$(TARGET_ARCH)\2/" <Info.plist >z && \
mv z Info.plist;
sed "s/\(.*\)TARGET_OS\(.*\)/\1$(TARGET_OS)\2/" <Info.plist >z && \
More information about the MLton-commit
mailing list