1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
#!/bin/sh
# overrides default from /usr/share/pkg-components/build_stages/
set -e
SDIR=debian/components/${DH_COMPONENT}
TDIR=COMPONENTS/${DH_COMPONENT}
DESTDIR=debian/
if [ -z ${PACKAGE} ]
then
echo PACKAGE not set
exit 1
fi
if [ -z ${DH_COMPONENT} ]
then
echo DH_COMPONENT not set
exit 1
fi
cp ${SDIR}/* ${TDIR}/debian/
cd ${TDIR}
if [ -z debian/install ]
then
echo ${SDIR}/debian/install expected with file names to install
exit 1
fi
mod_dir="../../node_modules/${DH_COMPONENT}"
mkdir -p ${mod_dir}
while read line; do
if [ ! -z ${line} ]; then cp -ar ${line} ${mod_dir}/; fi
done < debian/install
|