]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fix debsrcbuilder.sh script, and add option in src_tarball script to allow for altern...
authorWilliam King <william.king@quentustech.com>
Fri, 20 Apr 2012 02:38:46 +0000 (19:38 -0700)
committerWilliam King <william.king@quentustech.com>
Fri, 20 Apr 2012 02:46:10 +0000 (19:46 -0700)
scripts/ci/debsrcbuilder.sh
scripts/ci/src_tarball.sh

index 625657888a8d5dd6526c727cf41a3b4cd0c0b292..ae5e685d747075bfa7aa10caa71790263a49b1fd 100755 (executable)
@@ -20,6 +20,7 @@ micro=$(echo "$ver" | cut -d. -f3)
 rev=$(echo "$ver" | cut -d. -f4)
 
 build="$2"
+distro=${3:="unstable"}
 
 dst_version="$major.$minor.$micro"
 dst_name="freeswitch-$dst_version"
@@ -37,7 +38,7 @@ mv src_dist/$dst_name.tar.bz2 $src_repo/debbuild/freeswitch_${dst_full_version}.
 # Build the debian source package first, from the source tar file.
 cd $src_repo/debbuild/$dst_full_name
 
-dch -v $dst_full_version-1 "Nightly Build"
+dch -v "${dst_full_version}-0" -M --force-distribution -D "$distro" "Nightly Build"
 
 dpkg-buildpackage -rfakeroot -S -us -uc
 
index c4d95ce5be86d3fced5ed4962b58ef43247e912c..1055c6c481808b1af406d8931dbfb26e9a804cb4 100755 (executable)
@@ -19,11 +19,13 @@ minor=$(echo "$ver" | cut -d. -f2)
 micro=$(echo "$ver" | cut -d. -f3)
 rev=$(echo "$ver" | cut -d. -f4)
 
+tmp_dir=${TMP_DIR:="/tmp"}
+
 build="$2"
 
 dst_name="freeswitch-$major.$minor.$micro"
-dst_parent="/tmp/jenkis.$$/"
-dst_dir="/tmp/jenkins.$$/$dst_name"
+dst_parent="${tmp_dir}/jenkis.$$/"
+dst_dir="${tmp_dir}/jenkins.$$/$dst_name"
 
 if [ -d "$dst_dir" ]; then
   echo "error: destination directory $dst_dir already exists." 1>&2