This is easy to confirm:
openxs@ao756:~/git/percona-xtrabackup$ cd /tmp openxs@ao756:/tmp$ mkdir xb openxs@ao756:/tmp$ cd xb openxs@ao756:/tmp/xb$ ~/git/percona-xtrabackup/storage/innobase/xtrabackup/utils/build-rpm.sh + set -ue + TARGET= + TARGET_CFLAGS= + TARGET_ARG= + SIGN=--sign + TEST=no + DUMMY= + getopt --test +++ basename /home/openxs/git/percona-xtrabackup/storage/innobase/xtrabackup/utils/build-rpm.sh ++ getopt --options=iKtn --longoptions=i686,nosign,test,dummy --name=build-rpm.sh -- + go_out=' --' + test 0 -eq 0 + eval set -- -- ++ set -- -- + for arg in '"$@"' + case "$arg" in + shift + break + test 0 -eq 0 ++ pwd + WORKDIR=/tmp/xb ++ echo '*' + test 'x*' '!=' 'x*' ++ cd /tmp/xb ++ pwd + WORKDIR_ABS=/tmp/xb +++ dirname /home/openxs/git/percona-xtrabackup/storage/innobase/xtrabackup/utils/build-rpm.sh ++ readlink -f /home/openxs/git/percona-xtrabackup/storage/innobase/xtrabackup/utils/../../../.. + SOURCEDIR=/home/openxs/git/percona-xtrabackup + test -e /home/openxs/git/percona-xtrabackup/XB_VERSION + . /home/openxs/git/percona-xtrabackup/XB_VERSION ++ XB_VERSION_MAJOR=2 ++ XB_VERSION_MINOR=2 ++ XB_VERSION_PATCH=11 ++ XB_VERSION_EXTRA= + XTRABACKUP_VERSION=2.2.11 ++ grep -o 'release [0-9][0-9]*' /etc/redhat-release ++ cut -d ' ' -f 2 grep: /etc/redhat-release: No such file or directory + REDHAT_RELEASE= + '[' -z '' ']' ++ cd /home/openxs/git/percona-xtrabackup ++ bzr revno ++ cat REVNO cat: REVNO: No such file or directory + REVISION=
This is easy to confirm:
openxs@ ao756:~ /git/percona- xtrabackup$ cd /tmp ao756:/ tmp/xb$ ~/git/percona- xtrabackup/ storage/ innobase/ xtrabackup/ utils/build- rpm.sh git/percona- xtrabackup/ storage/ innobase/ xtrabackup/ utils/build- rpm.sh i686,nosign, test,dummy --name=build-rpm.sh -- git/percona- xtrabackup/ storage/ innobase/ xtrabackup/ utils/build- rpm.sh git/percona- xtrabackup/ storage/ innobase/ xtrabackup/ utils/. ./../.. /.. /home/openxs/ git/percona- xtrabackup git/percona- xtrabackup/ XB_VERSION git/percona- xtrabackup/ XB_VERSION VERSION= 2.2.11 release: No such file or directory git/percona- xtrabackup
openxs@ao756:/tmp$ mkdir xb
openxs@ao756:/tmp$ cd xb
openxs@
+ set -ue
+ TARGET=
+ TARGET_CFLAGS=
+ TARGET_ARG=
+ SIGN=--sign
+ TEST=no
+ DUMMY=
+ getopt --test
+++ basename /home/openxs/
++ getopt --options=iKtn --longoptions=
+ go_out=' --'
+ test 0 -eq 0
+ eval set -- --
++ set -- --
+ for arg in '"$@"'
+ case "$arg" in
+ shift
+ break
+ test 0 -eq 0
++ pwd
+ WORKDIR=/tmp/xb
++ echo '*'
+ test 'x*' '!=' 'x*'
++ cd /tmp/xb
++ pwd
+ WORKDIR_ABS=/tmp/xb
+++ dirname /home/openxs/
++ readlink -f /home/openxs/
+ SOURCEDIR=
+ test -e /home/openxs/
+ . /home/openxs/
++ XB_VERSION_MAJOR=2
++ XB_VERSION_MINOR=2
++ XB_VERSION_PATCH=11
++ XB_VERSION_EXTRA=
+ XTRABACKUP_
++ grep -o 'release [0-9][0-9]*' /etc/redhat-release
++ cut -d ' ' -f 2
grep: /etc/redhat-
+ REDHAT_RELEASE=
+ '[' -z '' ']'
++ cd /home/openxs/
++ bzr revno
++ cat REVNO
cat: REVNO: No such file or directory
+ REVISION=