You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
592 B

#!/bin/sh
##
## node-openpkg.sh
##
PATH=@l_prefix@/bin:$PATH
export PATH
cmd="$1"; shift
case "$cmd" in
squeeze )
# reduce files
args="-p . -r -P -n default:safe,default:caution"
if [ $# -gt 0 ]; then
args="$args $@"
fi
eval @l_prefix@/bin/modclean $args
;;
install )
# install files
dst="$1"
if [ ".$dst" = . ]; then
echo "node-openpkg: ERROR: missing destination directory" 1>&2
exit 1
fi
cp -rp node_modules/* "$RPM_BUILD_ROOT$dst"
;;
esac