X-Git-Url: http://git.johnwright.org/?p=fmit.git;a=blobdiff_plain;f=debian%2Frules;h=c7ce4585cf677f42e45c0830ca883a1622bb9a06;hp=d0b7def0858daf60492efa646dcff38fd0aa5b59;hb=0a7ac8ff1b912358f95a98f0bccc5c484dec351b;hpb=683310c3d10bc07eaff431d28465abdd776935b0 diff --git a/debian/rules b/debian/rules index d0b7def..c7ce458 100755 --- a/debian/rules +++ b/debian/rules @@ -12,3 +12,14 @@ endif override_dh_auto_configure: dh_auto_configure -- --with-Qt-dir=/usr/share/qt3 $(DEB_CONFIGURE_ALSA) + +override_dh_auto_build: + # This file gets regenerated. Make sure we can end up with the + # original copy of it in place after the clean target. + [ -f tr/fmit_fr.ts.orig ] || cp tr/fmit_fr.ts tr/fmit_fr.ts.orig + dh_auto_build + +override_dh_auto_clean: + dh_auto_clean + # Restore the original version of the regenerated .ts file + [ -f tr/fmit_fr.ts.orig ] && mv tr/fmit_fr.ts{.orig,} || true