build: update examples in script build-debian.sh

This commit is contained in:
Sébastien Helleu 2017-09-28 01:54:53 +02:00
parent ddb661cd80
commit d048f9e7af

View File

@ -30,15 +30,15 @@
# #
# Script arguments: Examples: # Script arguments: Examples:
# #
# 1. version devel, devel-2, stable, stable-2, 1.4, 1.4-2 # 1. version devel, devel-2, stable, stable-2, 1.9, 1.9-2
# 2. distro type/name debian/sid, ubuntu/wily, raspbian/jessie # 2. distro type/name debian/sid, ubuntu/artful, raspbian/stretch
# #
# Examples: # Examples:
# #
# …/build-debian.sh devel debian/sid # …/build-debian.sh devel debian/sid
# …/build-debian.sh stable debian/jessie # …/build-debian.sh stable debian/stretch
# …/build-debian.sh 1.4 ubuntu/wily # …/build-debian.sh 1.9 ubuntu/artful
# …/build-debian.sh 1.4-2 ubuntu/wily # …/build-debian.sh 1.9-2 ubuntu/zesty
# #
# Environment variables that can be used: # Environment variables that can be used:
# #
@ -65,8 +65,8 @@ Syntax: $0 devel|stable|<version> distro
version version to build: stable, devel or specific version version version to build: stable, devel or specific version
(debian package revision is allowed after name (default is 1), (debian package revision is allowed after name (default is 1),
for example: devel-2, stable-2, 1.4-2) for example: devel-2, stable-2, 1.9-2)
distro the distro type/name (debian/sid, ubuntu/wily, raspbian/jessie, ...) distro the distro type/name (debian/sid, ubuntu/artful, raspbian/stretch, ...)
IMPORTANT: the current OS must match the distro, and the WeeChat sources IMPORTANT: the current OS must match the distro, and the WeeChat sources
must be checkouted in the appropriate version (this script must be checkouted in the appropriate version (this script
@ -75,9 +75,9 @@ IMPORTANT: the current OS must match the distro, and the WeeChat sources
Examples: Examples:
$0 devel debian/sid $0 devel debian/sid
$0 stable debian/jessie $0 stable debian/stretch
$0 1.4 ubuntu/wily $0 1.9 ubuntu/artful
$0 1.4-2 ubuntu/wily $0 1.9-2 ubuntu/zesty
EOF EOF
exit ${RC} exit ${RC}
@ -127,7 +127,7 @@ VERSION="$1"
DISTRO="$2" DISTRO="$2"
# separate version and revision # separate version and revision
# example: devel => devel / 1, stable-2 => stable / 2, 1.4-2 => 1.4 / 2 # example: devel => devel / 1, stable-2 => stable / 2, 1.9-2 => 1.9 / 2
TMP_VERSION=$(expr "${VERSION}" : '\([^/]*\)-') || true TMP_VERSION=$(expr "${VERSION}" : '\([^/]*\)-') || true
DEB_REVISION="" DEB_REVISION=""
if [ ! -z "${TMP_VERSION}" ]; then if [ ! -z "${TMP_VERSION}" ]; then