Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHG64b086f0ebb5: packaging: move builddeb into contrib/packaging/
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
( )
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | Makefile (4 lines) | |||
V | contrib/{ → packaging}/builddeb | |||
V | contrib/{packaging ← }/builddeb (2 lines) | |||
M | contrib/packaging/dockerdeb (4 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
Gregory Szorc | May 12 2018, 1:31 PM |
build/mercurial.pkg && \ | build/mercurial.pkg && \ | ||||
productbuild --distribution contrib/macosx/distribution.xml \ | productbuild --distribution contrib/macosx/distribution.xml \ | ||||
--package-path build/ \ | --package-path build/ \ | ||||
--version "$${HGVER}" \ | --version "$${HGVER}" \ | ||||
--resources contrib/macosx/ \ | --resources contrib/macosx/ \ | ||||
"$${OUTPUTDIR:-dist/}"/Mercurial-"$${HGVER}"-macosx"$${OSXVER}".pkg | "$${OUTPUTDIR:-dist/}"/Mercurial-"$${HGVER}"-macosx"$${OSXVER}".pkg | ||||
deb: | deb: | ||||
contrib/builddeb | contrib/packaging/builddeb | ||||
ppa: | ppa: | ||||
contrib/builddeb --source-only | contrib/packaging/builddeb --source-only | ||||
contrib/packaging/docker/debian-%: contrib/packaging/docker/debian.template | contrib/packaging/docker/debian-%: contrib/packaging/docker/debian.template | ||||
sed "s/__CODENAME__/$*/" $< > $@ | sed "s/__CODENAME__/$*/" $< > $@ | ||||
docker-debian-jessie: contrib/packaging/docker/debian-jessie | docker-debian-jessie: contrib/packaging/docker/debian-jessie | ||||
contrib/packaging/dockerdeb debian jessie | contrib/packaging/dockerdeb debian jessie | ||||
docker-debian-stretch: contrib/packaging/docker/debian-stretch | docker-debian-stretch: contrib/packaging/docker/debian-stretch |
#!/bin/sh -e | #!/bin/sh -e | ||||
# | # | ||||
# Build a Mercurial debian package from the current repo | # Build a Mercurial debian package from the current repo | ||||
# | # | ||||
# Tested on Jessie (stable as of original script authoring.) | # Tested on Jessie (stable as of original script authoring.) | ||||
. $(dirname $0)/packaging/packagelib.sh | . $(dirname $0)/packagelib.sh | ||||
BUILD=1 | BUILD=1 | ||||
CLEANUP=1 | CLEANUP=1 | ||||
DISTID=`(lsb_release -is 2> /dev/null | tr '[:upper:]' '[:lower:]') || echo debian` | DISTID=`(lsb_release -is 2> /dev/null | tr '[:upper:]' '[:lower:]') || echo debian` | ||||
CODENAME=`lsb_release -cs 2> /dev/null || echo unknown` | CODENAME=`lsb_release -cs 2> /dev/null || echo unknown` | ||||
DEBFLAGS=-b | DEBFLAGS=-b | ||||
while [ "$1" ]; do | while [ "$1" ]; do | ||||
case "$1" in | case "$1" in |
# container and hope it's writable. Whee. | # container and hope it's writable. Whee. | ||||
dn=$(basename $PWD) | dn=$(basename $PWD) | ||||
if [ $(uname) = "Darwin" ] ; then | if [ $(uname) = "Darwin" ] ; then | ||||
$DOCKER run -u $DBUILDUSER --rm -v $PWD/..:/mnt $CONTAINER \ | $DOCKER run -u $DBUILDUSER --rm -v $PWD/..:/mnt $CONTAINER \ | ||||
sh -c "cd /mnt/$dn && make clean && make local" | sh -c "cd /mnt/$dn && make clean && make local" | ||||
fi | fi | ||||
$DOCKER run -u $DBUILDUSER --rm -v $PWD/..:/mnt $CONTAINER \ | $DOCKER run -u $DBUILDUSER --rm -v $PWD/..:/mnt $CONTAINER \ | ||||
sh -c "cd /mnt/$dn && DEB_BUILD_OPTIONS='${DEB_BUILD_OPTIONS:=}' contrib/builddeb --build --distid $DISTID --codename $CODENAME $@" | sh -c "cd /mnt/$dn && DEB_BUILD_OPTIONS='${DEB_BUILD_OPTIONS:=}' contrib/packaging/builddeb --build --distid $DISTID --codename $CODENAME $@" | ||||
contrib/builddeb --cleanup --distid $DISTID --codename $CODENAME | contrib/packaging/builddeb --cleanup --distid $DISTID --codename $CODENAME | ||||
if [ $(uname) = "Darwin" ] ; then | if [ $(uname) = "Darwin" ] ; then | ||||
$DOCKER run -u $DBUILDUSER --rm -v $PWD/..:/mnt $CONTAINER \ | $DOCKER run -u $DBUILDUSER --rm -v $PWD/..:/mnt $CONTAINER \ | ||||
sh -c "cd /mnt/$dn && make clean" | sh -c "cd /mnt/$dn && make clean" | ||||
fi | fi |