source: projects/rootfiles/tags/rootfiles-vine-8.2/Makefile @ 4137

Revision 4137, 881 bytes checked in by daisuke, 13 years ago (diff)

tagging as rootfiles-vine-8.2

Line 
1DESTDIR=
2NAME=rootfiles-vine
3DATE:=$(shell date +'%Y%m%d')
4PWD:=$(shell pwd)
5EXCLUDE= Makefile rootfiles-vl.spec
6
7VERSION := $(shell awk '/Version:/ { print $$2 }' rootfiles-vl.spec)
8RELEASE := $(shell awk '/Release:/ { print $$2 }' rootfiles-vl.spec)
9TAG=$(NAME)-$(VERSION)
10
11install:
12        mkdir -p ${DESTDIR}/root
13        tar --exclude Makefile --exclude rootfiles-vl.spec -cvf - . \
14        | (cd ${DESTDIR}/root ; tar -xf -)
15
16rpm: tarbz2
17        rpm -ba rootfiles-vl.spec
18
19tarbz2: clean
20        cd .. && cp -a ${PWD} ${NAME}-${VERSION}
21        cd .. && tar --exclude .svn -cjf ${NAME}-${VERSION}.tar.bz2 ${NAME}-${VERSION}
22        cp -f ../${NAME}-${vERSION}.tar.bz2 $(rpm --eval %_sourcedir)/
23        cd .. && rm -rf ${NAME}-${VERSION}
24
25tag:
26        if [ ! -d ../tags/$(TAG) ] ;then \
27                svn copy ../trunk ../tags/$(TAG) ;\
28                svn commit -m "tagging as $(TAG)" ../tags/$(TAG) ;\
29                echo "Tagged as $(TAG)" ;\
30        fi
31
32clean:
33        rm -fv *~ .*.swp
34
Note: See TracBrowser for help on using the repository browser.