Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHGe51c91c14a07: packaging: move contrib/debian to contrib/packaging/
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
( )
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
Gregory Szorc | May 12 2018, 1:44 PM |
changelog=debian/changelog | changelog=debian/changelog | ||||
if [ "$BUILD" ]; then | if [ "$BUILD" ]; then | ||||
if [ -d debian ] ; then | if [ -d debian ] ; then | ||||
echo "Error! debian control directory already exists!" | echo "Error! debian control directory already exists!" | ||||
exit 1 | exit 1 | ||||
fi | fi | ||||
cp -r "$PWD"/contrib/debian debian | cp -r "$PWD"/contrib/packaging/debian debian | ||||
sed -i.tmp "s/__VERSION__/$debver/" $changelog | sed -i.tmp "s/__VERSION__/$debver/" $changelog | ||||
sed -i.tmp "s/__DATE__/$(date --rfc-2822)/" $changelog | sed -i.tmp "s/__DATE__/$(date --rfc-2822)/" $changelog | ||||
sed -i.tmp "s/__CODENAME__/$CODENAME/" $changelog | sed -i.tmp "s/__CODENAME__/$CODENAME/" $changelog | ||||
rm $changelog.tmp | rm $changelog.tmp | ||||
# remove the node from the version string | # remove the node from the version string | ||||
SRCFILE="mercurial_$(echo $debver | sed "s,-$node,,").orig.tar.gz" | SRCFILE="mercurial_$(echo $debver | sed "s,-$node,,").orig.tar.gz" |
debuild = matchoutput('debuild --help', | debuild = matchoutput('debuild --help', | ||||
br'to run debian/rules with given parameter') | br'to run debian/rules with given parameter') | ||||
return dpkg and dh and dh_py2 and debuild | return dpkg and dh and dh_py2 and debuild | ||||
@check("debdeps", | @check("debdeps", | ||||
"debian build dependencies (run dpkg-checkbuilddeps in contrib/)") | "debian build dependencies (run dpkg-checkbuilddeps in contrib/)") | ||||
def has_debdeps(): | def has_debdeps(): | ||||
# just check exit status (ignoring output) | # just check exit status (ignoring output) | ||||
path = '%s/../contrib/debian/control' % os.environ['TESTDIR'] | path = '%s/../contrib/packaging/debian/control' % os.environ['TESTDIR'] | ||||
return matchoutput('dpkg-checkbuilddeps %s' % path, br'') | return matchoutput('dpkg-checkbuilddeps %s' % path, br'') | ||||
@check("demandimport", "demandimport enabled") | @check("demandimport", "demandimport enabled") | ||||
def has_demandimport(): | def has_demandimport(): | ||||
# chg disables demandimport intentionally for performance wins. | # chg disables demandimport intentionally for performance wins. | ||||
return ((not has_chg()) and os.environ.get('HGDEMANDIMPORT') != 'disable') | return ((not has_chg()) and os.environ.get('HGDEMANDIMPORT') != 'disable') | ||||
@check("py3k", "running with Python 3.x") | @check("py3k", "running with Python 3.x") |