]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
get_rpm_dist: return dist string used in rpm names instead of codename.
authorGary Lowell <glowell@inktank.com>
Mon, 24 Sep 2012 23:14:13 +0000 (16:14 -0700)
committerGary Lowell <glowell@inktank.com>
Mon, 24 Sep 2012 23:14:13 +0000 (16:14 -0700)
get_rpm_code_name.sh [deleted file]
get_rpm_dist.sh [new file with mode: 0755]

diff --git a/get_rpm_code_name.sh b/get_rpm_code_name.sh
deleted file mode 100755 (executable)
index 527ecd2..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-#! /bin/sh -x
-
-LSB_RELEASE=/usr/bin/lsb_release
-[ ! -x $LSB_RELEASE ] && echo unknown && exit
-
-ID=`$LSB_RELEASE --short --id`
-
-case $ID in
-CentOS)
-       RELEASE=`$LSB_RELEASE --short --release | cut -d. -f1`
-       DIST=$ID$RELEASE
-       ;;
-Fedora)
-       RELEASE=`$LSB_RELEASE --short --release`
-       DIST=$ID$RELEASE
-       ;;
-*)
-       DIST=unknown
-       ;;
-esac
-
-echo $DIST
diff --git a/get_rpm_dist.sh b/get_rpm_dist.sh
new file mode 100755 (executable)
index 0000000..527ecd2
--- /dev/null
@@ -0,0 +1,22 @@
+#! /bin/sh -x
+
+LSB_RELEASE=/usr/bin/lsb_release
+[ ! -x $LSB_RELEASE ] && echo unknown && exit
+
+ID=`$LSB_RELEASE --short --id`
+
+case $ID in
+CentOS)
+       RELEASE=`$LSB_RELEASE --short --release | cut -d. -f1`
+       DIST=$ID$RELEASE
+       ;;
+Fedora)
+       RELEASE=`$LSB_RELEASE --short --release`
+       DIST=$ID$RELEASE
+       ;;
+*)
+       DIST=unknown
+       ;;
+esac
+
+echo $DIST