Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use debian format "3.0 (git)"
This does not work with Launchpad PPA, commiting to fix the code for further investigation.
  • Loading branch information
mikhailnov committed Dec 31, 2018
1 parent 44b4e22 commit 7b10307
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -33,6 +33,7 @@ debian/*
!debian/watch
!debian/patches
!debian/patches/*.patch
!debian/source

/build-ppa.sh

Expand Down
9 changes: 6 additions & 3 deletions debian/build-ppa.sh
Expand Up @@ -22,11 +22,14 @@ do
new_version="${old_version}~${i}1"
sed -i -re "s/${old_version}/${new_version}/g" ./debian/changelog
sed -i -re "1s/unstable/$i/" ./debian/changelog
#rm -fv ./debian/source/format
if grep -q '(git)' ./debian/source/format; then
GIT=1
git add .
fi
# -I to exclude .git; -d to allow building .changes file without build dependencies installed
dpkg-buildpackage -I -S -sa -d
dpkg-buildpackage -S -sa -d
sed -i -re "1s/.*/${old_header}/" ./debian/changelog
#echo "$old_format_source" >./debian/source/format
[ "$GIT" = 1 ] && git reset
cd ..

# change PPA names to yours, you may leave only one PPA; I upload hw-probe to 2 different PPAs at the same time
Expand Down
1 change: 1 addition & 0 deletions debian/source/format
@@ -0,0 +1 @@
3.0 (git)

0 comments on commit 7b10307

Please sign in to comment.