Scripts/install
From Organic Design wiki
- !/bin/sh
. config/options
if [ -z "$1" ]; then
echo "usage: $0 package_name" exit 1
fi
if [ -f $PACKAGES/$1/arch ]; then
grep -q "$TARGET_ARCH" "$PACKAGES/$1/arch" || exit 0
fi
$SCRIPTS/build $@
printf "%${INDENT}c INSTALL $1\n" >&$SILENT_OUT export INDENT=$((${INDENT:-1}+$INDENT_SIZE))
if [ -f $PACKAGES/$1/install ]; then
$PACKAGES/$1/install $@ >&$VERBOSE_OUT
else
mkdir -p $INSTALL/usr/bin cp $BUILD/$1*/$1 $INSTALL/usr/bin
fi