~ubuntu-branches/ubuntu/intrepid/git-core/intrepid-updates

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Gerrit Pape
  • Date: 2007-04-22 13:31:05 UTC
  • mfrom: (1.1.14)
  • Revision ID: package-import@ubuntu.com-20070422133105-tkmhz328g2p0epz1
Tags: 1:1.5.1.2-1
* new upstream point release.
* debian/changelog.upstream: upstream changes taken from mailing list
  announcement.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
CC =gcc
6
6
CFLAGS =-g -Wall
7
7
STRIP =strip
8
 
OPTS =NO_OPENSSL=1 WITH_SEND_EMAIL=1 WITH_OWN_SUBPROCESS_PY=1 \
9
 
  GITWEB_CONFIG=/etc/gitweb.conf prefix=/usr mandir=/usr/share/man \
10
 
  OPTIMIZE="-O2 -g -Wall" INSTALLDIRS=vendor
 
8
OPTS =NO_OPENSSL=1 GITWEB_CONFIG=/etc/gitweb.conf prefix=/usr \
 
9
  mandir=/usr/share/man INSTALLDIRS=vendor
11
10
 
12
11
ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
13
12
  STRIP =: strip
30
29
 
31
30
patch: deb-checkdir patch-stamp
32
31
patch-stamp:
33
 
        for i in `ls -t debian/diff/*.diff || :`; do \
 
32
        for i in `ls -1r debian/diff/*.diff || :`; do \
34
33
          patch -p1 <$$i || exit 1; \
35
34
        done
36
35
        touch patch-stamp
49
48
clean: deb-checkdir deb-checkuid
50
49
        $(MAKE) clean
51
50
        ! test -e patch-stamp || \
52
 
          for i in `ls -tr debian/diff/*.diff || :`; do patch -p1 -R <$$i; done
 
51
          for i in `ls -1 debian/diff/*.diff || :`; do patch -p1 -R <$$i; done
53
52
        rm -rf '$(TMP)'
54
53
        rm -f patch-stamp build-arch-stamp build-indep-stamp
55
54
        rm -rf '$(GIT)'-core '$(GIT)'-doc '$(GIT)'-arch '$(GIT)'-cvs \
56
 
          '$(GIT)'-svn '$(GIT)'-email '$(GIT)'-daemon-run '$(GIT)'k '$(GIT)'web
 
55
          '$(GIT)'-svn '$(GIT)'-email '$(GIT)'-daemon-run '$(GIT)'-gui \
 
56
          '$(GIT)'k '$(GIT)'web
57
57
        rm -f debian/files debian/substvars changelog
58
58
 
59
59
install: install-arch install-indep
69
69
        rm -rf '$(GIT)'-core/usr/lib
70
70
        chmod 644 '$(GIT)'-core/usr/share/perl5/Git.pm
71
71
        # don't include arch, cvs, svn, email tools, and gitk program
72
 
        for i in git-archimport git-cvs git-svn git-send-email gitk; do \
 
72
        for i in git-archimport git-cvs git-svn git-send-email gitk git-gui \
 
73
         git-citool; do \
73
74
          rm -f '$(GIT)'-core/usr/bin/$$i*; \
74
75
        done
75
76
        # handle git program through alternatives mechanism (see #342363),
87
88
        # contrib
88
89
        install -d -m0755 '$(GIT)'-core/usr/share/doc/git-core
89
90
        cp -R contrib '$(GIT)'-core/usr/share/doc/git-core/
 
91
        install git-p4import.py '$(GIT)'-core/usr/share/doc/git-core/contrib/
90
92
        find '$(GIT)'-core/usr/share/doc/git-core/contrib -type f | \
91
93
          xargs chmod 0644
 
94
        find '$(GIT)'-core/usr/share/doc/git-core/contrib -type d | \
 
95
          xargs chmod 0755
 
96
        find '$(GIT)'-core/usr/share/doc/git-core/ -name .gitignore | \
 
97
          xargs rm -f
92
98
        # upstream changelog
93
99
        test -r changelog || ln -s debian/changelog.upstream changelog
94
100
 
139
145
          '$(GIT)'-daemon-run/etc/sv/git-daemon/supervise
140
146
        ln -s /var/run/sv.git-daemon.log \
141
147
          '$(GIT)'-daemon-run/etc/sv/git-daemon/log/supervise
 
148
        # git-gui
 
149
        rm -rf '$(GIT)'-gui
 
150
        install -d -m0755 '$(GIT)'-gui/usr/bin
 
151
        install -m0755 '$(TMP)'/usr/bin/git-gui '$(GIT)'-gui/usr/bin/
 
152
        install -m0755 '$(TMP)'/usr/bin/git-citool '$(GIT)'-gui/usr/bin/
142
153
        # gitk
143
154
        rm -rf '$(GIT)'k
144
155
        install -d -m0755 '$(GIT)'k/usr/bin
169
180
        dpkg-gencontrol -isp -pgit-core -P'$(GIT)'-core
170
181
        dpkg -b '$(GIT)'-core ..
171
182
binary-indep: install-indep git-doc.deb git-arch.deb git-cvs.deb git-svn.deb \
172
 
          git-daemon-run.deb git-email.deb gitk.deb gitweb.deb
 
183
          git-daemon-run.deb git-email.deb git-gui.deb gitk.deb gitweb.deb
173
184
        rm -f debian/substvars
174
 
        for i in -doc -arch -cvs -svn -daemon-run -email k web; do \
 
185
        for i in -doc -arch -cvs -svn -daemon-run -email -gui k web; do \
175
186
          dpkg-gencontrol -isp -pgit$$i -P'$(GIT)'$$i && \
176
187
          dpkg -b '$(GIT)'$$i .. || exit 1; \
177
188
        done