do the exchange dance properly
[alioth/musescore.git] / debian / rules
index 4725697..0a993e7 100755 (executable)
@@ -84,6 +84,8 @@ endif
 CMAKE_DEFS+=   -DMSCORE_INSTALL_SUFFIX="3"
 
 override_dh_auto_configure:
+       test -s fonts/mscore/mscore.old || \
+           mv fonts/mscore/mscore.ttf fonts/mscore/mscore.old
        cp -f debian/upstream/mscore.ttf fonts/mscore/mscore.ttf
        rm -rf debian/q-include
        mkdir debian/q-include
@@ -117,6 +119,8 @@ execute_after_dh_install-indep:
            ln -sf ../../sounds/sf2 ../../sounds/sf3 ../../sounds/sfz sound/
 
 execute_after_dh_auto_clean:
+       test '!' -s fonts/mscore/mscore.old || \
+           mv -f fonts/mscore/mscore.old fonts/mscore/mscore.ttf
        rm -rf debian/q-include
        # remove possible doxygen remnants
        rm -rf doc/plugins