2015-05-29 20:04:00 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
|
|
export LC_ALL=C
|
|
|
|
|
|
|
|
CONFIG="fedora.conf"
|
2015-07-07 15:14:06 +00:00
|
|
|
TARGET_DIR="/mnt/koji/compose/rawhide"
|
2015-05-29 20:04:00 +00:00
|
|
|
#OLD_COMPOSES_DIR="--old-composes=/mnt/fedora_koji/compose/f23 --old-composes=$TARGET_DIR"
|
|
|
|
NIGHTLY="--nightly"
|
2015-07-24 18:09:00 +00:00
|
|
|
SKIP_PHASES="--skip-phase=productimg"
|
2015-05-29 20:04:00 +00:00
|
|
|
|
|
|
|
# uncomment and edit for resuming a failed compose
|
|
|
|
#COMPOSE_ID="Fedora-23-20150530.n.0"
|
|
|
|
|
|
|
|
|
2015-07-24 18:09:00 +00:00
|
|
|
CMD="pungi-koji --config=$CONFIG --old-composes=$TARGET_DIR $OLD_COMPOSES_DIR $NIGHTLY $SKIP_PHASES"
|
|
|
|
|
2015-05-29 20:04:00 +00:00
|
|
|
if [ -z "$COMPOSE_ID" ]; then
|
|
|
|
CMD="$CMD --target-dir=$TARGET_DIR"
|
|
|
|
else
|
2015-07-24 18:09:00 +00:00
|
|
|
CMD="$CMD --debug-mode --compose-dir=$TARGET_DIR/$COMPOSE_ID"
|
2015-05-29 20:04:00 +00:00
|
|
|
fi
|
|
|
|
|
2015-07-24 18:09:00 +00:00
|
|
|
time $CMD "$@"
|