Permalink
Browse files

Removing the version number from Make.config, so there is now a singl…

…e place to store the version number.
  • Loading branch information...
1 parent 881d4ed commit 3876df03e243fcaf572dd1a201bad54ff65a317e @mbaltaks committed Jan 23, 2009
Showing with 6 additions and 8 deletions.
  1. +0 −2 Make.config
  2. +3 −3 Makefile
  3. +3 −3 package/Makefile
View
@@ -1,5 +1,3 @@
-# Needs keeping in sync with the dcversion file
-VERSION = 1.6.6b5
VERSION_FILE = dcversion
BUILD_CONFIG = Release
View
@@ -36,16 +36,16 @@ package:
( cd package; make build )
disk_image:
- rm -f $(tmp)/DoubleCommand-$(VERSION).dmg
+ rm -f $(tmp)/DoubleCommand-`cat $(VERSION_FILE)`.dmg
rm -fr $(image)
mkdir -p $(image)/Documentation
cp docs/*.gif docs/*.html docs/*.css docs/*.txt $(image)/Documentation
- cp -R $(tmp)/DoubleCommand-$(VERSION).pkg $(image)
+ cp -R $(tmp)/DoubleCommand-`cat $(VERSION_FILE)`.pkg $(image)
#cp image_resources/*.png $(image)
#cp image_resources/_DS_Store $(image)/.DS_Store
$(hdiutil) create -srcfolder $(image) \
-volname DoubleCommand \
- $(tmp)/DoubleCommand-$(VERSION).dmg
+ $(tmp)/DoubleCommand-`cat $(VERSION_FILE)`.dmg
uninstall:
kextunload -b com.baltaks.driver.DoubleCommand
View
@@ -35,15 +35,15 @@ build: pkg_root resources versions
rm -fr $(tmp)/resources
mkdir $(tmp)/resources
cp resources/pre* resources/post* $(tmp)/resources
- rm -rf "$(tmp)/DoubleCommand-$(VERSION).pkg"
+ rm -rf "$(tmp)/DoubleCommand-`cat $(VERSION_FILE)`.pkg"
-$(packagemaker) -build \
- -p "$(shell pwd)/$(tmp)/DoubleCommand-$(VERSION).pkg" \
+ -p "$(shell pwd)/$(tmp)/DoubleCommand-`cat $(VERSION_FILE)`.pkg" \
-f "$(shell pwd)/$(pkg_root)" \
-ds \
-r "$(shell pwd)/$(tmp)/resources" \
-i "$(shell pwd)/Info.plist" \
-d "$(shell pwd)/Description.plist"
- @echo Created package $(tmp)/DoubleCommand-$(VERSION).pkg
+ @echo Created package $(tmp)/DoubleCommand-`cat $(VERSION_FILE)`.pkg
versions: $(INFO_PLIST) $(VERSION_FILE)

0 comments on commit 3876df0

Please sign in to comment.