Commit f2bb275d authored by IOhannes zmölnig's avatar IOhannes zmölnig

create [gemdefaultwindow] wrappers around the various backends

parent 390c1556
......@@ -88,6 +88,10 @@ DEB_COPYRIGHT_CHECK_IGNORE_REGEX = \
%:
dh $@
override_dh_auto_clean:
dh_clean
-rm -f gemdefaultwindow-*.pd
override_dh_auto_configure:
CXXFLAGS="$(CXXFLAGS)" CFLAGS="$(CFLAGS)" dh_auto_configure -- $(archconfflags)
......@@ -95,6 +99,8 @@ override_dh_auto_test:
# no actual 'make test' target
override_dh_install:
find src/Output/ -name "*.cpp" -exec \
./debian/scripts/gemdefaultwindow.sh abstractions/gemdefaultwindow.pd.in {} +
dh_install
# remove libtool files, they are not needed
-find debian/gem-extra/usr/lib/ -name '*.la' -delete
......
#!/bin/sh
INFILE=$1
shift
OUTFILE=${INFILE##*/}
OUTFILE=${OUTFILE%.in}
OUTFILE=${OUTFILE%.pd}
for WINFILE in "$@"; do
WINFILE=${WINFILE##*/}
WINFILE=${WINFILE%.*}
BACKEND=${WINFILE%window}
BACKEND=${BACKEND#gem}
cat "${INFILE}" | sed -e "s|@GEM_DEFAULT_WINDOW@|${WINFILE}|g" > "${OUTFILE}-${BACKEND}.pd"
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment