Open jeroenjacobs79 opened 3 years ago
Something like this works from the shell:
cp -r !(DEBUILD) DEBUILD/yubikey-luks-0.5.1 || true
However, it doesn't work when I change the Makefile. I tried this:
debianize:
rm -fr DEBUILD
mkdir -p DEBUILD/${SRC_DIR}
cp -r !(DEBUILD) DEBUILD/${SRC_DIR} || true
(cd DEBUILD; tar -zcf yubikey-luks_${VERSION}.orig.tar.gz --exclude=${SRC_DIR}/debian ${SRC_DIR})
But this results in an error:
make builddeb NO_SIGN=1
make debianize
make[1]: Entering directory '/home/box-admin/yubikey-luks'
rm -fr DEBUILD
mkdir -p DEBUILD/yubikey-luks-0.5.1
cp -r !(DEBUILD) DEBUILD/yubikey-luks-0.5.1 || true
/bin/sh: 1: Syntax error: "(" unexpected
make[1]: *** [Makefile:13: debianize] Error 2
make[1]: Leaving directory '/home/box-admin/yubikey-luks'
make: *** [Makefile:17: builddeb] Error 2
Build fails with following error: