deploy_to_repo_i386.sh 438 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/bin/bash
##Exit on error in script
set -e 
# This script will add a upload the debian package to remote APT repository, using dupload

DUPLOAD=$(which dupload)

if [[ $# -lt 2 ]]; then
    echo "Usage: ${0} <profile-name> <change-file-path>"
    exit -1
fi

export PROFILENAME=${1}
export CHANGESFILE=${2}

echo "=====Listing/Deploying Packages====="
$DUPLOAD --to $PROFILENAME $CHANGESFILE
echo "===================================="