# Tag tree and update version number in change log and
# in setup.py before building.
- get_rpm_dist() {
- LSB_RELEASE=/usr/bin/lsb_release
- [ ! -x $LSB_RELEASE ] && echo unknown && exit
-
- ID=`$LSB_RELEASE --short --id`
-
- case $ID in
- RedHatEnterpriseServer)
- DISTRO_VERSION=`$LSB_RELEASE --short --release | cut -d. -f1`
- DISTRO=rhel
- ;;
- CentOS)
- DISTRO_VERSION=`$LSB_RELEASE --short --release | cut -d. -f1`
- DISTRO=centos
- ;;
- Fedora)
- DISTRO_VERSION=`$LSB_RELEASE --short --release`
- DISTRO=fedora
- ;;
- SUSE\ LINUX)
- DESC=`$LSB_RELEASE --short --description`
- DISTRO_VERSION=`$LSB_RELEASE --short --release`
- case $DESC in
- *openSUSE*)
- DISTRO=opensuse
- ;;
- *Enterprise*)
- DISTRO=sles
- ;;
- esac
- ;;
- *)
- DIST=unknown
- DISTRO=unknown
- ;;
- esac
-
- }
-
+ # this exists in scripts/build_utils.sh
get_rpm_dist
REPO=rpm-repo