X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=debian%2Frules;h=fc3dc45530ab139b80254b6126e4b48bf2697142;hb=f13e64bfbc3a1d52b0c083ffaa2202d388e2eea4;hp=35b8226ec323c0afd9c94275d01c06cd38090b00;hpb=4f996fad13e812a6fdc820ee4a45f6609586bc06;p=onis.git diff --git a/debian/rules b/debian/rules index 35b8226..fc3dc45 100755 --- a/debian/rules +++ b/debian/rules @@ -25,7 +25,12 @@ configure-stamp: dh_testdir # Add here commands to configure the package. - patch -p1 onis.1 + pod2man -r "$(egrep '^\$VERSION' onis | cut -d \' -f 2)" onis >onis.1 touch build-stamp @@ -46,8 +49,12 @@ clean: dh_testroot rm -f build-stamp configure-stamp - # Add here commands to clean up after the build process. - #-$(MAKE) clean + [ -e onis.1 ] && rm -f onis.1 + + if [ -e patch-stamp ]; then + patch -p1 -R