Created
February 6, 2016 10:21
-
-
Save kdm9/c01935abd63f4caf6bc6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -lt 1 ] | |
then | |
echo "USAGE: run-debci-test <PKG.changes> [<outdir>]" | |
exit 1 | |
fi | |
if [ $# -eq 2 ] | |
then | |
OUTDIR$2 | |
else | |
OUTDIR=$(mktemp -d) | |
fi | |
PKG=$1 | |
if [ ! -f "$PKG" ] | |
then | |
echo "Package '*.changes' file must exist" | |
exit 1 | |
fi | |
echo "Running adt-run for $PKG, output to $OUTDIR" | |
set -x | |
adt-run --user debci --output-dir ${OUTDIR} ${PKG} \ | |
--- schroot debci-unstable-amd64 | |
echo "Output is in $OUTDIR" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment