directories that differ between branches into variables
authormirabilos <tg@debian.org>
Tue, 9 Jul 2019 22:32:57 +0000 (00:32 +0200)
committermirabilos <mirabilos@evolvis.org>
Tue, 9 Jul 2019 22:32:57 +0000 (00:32 +0200)
debian/rules

index 49a417b..0e1cafa 100755 (executable)
@@ -9,6 +9,10 @@ endif
 LC_ALL:=C.UTF-8
 export LC_ALL
 
+MSPDIR=debian/musescore
+MSCDIR=debian/musescore-common
+MSHARE=usr/share/mscore-*
+
 DEB_HOST_ARCH?=$(shell dpkg-architecture -qDEB_HOST_ARCH)
 DEB_HOST_ARCH_OS?=$(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
 
@@ -76,7 +80,7 @@ override_dh_install-indep:
        # move stuff to packages
        dh_install
        # make system-wide soundfonts available
-       cd debian/musescore-common/usr/share/mscore-* && \
+       cd ${MSCDIR}/${MSHARE} && \
            mkdir -p sound && \
            ln -sf ../../sounds/sf2 ../../sounds/sf3 ../../sounds/sfz sound/