diff options
-rw-r--r-- | mandriva/Makefile | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/mandriva/Makefile b/mandriva/Makefile index 950bc37c..85dd7533 100644 --- a/mandriva/Makefile +++ b/mandriva/Makefile @@ -1,23 +1,15 @@ -# $Id$ NAME=initscripts CFLAGS=-g -O2 -Wall -SVNROOT = svn+ssh://svn.mandriva.com/svn/soft/initscripts -SVNCOPY = $(shell LC_ALL=C svn info ..|fgrep 'URL:'|cut -f 2 -d\ ) ROOT=/ -LOCALSRPM=/SRPMS/main/release -ARCH := $(shell uname -m) SH := $(shell echo *.sh) listhome $(shell echo mandrake_*) rc.modules mdv-network-event network-up mandir=/usr/share VERSION:=$(shell rpm -q --qf '%{VERSION}\n' --specfile ../$(NAME).spec | head -n 1) RELEASE:=$(shell rpm -q --qf '%{RELEASE}\n' --specfile ../$(NAME).spec | head -n 1) -RELTAG := $(shell echo "V$(VERSION)_$(RELEASE)" | tr -- '-.' '__') RH_TAG:=rh$(subst .,_,$(VERSION)) -RPM := $(shell if [ -n "$$RPM" ]; then echo $$RPM; else rpm --eval '%{_topdir}'; fi) SUBDIRS = partmon vpn PROFILE_LEVEL=10 -RPMOPT = --clean all: @@ -55,34 +47,3 @@ install: all check install -m755 lsb-init-functions $(ROOT)/usr/lib/lsb/init-functions install -m755 mdv-network-event $(ROOT)/usr/sbin/ - -localchangelog: -#svn2cl is available in our contrib. - ( cd ..; \ - svn cat `dirname $(SVNROOT)`/common/username.xml > $$TMPDIR/username.xml; \ - svn2cl --authors $$TMPDIR/username.xml --accum -o mandriva/ChangeLog; \ - rm -f mandriva/ChangeLog.bak $$TMPDIR/username.xml; \ - ) - -changelog: localchangelog - svn commit -m "Generated by svn2cl the `date '+%c'`" ChangeLog - -rpm: $(RPM) changelog source svntag diff build - -source: - [ -r $(RPM)/SOURCES/initscripts-$(VERSION).tar.bz2 ] || (cd $(RPM)/SOURCES/; rpm2cpio $(LOCALSRPM)/initscripts-$(VERSION)*.src.rpm|cpio -iuvm '*.tar.bz2';chmod 644 initscripts-*.tar.bz2 ;) - -svntag: - svn copy $(SVNCOPY) $(SVNROOT)/tags/$(RELTAG) -m "$(RELTAG)" - -diff: - cd ../; LC_ALL=C svn diff $(SVNROOT)/tags/$(RH_TAG) $(SVNCOPY) > $(RPM)/SOURCES/initscripts-mdkconf.patch - -build: - rpmbuild -ba $(RPMOPT) ../initscripts.spec - -# special target to build the rpm without commiting to the svn base -localrpm: $(RPM) localchangelog source localdiff build - -# FIXME: we need to diff working copy with a remote branch (from url) -localdiff: diff |