Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 45 lines (44 sloc) 1.096 kb
#!/bin/bash
source /etc/profile
#preserve group permissions:
umask 002
SCRIPT_DIR=$(readlink -f $(dirname ${BASH_SOURCE[0]}))
cd $SCRIPT_DIR
if [ ! -e ./buildrepo ]; then
echo "can't find buildrepo. Path is " `cwd`
exit 1
fi
a=$(./buildrepo nextbuild)
if [ $? -eq 2 ]; then
# error
echo "buildrepo error: (re-doing to get full output):"
./buildrepo nextbuild
exit 1
fi
if [ "$a" = "" ]; then
echo "Builds are current."
# we are current
exit 0
else
# evaluate output of buildrepo to get things defined as env vars:
eval $a
if [ -z "$build" ]; then
echo "build not defined. Call to buildrepo probably failed. Exiting."
exit 1
fi
if [ "$1" == "--pretend" ]; then
cmd="echo ../metro"
else
cmd="../metro"
fi
echo -n "Building $build for $subarch ($target) with date $nextdate"
if [ -n "$extras" ]; then
# convert into metro argument:
extras="multi/extras: $extras"
echo " (extras: $extras)"
else
echo
fi
$cmd -d multi: yes target/build: $build target/arch_desc: $arch_desc target/subarch: $subarch target/version: $nextdate multi/mode: $target $extras
exit $?
fi
Jump to Line
Something went wrong with that request. Please try again.