##// END OF EJS Templates
build: "make deb" failed when the base path contained spaces...
muxator -
r34626:f1c2552c default
parent child Browse files
Show More
@@ -73,7 +73,7 b' if [ "$BUILD" ]; then'
73 exit 1
73 exit 1
74 fi
74 fi
75
75
76 cp -r $PWD/contrib/debian debian
76 cp -r "$PWD"/contrib/debian debian
77
77
78 sed -i.tmp "s/__VERSION__/$debver/" $changelog
78 sed -i.tmp "s/__VERSION__/$debver/" $changelog
79 sed -i.tmp "s/__DATE__/$(date --rfc-2822)/" $changelog
79 sed -i.tmp "s/__DATE__/$(date --rfc-2822)/" $changelog
@@ -15,30 +15,30 b' override_dh_python2:'
15 find debian/mercurial/usr/share -type d -empty -delete
15 find debian/mercurial/usr/share -type d -empty -delete
16
16
17 override_dh_install:
17 override_dh_install:
18 python$(PYVERS) setup.py install --root $(CURDIR)/debian/mercurial --install-layout=deb
18 python$(PYVERS) setup.py install --root "$(CURDIR)"/debian/mercurial --install-layout=deb
19 # chg
19 # chg
20 make -C contrib/chg \
20 make -C contrib/chg \
21 DESTDIR=$(CURDIR)/debian/mercurial \
21 DESTDIR="$(CURDIR)"/debian/mercurial \
22 PREFIX=/usr \
22 PREFIX=/usr \
23 clean install
23 clean install
24 # remove arch-independent python stuff
24 # remove arch-independent python stuff
25 find $(CURDIR)/debian/mercurial/usr/lib \
25 find "$(CURDIR)"/debian/mercurial/usr/lib \
26 ! -name '*.so' ! -type d -delete , \
26 ! -name '*.so' ! -type d -delete , \
27 -type d -empty -delete
27 -type d -empty -delete
28 python$(PYVERS) setup.py install --root $(CURDIR)/debian/mercurial-common --install-layout=deb
28 python$(PYVERS) setup.py install --root "$(CURDIR)/debian/mercurial-common" --install-layout=deb
29 make install-doc PREFIX=$(CURDIR)/debian/mercurial-common/usr
29 make install-doc PREFIX="$(CURDIR)"/debian/mercurial-common/usr
30 # remove arch-dependent python stuff
30 # remove arch-dependent python stuff
31 find $(CURDIR)/debian/mercurial-common/usr/lib \
31 find "$(CURDIR)"/debian/mercurial-common/usr/lib \
32 -name '*.so' ! -type d -delete , \
32 -name '*.so' ! -type d -delete , \
33 -type d -empty -delete
33 -type d -empty -delete
34 cp contrib/hg-ssh $(CURDIR)/debian/mercurial-common/usr/bin
34 cp contrib/hg-ssh "$(CURDIR)"/debian/mercurial-common/usr/bin
35 mkdir -p $(CURDIR)/debian/mercurial-common/usr/share/mercurial
35 mkdir -p "$(CURDIR)"/debian/mercurial-common/usr/share/mercurial
36 cp contrib/hgk $(CURDIR)/debian/mercurial-common/usr/share/mercurial
36 cp contrib/hgk "$(CURDIR)"/debian/mercurial-common/usr/share/mercurial
37 mkdir -p $(CURDIR)/debian/mercurial-common/etc/mercurial/hgrc.d/
37 mkdir -p "$(CURDIR)"/debian/mercurial-common/etc/mercurial/hgrc.d/
38 cp contrib/debian/*.rc $(CURDIR)/debian/mercurial-common/etc/mercurial/hgrc.d/
38 cp contrib/debian/*.rc "$(CURDIR)"/debian/mercurial-common/etc/mercurial/hgrc.d/
39 # completions
39 # completions
40 mkdir -p $(CURDIR)/debian/mercurial-common/usr/share/bash-completion/completions
40 mkdir -p "$(CURDIR)"/debian/mercurial-common/usr/share/bash-completion/completions
41 cp contrib/bash_completion $(CURDIR)/debian/mercurial-common/usr/share/bash-completion/completions/hg
41 cp contrib/bash_completion "$(CURDIR)"/debian/mercurial-common/usr/share/bash-completion/completions/hg
42 mkdir -p $(CURDIR)/debian/mercurial-common/usr/share/zsh/vendor-completions
42 mkdir -p "$(CURDIR)"/debian/mercurial-common/usr/share/zsh/vendor-completions
43 cp contrib/zsh_completion $(CURDIR)/debian/mercurial-common/usr/share/zsh/vendor-completions/_hg
43 cp contrib/zsh_completion "$(CURDIR)"/debian/mercurial-common/usr/share/zsh/vendor-completions/_hg
44 rm $(CURDIR)/debian/mercurial-common/usr/bin/hg
44 rm "$(CURDIR)"/debian/mercurial-common/usr/bin/hg
General Comments 0
You need to be logged in to leave comments. Login now