From e6988afd0e7f5d9922eb188a77b54ec4baaa6591460179e4b3e319495bcbf8df Mon Sep 17 00:00:00 2001 From: Stefan Dirsch Date: Thu, 10 Feb 2022 20:36:08 +0000 Subject: [PATCH] Accepting request 953299 from home:dirkmueller:branches:openSUSE:Factory:Rings:1-MinimalX - fix bashisms in pre_checkins.sh (bsc#1195391) OBS-URL: https://build.opensuse.org/request/show/953299 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/xorg-x11-server?expand=0&rev=817 --- pre_checkin.sh | 17 ++++++++++------- xorg-server-provides | 8 ++++---- xorg-x11-server.changes | 5 +++++ 3 files changed, 19 insertions(+), 11 deletions(-) diff --git a/pre_checkin.sh b/pre_checkin.sh index a71e75e..998fd53 100644 --- a/pre_checkin.sh +++ b/pre_checkin.sh @@ -12,11 +12,11 @@ extract_abi() { grep ^.define.*${1}_VERSION ${xorg_src}/hw/xfree86/common/xf86Module.h | tr '(),' ' .' | awk '{ print $4$5 }' } -if [ "$1" == "--tar" ]; then +if [ "$1" = "--tar" ]; then tmpdir=$(mktemp -d) tar xf "$2" -C ${tmpdir} xorg_src=${tmpdir}/* -elif [ "$1" == "--verify" ]; then +elif [ "$1" = "--verify" ]; then xorg_src="$2" prv_ext=".build" else @@ -39,15 +39,18 @@ abi_videodrv=`extract_abi VIDEODRV` abi_xinput=`extract_abi XINPUT` abi_extension=`extract_abi EXTENSION` -A="Provides: X11_ABI_XINPUT = ${abi_xinput}\nProvides: X11_ABI_VIDEODRV = ${abi_videodrv}\nProvides: X11_ABI_ANSIC = ${abi_ansic}\nProvides: X11_ABI_EXTENSION = ${abi_extension}" +cat > xorg-server-provides${prv_ext} < xorg-server-provides${prv_ext} - -if [ "$1" == "--tar" ]; then +if [ "$1" = "--tar" ]; then if [ -d ${tmpdir} ]; then rm -rf ${tmpdir} fi -elif [ "$1" == "--verify" ]; then +elif [ "$1" = "--verify" ]; then diff "$3" xorg-server-provides${prv_ext} if [ $? -gt 0 ]; then echo "The ABI verification failed... please run $0 before checking in" diff --git a/xorg-server-provides b/xorg-server-provides index e031cbd..b5b5c45 100644 --- a/xorg-server-provides +++ b/xorg-server-provides @@ -1,4 +1,4 @@ -Provides: X11_ABI_XINPUT = 24.4 -Provides: X11_ABI_VIDEODRV = 25.2 -Provides: X11_ABI_ANSIC = 0.4 -Provides: X11_ABI_EXTENSION = 10.0 +Provides: X11_ABI_XINPUT = 24.4 +Provides: X11_ABI_VIDEODRV = 25.2 +Provides: X11_ABI_ANSIC = 0.4 +Provides: X11_ABI_EXTENSION = 10.0 diff --git a/xorg-x11-server.changes b/xorg-x11-server.changes index aae0fc5..48ba265 100644 --- a/xorg-x11-server.changes +++ b/xorg-x11-server.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 10 20:26:44 UTC 2022 - Dirk Müller + +- fix bashisms in pre_checkins.sh (bsc#1195391) + ------------------------------------------------------------------- Mon Jan 3 21:03:34 UTC 2022 - Stefan Dirsch