Commit ca02026c authored by Ulrik Haugen's avatar Ulrik Haugen
Browse files

* Makefile (DEBIANCLIENTVERSIONSUFFIX): New variable.

	(debian-packages): Use DEBIANCLIENTVERSIONSUFFIX to suffix the
	client version.
parent fa512e46
2003-01-08 Ulrik Haugen <qha@lysator.liu.se>
* Makefile (DEBIANCLIENTVERSIONSUFFIX): New variable.
(debian-packages): Use DEBIANCLIENTVERSIONSUFFIX to suffix the
client version.
2003-01-07 David Byers <david.byers@swipnet.se>
Fix bug 962:
......
......@@ -301,12 +301,18 @@ redhat-packages: $(PACKAGENAME)-src-$(CLIENTVERSION).tar.gz
######################################################################
# Debian packages
# Keeping the suffix in it's own variable lets you easily replace it
# from the commandline. This is useful when you're building a package
# just for your self and don't want it replaced by the package in the
# distribution. (make DEBIANCLIENTVERSIONSUFFIX=qha1 debian-packages).
DEBIANCLIENTVERSIONSUFFIX = 1
DEBIANCLIENTVERSION := $(subst -,.,$(CLIENTVERSION))
debian-packages: $(RELEASE-BASE-SRC).buildstamp
cp -R debian $(RELEASE-BASE-SRC)
$(RM) -rf $(RELEASE-BASE-SRC)/debian/CVS
sed '1s/(.*)/($(DEBIANCLIENTVERSION)-1)/' <debian/changelog >$(RELEASE-BASE-SRC)/debian/changelog
sed '1s/(.*)/($(DEBIANCLIENTVERSION)-$(DEBIANCLIENTVERSIONSUFFIX))/' <debian/changelog >$(RELEASE-BASE-SRC)/debian/changelog
sed 's/@@CLIENTVERSION@@/$(CLIENTVERSION)/g' <debian/rules >$(RELEASE-BASE-SRC)/debian/rules
cd $(RELEASE-BASE-SRC) && dpkg-buildpackage
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment