Add files to installer/data/mysql/nb-NO/2-Valgfritt/
[koha.git] / debian / build-git-snapshot
index bcf71d4..4768719 100755 (executable)
@@ -30,11 +30,12 @@ latest_sha1() {
 }
 
 newversion() {
-    printf '3.2~git%s.%s' $(date +%Y%m%d%H%M%S) $(latest_sha1)
+    printf '3.3-1~git%s.%s' $(date +%Y%m%d%H%M%S) $(latest_sha1)
 }
 
 adjust_debian_changelog() {
-    dch -v "$1" "Building git snapshot."
+    dch --force-distribution -D squeeze-dev -v "$1" \
+        "Building git snapshot."
     dch -r "Building git snapshot."
 }
 
@@ -45,7 +46,7 @@ reset_debian_changelog() {
 build_package() {
     git archive --format=tar --prefix="koha-$1/" HEAD | 
         gzip -9 > "../koha_$1.tar.gz"
-    debuild -us -uc
+    pdebuild $2
 }
 
 if ! everything_is_commited
@@ -54,6 +55,10 @@ then
 fi
 
 version="$(newversion)"
+if [ -n "$1" ]
+then
+    pdebuildopts="--buildresult $1"
+fi
 adjust_debian_changelog "$version"
-build_package "$version"
+build_package "$version" "$pdebuildopts"
 reset_debian_changelog