~ubuntu-branches/debian/jessie/rinse/jessie

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kemp
  • Date: 2008-06-28 21:22:23 UTC
  • mfrom: (1.2.1 upstream) (3.1.1 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080628212223-mteb47q7aocea9uy
Tags: 1.3-2
* Removed several "bashisms" from our scripts
  - Thanks for Ubuntu for the patch / feedback.
  (Closes: #488356)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
#
4
4
# Steve
5
5
# --
6
 
# $Id: Makefile,v 1.14 2007-11-13 21:15:46 steve Exp $
7
6
#
8
7
 
9
8
 
11
10
#  Only used to build distribution tarballs.
12
11
#
13
12
DIST_PREFIX = ${TMP}
14
 
VERSION     = 0.9
 
13
VERSION     = 1.3
15
14
BASE        = rinse
16
 
PREFIX      = 
 
15
PREFIX      =
17
16
 
18
17
 
19
18
#
31
30
 
32
31
 
33
32
#
34
 
#  Show what has been changed in the local copy vs. the CVS repository.
 
33
#  Show what has been changed in the local copy vs. the remote repository.
35
34
#
36
35
diff:
37
 
        cvs diff --unified 2>/dev/null
 
36
        hg diff 2>/dev/null
38
37
 
39
38
 
40
39
 
88
87
        rm -rf $(DIST_PREFIX)/$(BASE)-$(VERSION)
89
88
        rm -f $(DIST_PREFIX)/$(BASE)-$(VERSION).tar.gz
90
89
        cp -R . $(DIST_PREFIX)/$(BASE)-$(VERSION)
91
 
        find  $(DIST_PREFIX)/$(BASE)-$(VERSION) -name "CVS" -print | xargs rm -rf
 
90
        perl -pi -e "s/XXUNRELEASEDXX/$(VERSION)/g" $(DIST_PREFIX)/$(BASE)-$(VERSION)/bin/rinse*
92
91
        rm -rf $(DIST_PREFIX)/$(BASE)-$(VERSION)/debian
93
 
        cd $(DIST_PREFIX) && tar --exclude=.cvsignore -cvf $(DIST_PREFIX)/$(BASE)-$(VERSION).tar $(BASE)-$(VERSION)/
 
92
        rm -rf $(DIST_PREFIX)/$(BASE)-$(VERSION)/.hg*
 
93
        rm -rf $(DIST_PREFIX)/$(BASE)-$(VERSION)/.release
 
94
        cd $(DIST_PREFIX) && tar -cvf $(DIST_PREFIX)/$(BASE)-$(VERSION).tar $(BASE)-$(VERSION)/
94
95
        gzip $(DIST_PREFIX)/$(BASE)-$(VERSION).tar
95
96
        mv $(DIST_PREFIX)/$(BASE)-$(VERSION).tar.gz .
96
97
        rm -rf $(DIST_PREFIX)/$(BASE)-$(VERSION)
112
113
 
113
114
 
114
115
#
115
 
#  Update the local copy from the CVS repository.
116
 
#
117
 
#  NOTE: Removes empty local directories.
118
 
#
119
 
update: 
120
 
        cvs -z3 update -A -P -d 2>/dev/null
 
116
#  Update the local copy from the remote repository.
 
117
#
 
118
#
 
119
update:
 
120
        hg pull --update
121
121
 
122
122
 
123
123
#