Improved repo creation step
This commit is contained in:
parent
227c965388
commit
a9c4668fda
1 changed files with 10 additions and 7 deletions
17
makepackage
17
makepackage
|
|
@ -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(){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue