File: build

package info (click to toggle)
node-compression-webpack-plugin 1.1.10-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 556 kB
  • sloc: sh: 23; makefile: 9
file content (31 lines) | stat: -rwxr-xr-x 573 bytes parent folder | download | duplicates (2)
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