Restore emacs/ocamltags.in in clean
authorStephane Glondu <steph@glondu.net>
Sat, 19 Jul 2008 23:01:46 +0000 (01:01 +0200)
committerStephane Glondu <steph@glondu.net>
Sat, 19 Jul 2008 23:02:05 +0000 (01:02 +0200)
debian/rules

index bb60df8364b7006427ffd25a29866f5db9b489a1..94178725a4a00e0cf8217bf4e5ae836940ec3996 100755 (executable)
@@ -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)