if echo $vers | grep -q unstable ; then
component="ceph-unstable"
else
- component="ceph-stable"
+ if echo $vers | grep -q rc ; then
+ component="ceph-rc"
+ else
+ component="ceph-stable"
+ fi
fi
fi
echo component $component
repo=$1
force=$2
-[ -z "$repo" ] && echo stable or testing or unstable && exit 1
+[ -z "$repo" ] && echo stable or testing or unstable or rc && exit 1
if git diff --quiet ; then
echo repository is clean
gitver=`git rev-parse HEAD 2>/dev/null | cut -c 1-8`
echo gitver $gitver
-if [ "$repo" = "testing" ]; then
- versuffix=`date "+%Y%m%d%H%M"`
- finalvers="${vers}-testing${versuffix}-$gitver"
+if [ "$repo" = "stable" ]; then
+ finalvers="$vers"
else
- if [ "$repo" = "unstable" ]; then
- versuffix=`date "+%Y%m%d%H%M"`
- finalvers="${vers}-unstable${versuffix}-$gitver"
- else
- finalvers="$vers"
- fi
+ versuffix=`date "+%Y%m%d%H%M"`
+ finalvers="${vers}-$repo${versuffix}-$gitver"
fi
echo final vers $finalvers