Skip to content
Snippets Groups Projects
Commit a9c4668f authored by Ruben Rodriguez's avatar Ruben Rodriguez
Browse files

Improved repo creation step

parent 227c9653
No related branches found
No related tags found
No related merge requests found
...@@ -46,31 +46,34 @@ REPOSITORY=$PWD/repos/$CODENAME ...@@ -46,31 +46,34 @@ REPOSITORY=$PWD/repos/$CODENAME
HELPERS=$PWD/helpers HELPERS=$PWD/helpers
if ! [ -d repos/ ] if ! [ -d repos/ ]
then then
mkdir -p repos/$CODENAME/conf repos/$CODENAME/incoming for i in $(git branch|sed 's/.* //;/master/d')
cat << EOF > repos/$CODENAME/conf/distributions do
mkdir -p repos/$REPO/conf repos/$REPO/incoming
cat << EOF > repos/$REPO/conf/distributions
Origin: Trisquel Origin: Trisquel
Label: Trisquel Label: Trisquel
Suite: $CODENAME Suite: $REPO
Version: 42 Version: 42
Codename: $CODENAME Codename: $REPO
Architectures: i386 amd64 source Architectures: i386 amd64 source
Components: main Components: main
UDebComponents: main UDebComponents: main
DebIndices: Packages Release . .gz .bz2 DebIndices: Packages Release . .gz .bz2
UDebIndices: Packages . .gz .bz2 UDebIndices: Packages . .gz .bz2
DscIndices: Sources Release .gz .bz2 DscIndices: Sources Release .gz .bz2
Log: $CODENAME.log Log: $REPO.log
Description: Trisquel GNU/Linux packages for the $UPSTREAM based release Description: Trisquel GNU/Linux packages for the $UPSTREAM based release
EOF EOF
if gpg -K | grep -q $GPGKEY if gpg -K | grep -q $GPGKEY
then then
echo "SignWith: $GPGKEY" >> repos/$CODENAME/conf/distributions echo "SignWith: $GPGKEY" >> repos/$REPO/conf/distributions
fi fi
cd repos/$CODENAME cd repos/$REPO
reprepro -v export reprepro -v export
cd ../.. cd ../..
done
fi fi
disablescripts(){ disablescripts(){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment