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
|
#!/bin/sh
# overrides default from /usr/share/pkg-components/build_stages/
set -e
if [ -z ${PACKAGE} ]
then
echo PACKAGE not set
exit 1
fi
if [ -z ${DH_COMPONENT} ]
then
echo DH_COMPONENT not set
exit 1
fi
if [ -z debian/components/${DH_COMPONENT}/install ]
then
echo debian/components/${DH_COMPONENT}/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 ${DH_COMPONENT}/${line} ${mod_dir}/; fi
done < debian/components/${DH_COMPONENT}/install
|