summaryrefslogtreecommitdiff
path: root/bin/build-rpm-package
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2014-12-20 05:45:26 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2014-12-20 05:45:34 +0100
commite7a52e9baaac7291440ce44bfb5f4a77b75d450c (patch)
treee7cf0f9133073acc9f0aa80f43f3a24186897014 /bin/build-rpm-package
parente1e7cdc9b24fd2790ecdb6ead91ac06131f8118b (diff)
downloadbuildscripts-e7a52e9baaac7291440ce44bfb5f4a77b75d450c.tar.gz
buildscripts-e7a52e9baaac7291440ce44bfb5f4a77b75d450c.tar.bz2
buildscripts-e7a52e9baaac7291440ce44bfb5f4a77b75d450c.zip
rename sles to sle
Diffstat (limited to 'bin/build-rpm-package')
-rwxr-xr-xbin/build-rpm-package20
1 files changed, 10 insertions, 10 deletions
diff --git a/bin/build-rpm-package b/bin/build-rpm-package
index 1207b50..2da7601 100755
--- a/bin/build-rpm-package
+++ b/bin/build-rpm-package
@@ -25,11 +25,11 @@ GIT_HOSTNAME="git.mydomain.org"
RPMEMAIL="firstname.lastname@mydomain.org"
RPMFULLNAME="Firstname Lastname"
GPG_KEY=
-RPM_DISTS_SUPPORTED="fedora epel opensuse sles"
+RPM_DISTS_SUPPORTED="fedora epel opensuse sle"
FEDORA_DISTROS="18,19,20,21,rawhide"
EPEL_DISTROS="6,7"
OPENSUSE_DISTROS="12.2,12.3,13.1,13.2"
-SLES_DISTROS="11.2,11.3,12.0"
+SLE_DISTROS="11.2,11.3,12.0"
RPM_REPOS_BASE=/var/www/
COMPONENT_MAIN="main"
@@ -40,7 +40,7 @@ PACKAGES_WITHOUT_OTHERMIRROR="keyring"
GNUPGHOME=$HOME/.gnupg
OPENSUSE_DOWNLOAD_URL="http://download.opensuse.org/distribution/#VERSION#/repo/oss/suse/"
-SLES_DOWNLOAD_URL="/srv/mirrors/non-public/sles/#VERSION#/repo/oss/suse/"
+SLE_DOWNLOAD_URL="/srv/mirrors/non-public/sle/#VERSION#/repo/oss/suse/"
test -z $1 && { echo "usage: $(basename $0) [<subpath>/]<git-project> {main,main/<codename>,nightly,nightly/<codename>} [<git-checkout>]"; exit -1; }
@@ -49,7 +49,7 @@ test -f ~/.buildscripts/$PREFIX.conf && . ~/.buildscripts/$PREFIX.conf || { echo
NO_DELAY=${NO_DELAY:-"no"}
FORCE_BUILD=${FORCE_BUILD:-"no"}
-RPM_BUILD_FOR=${RPM_BUILD_FOR:-"fedora:$FEDORA_DISTROS epel:$EPEL_DISTROSi opensuse:$OPENSUSE_DISTROS" sles:$SLES_DISTROS}
+RPM_BUILD_FOR=${RPM_BUILD_FOR:-"fedora:$FEDORA_DISTROS epel:$EPEL_DISTROSi opensuse:$OPENSUSE_DISTROS" sle:$SLE_DISTROS}
set -ex
@@ -250,11 +250,11 @@ build_packages() {
#fi
if [ "x$SKIP_ARCH" != "xx86_64" ] || [ "$IS_NOARCH" = "yes" ]; then
- if [ "x$l_DIST" = "xopensuse" ] || [ "x$l_DIST" = "xsles" ]; then
+ if [ "x$l_DIST" = "xopensuse" ] || [ "x$l_DIST" = "xsle" ]; then
if [ "x$l_DIST" = "xopensuse" ]; then
DOWNLOAD_URL=$(echo "$OPENSUSE_DOWNLOAD_URL" | sed "s/#VERSION#/$l_CODENAME/")
- elif [ "x$l_DIST" = "xsles" ]; then
- DOWNLOAD_URL=$(echo "$SLES_DOWNLOAD_URL" | sed "s/#VERSION#/$l_CODENAME/")
+ elif [ "x$l_DIST" = "xsle" ]; then
+ DOWNLOAD_URL=$(echo "$SLE_DOWNLOAD_URL" | sed "s/#VERSION#/$l_CODENAME/")
fi
while ps ax | grep -E "build.*/var/cache/obs-build/$l_DIST/$l_CODENAME/x86_64/" | grep "sudo obs"; do
echo "Waiting for some other build to finish..."
@@ -300,11 +300,11 @@ build_packages() {
fi
fi
if [ "x$SKIP_ARCH" != "xi386" ] && [ "$IS_NOARCH" != "yes" ]; then
- if [ "x$l_DIST" = "xopensuse" ] || [ "x$l_DIST" = "xsles" ]; then
+ if [ "x$l_DIST" = "xopensuse" ] || [ "x$l_DIST" = "xsle" ]; then
if [ "x$l_DIST" = "xopensuse" ]; then
DOWNLOAD_URL=$(echo "$OPENSUSE_DOWNLOAD_URL" | sed "s/#VERSION#/$l_CODENAME/")
- elif [ "x$l_DIST" = "xsles" ]; then
- DOWNLOAD_URL=$(echo "$SLES_DOWNLOAD_URL" | sed "s/#VERSION#/$l_CODENAME/")
+ elif [ "x$l_DIST" = "xsle" ]; then
+ DOWNLOAD_URL=$(echo "$SLE_DOWNLOAD_URL" | sed "s/#VERSION#/$l_CODENAME/")
fi
while ps ax | grep -E "build.*/var/cache/obs-build/$l_DIST/$l_CODENAME/i386/" | grep "sudo obs"; do
echo "Waiting for some other build to finish..."