From a9c4668fdab6d60da452e309d231ff907c1258a3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rub=C3=A9n=20Rodr=C3=ADguez?= <ruben@trisquel.info>
Date: Sat, 15 Sep 2012 13:51:44 +0200
Subject: [PATCH] Improved repo creation step

---
 makepackage | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/makepackage b/makepackage
index 1e0df863..8e7ce76a 100644
--- a/makepackage
+++ b/makepackage
@@ -46,31 +46,34 @@ REPOSITORY=$PWD/repos/$CODENAME
 HELPERS=$PWD/helpers
 if ! [ -d repos/ ]
 then
-mkdir -p repos/$CODENAME/conf repos/$CODENAME/incoming
-cat << EOF > repos/$CODENAME/conf/distributions
+for i in $(git branch|sed 's/.* //;/master/d')
+do
+mkdir -p repos/$REPO/conf repos/$REPO/incoming
+cat << EOF > repos/$REPO/conf/distributions
 Origin: Trisquel
 Label: Trisquel
-Suite: $CODENAME
+Suite: $REPO
 Version: 42
-Codename: $CODENAME
+Codename: $REPO
 Architectures: i386 amd64 source
 Components: main
 UDebComponents: main
 DebIndices: Packages Release . .gz .bz2
 UDebIndices: Packages . .gz .bz2
 DscIndices: Sources Release .gz .bz2
-Log: $CODENAME.log
+Log: $REPO.log
 Description: Trisquel GNU/Linux packages for the $UPSTREAM based release
 EOF
 
 if gpg -K | grep -q $GPGKEY
 then
-    echo "SignWith: $GPGKEY" >> repos/$CODENAME/conf/distributions
+    echo "SignWith: $GPGKEY" >> repos/$REPO/conf/distributions
 fi
 
-cd repos/$CODENAME
+cd repos/$REPO
 reprepro -v export
 cd ../..
+done
 fi
 
 disablescripts(){
-- 
GitLab