PrawnOS-nonfree/scripts/PackageScripts/installPackage.sh
Hal Emmerich c0f14421c1 Packaging and build system rework
rework package build system (again) for greater ease of maintenance and flexability
add creation of a local apt repo for package building in pbuilder
add an apt cache to debootstrap to speed up build times and reduce network load
package mosys
more build system improvements to come
2020-06-17 01:51:39 -05:00

45 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
set -e
# install the target package into the target location
# This file is part of PrawnOS (http://www.prawnos.com)
# Copyright (c) 2018 Hal Emmerich <hal@halemmerich.com>
# PrawnOS is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# as published by the Free Software Foundation.
# PrawnOS is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with PrawnOS. If not, see <https://www.gnu.org/licenses/>.
if [ -z "$1" ]
then
echo "No package name supplied"
exit 1
fi
if [ -z "$2" ]
then
echo "No install location supplied"
exit 1
fi
PACKAGE_NAME=$1
INSTALL_LOCATION=$2
if [ ! -f "$PACKAGE_NAME" ]; then
echo "Error $PACKAGE_NAME must be built first"
exit 1
fi
echo Installing $PACKAGE_NAME to $INSTALL_LOCATION
cp $PACKAGE_NAME $INSTALL_LOCATION