From: Stephane Glondu Date: Sat, 19 Jul 2008 23:01:46 +0000 (+0200) Subject: Restore emacs/ocamltags.in in clean X-Git-Tag: archive/raspbian/4.08.1-4+rpi1~3^2~458 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4a1bcf4134c9e507170c0cd93342a4dc2852fccc;p=ocaml.git Restore emacs/ocamltags.in in clean --- diff --git a/debian/rules b/debian/rules index bb60df83..94178725 100755 --- a/debian/rules +++ b/debian/rules @@ -141,11 +141,15 @@ clean: abi-sed unpatch $(MAKE) -C debian/ocaml-md5sums clean $(MAKE) -C debian/dh-ocaml clean $(MAKE) -C debian/policy clean + # Restore files altered by debian/rules for ext in sub guess; do \ if [ -f debian/config.orig.$$ext ] ; then \ mv -f debian/config.orig.$$ext config/gnu/config.$$ext; \ fi; \ done + if head -n 1 emacs/ocamltags.in | grep -q '^#!/bin/sh'; then \ + sed -i 1d emacs/ocamltags.in; \ + fi # Files not cleaned by upstream (most of them are cleaned # using debian/clean feature of dh_clean in debhelper 7) -$(RM) ocaml-$(OCAMLABI)