source: projects/rootfiles/tags/rootfiles-vine-8.1/Makefile @ 3564

Revision 3564, 913 bytes checked in by daisuke, 13 years ago (diff)

tagging as rootfiles-vine-8.1

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        cd .. && rpm -ta ${NAME}-${DATE}.tar.bz2 --clean
18
19tarbz2: spec clean
20        cd .. && cp -a ${PWD} ${NAME}-${DATE}
21        cd .. && tar --exclude .svn -cjf ${NAME}-${DATE}.tar.bz2 ${NAME}-${DATE}
22        cd .. && rm -rf ${NAME}-${DATE}
23
24spec:
25        perl -pi -e 's/^%define date.*/%define date ${DATE}/' rootfiles-vl.spec
26
27tag:
28        if [ ! -d ../tags/$(TAG) ] ;then \
29                svn copy ../trunk ../tags/$(TAG) ;\
30                svn commit -m "tagging as $(TAG)" ../tags/$(TAG) ;\
31                echo "Tagged as $(TAG)" ;\
32        fi
33
34clean:
35        rm -fv *~ .*.swp
36
Note: See TracBrowser for help on using the repository browser.