Skip to content
Snippets Groups Projects
Commit 7551d501 authored by Simon Piette's avatar Simon Piette
Browse files

build-system: output error on stderr

Refs #55333

Change-Id: Ic031c907e87ff45735102707cd31e9463a9b5095
parent b8708228
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
#
# Script to build the source tarball for distribution on sflphone.org
# Inclusion of KDE is a requirement. Run get-kde.sh to have it.
#
# Author: Francois Marier <francois@debian.org>
......@@ -12,21 +13,26 @@ set -o errexit
cd ${WORKSPACE}
if [ ! -e daemon/configure.ac ] ; then
echo "This script must be run in the root directory of the sflphone repository"
echo "This script must be run in the root directory of the sflphone repository" >&2
exit 1
fi
if [ $# -ne 1 ] ; then
echo "Usage: $(basename $0) SOFTWARE_VERSION_NUMBER"
echo "Usage: $(basename $0) SOFTWARE_VERSION_NUMBER" >&2
exit 2
fi
if [ ! -d kde ] ; then
echo 'No "kde" directory. Make sure get-kde.sh ran at some point.' >&2
exit 1
fi
# Use the version fed by launch-build-machine-jenkins.sh
SOFTWARE_VERSION=$1
BUILDDIR=sflphone-$SOFTWARE_VERSION
if [ -e $BUILDDIR ] ; then
echo "The build directory ($BUILDDIR) already exists. Delete it first."
echo "The build directory ($BUILDDIR) already exists. Delete it first." >&2
exit 3
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment