Mercurial > hg
comparison contrib/builddeb @ 28989:a8256e3701be stable
builddeb: use the os codename instead of 'unstable'
This fixes a lintian error (and indeed, launchpad rejects it) by using the
distribution's codename (e.g. xenial, trusty, etc).
author | Sean Farley <sean@farley.io> |
---|---|
date | Sat, 16 Apr 2016 12:42:53 -0700 |
parents | 4f1dac94b53f |
children | 62c245c59433 |
comparison
equal
deleted
inserted
replaced
28988:4f1dac94b53f | 28989:a8256e3701be |
---|---|
67 cp -r $PWD/contrib/debian debian | 67 cp -r $PWD/contrib/debian debian |
68 chmod -R 0755 debian | 68 chmod -R 0755 debian |
69 | 69 |
70 sed -i.tmp "s/__VERSION__/$debver/" $changelog | 70 sed -i.tmp "s/__VERSION__/$debver/" $changelog |
71 sed -i.tmp "s/__DATE__/$(date --rfc-2822)/" $changelog | 71 sed -i.tmp "s/__DATE__/$(date --rfc-2822)/" $changelog |
72 sed -i.tmp "s/__CODENAME__/$CODENAME/" $changelog | |
72 rm $changelog.tmp | 73 rm $changelog.tmp |
73 | 74 |
74 debuild -us -uc -b | 75 debuild -us -uc -b |
75 if [ $? != 0 ]; then | 76 if [ $? != 0 ]; then |
76 echo 'debuild failed!' | 77 echo 'debuild failed!' |