Mis à jour le Makefile avec la modification du changelog
authorNicolas Cadou <ncadou@cadou.ca>
Thu, 22 Nov 2012 17:24:13 +0000 (12:24 -0500)
committerNicolas Cadou <ncadou@cadou.ca>
Thu, 22 Nov 2012 17:24:13 +0000 (12:24 -0500)
Makefile

index 731fdf2..ada5e4a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,19 @@
+LUCID_DSC := http://archive.ubuntu.com/ubuntu/pool/main/o/openssh/openssh_5.3p1-3ubuntu3.dsc
+# Get the following patch from http://www.psc.edu/index.php/component/remository/HPN-SSH/OpenSSH-5.3-patches/OpenSSH-5.3-Kitchen-Sink-patch/
+LUCID_PACKAGE := openssh-5.3p1
+LUCID_PATCH := $(LUCID_PACKAGE)-hpn13v7.diff
 
-lucid:
+sanity-check:
        grep DGET_VERIFY=no ~/.devscripts \
                || (echo 'SVP ajoutez "DGET_VERIFY=no" à ~/.devscripts'; false)
-       rm -r openssh-5.3p1
-       dget http://archive.ubuntu.com/ubuntu/pool/main/o/openssh/openssh_5.3p1-3ubuntu3.dsc
-       # Get the following patch from http://www.psc.edu/index.php/component/remository/HPN-SSH/OpenSSH-5.3-patches/OpenSSH-5.3-Kitchen-Sink-patch/
-       zcat openssh-5.3p1-hpn13v7.diff.gz > openssh-5.3p1-hpn13v7.diff
-       patch openssh-5.3p1-hpn13v7.diff < openssh-5.3p1-hpn13v7.diff.auf-patch
-       asrt
-       (cd openssh-5.3p1; \
-               cat ../openssh-5.3p1-hpn13v7.diff | patch -p1; \
+
+lucid: sanity-check
+       test ! -d $(LUCID_PACKAGE) || rm -r $(LUCID_PACKAGE)
+       dget $(LUCID_DSC)
+       zcat $(LUCID_PATCH).gz > $(LUCID_PATCH)
+       patch $(LUCID_PATCH) < $(LUCID_PATCH).auf-patch
+       (cd $(LUCID_PACKAGE); \
+               cat ../$(LUCID_PATCH) | patch -p1; \
+               dch -l '~auf104.' 'Appliqué la patch HPN'; \
                debuild -us -uc; \
        )