ci: style

This commit is contained in:
Travis Cross
2012-05-06 01:52:50 +00:00
parent 52dbfabd0b
commit 000e78df0f
2 changed files with 20 additions and 19 deletions

View File

@@ -24,22 +24,23 @@ input_distro=$3
distro=${input_distro:="unstable"}
dst_version="$major.$minor.$micro"
dst_name="freeswitch-$dst_version"
dst_name="freeswitch-${dst_version}"
dst_parent="/tmp/"
dst_dir="/tmp/$dst_name"
dst_full_version="$dst_version.$build"
dst_full_name="freeswitch-$dst_full_version"
dst_dir="/tmp/${dst_name}"
dst_full_version="${dst_version}.${build}"
dst_full_name="freeswitch-${dst_full_version}"
mkdir -p $src_repo/debbuild/
tar xjf src_dist/$dst_name.tar.bz2 -C $src_repo/debbuild/
mv $src_repo/debbuild/$dst_name $src_repo/debbuild/$dst_full_name
mv src_dist/$dst_name.tar.bz2 $src_repo/debbuild/freeswitch_${dst_full_version}.orig.tar.bz2
tar xjf src_dist/${dst_name}.tar.bz2 -C ${src_repo}/debbuild/
mv ${src_repo}/debbuild/${dst_name} ${src_repo}/debbuild/${dst_full_name}
mv src_dist/${dst_name}.tar.bz2 \
${src_repo}/debbuild/freeswitch_${dst_full_version}.orig.tar.bz2
# Build the debian source package first, from the source tar file.
echo "changing directory to $src_repo/debbuild/$dst_full_name"
echo "changing directory to ${src_repo}/debbuild/${dst_full_name}"
cd $src_repo/debbuild/$dst_full_name
cd ${src_repo}/debbuild/${dst_full_name}
dch -v "${dst_full_version}-1" -M --force-distribution -D "$distro" "Nightly Build"
@@ -52,8 +53,8 @@ if [ $status -gt 0 ]; then
else
cat 1>&2 <<EOF
----------------------------------------------------------------------
The v$ver-$build DEB-SRCs have been rolled, now we
just need to push them to the YUM Repo
The ${dst_full_name} DEB-SRCs have been rolled, now we
just need to push them to the Debian repo
----------------------------------------------------------------------
EOF
fi