3
0
mirror of https://git.launchpad.net/ubuntu-dev-tools synced 2025-04-22 07:41:08 +00:00

Add pbuilder-dist-simple.

This commit is contained in:
Siegfried-Angel Gevatter Pujals 2008-02-25 21:11:24 +01:00
parent 632f7bb274
commit 670db8f99d
5 changed files with 96 additions and 5 deletions

3
debian/changelog vendored

@ -1,6 +1,7 @@
ubuntu-dev-tools (0.28) UNRELEASED; urgency=low
*
* pbuilder-dist-simple, doc/pbuilder-dist-simple.1, setup.py:
- Add the original pbuilder-dist script as pbuilder-dist-simple.
-- Siegfried-Angel Gevatter Pujals (RainCT) <rainct@ubuntu.com> Sun, 24 Feb 2008 19:52:06 +0100

@ -0,0 +1,49 @@
.TH PBUILDER\-DIST 1 "February 25, 2008" "ubuntu-dev-tools"
.SH NAME
pbuilder\-dist\-simple \- simple multi-distribution pbuilder wrapper
.SH SYNOPSIS
\fBpbuilder\-\fI<dist>\fR\fP \fIoperation\fR [\fI...\fR]
.SH DESCRIPTION
\fBpbuilder\-dist\fP is a wrapper that makes it easy to use pbuilder with
chroots for many different Ubuntu/Debian distributions. If you need more
features than \fBpbuilder\-dist\-simple\fP provides, have a look at
\fBpbuilder\-dist\fP.
.SH USAGE
Create one symlink to \fBpbuilder\-dist\-simple\fP for each distribution
for which you want a build environment, naming them like "pbuilder-hardy",
"pbuilder-gutsy", etc.
.PP
Replace \fIoperation\fP with the action you want \fBpbuilder\-dist\-simple\fP
to do (create, update, build, clean, login or execute).
.SH EXAMPLES
.TP
pbuilder\-gutsy create
Creates a \fBpbuilder\fP environment for Ubuntu Gutsy.
.TP
pbuilder\-sid update
Updates an existing Debian Sid environment.
.TP
pbuilder\-hardy build ./sample_1.0\-0ubuntu1.dsc
Builds the specified package on an already existing Ubuntu Hardy environment.
.SH FILES
By default, \fBpbuilder\-dist\-simple\fP will store all the files it
generates in \fB~/pbuilder/\fP. This can be changed by modifying the
BASE_DIR value on the top of the script to any other directory you want.
If the directory doesn't exit, it will be created at runtime.
.SH SEE ALSO
\fBpbuilder\fR, \fBpbuilderrc\fR
.SH AUTHORS
\fBpbuilder\-dist\fP was originally written by Jamin W. Collins
<jcollins@asgardsrealm.net> and Jordan Mantha <mantha@ubuntu.com>, and
this manpage by Siegfried-A. Gevatter <rainct@ubuntu.com>.
.PP
Both are released under the GNU General Public License, version 2 or
later.

@ -1,7 +1,3 @@
.\" Title: pbuilder-dist
.\" Author: Siegfried-Angel Gevatter Pujals
.\" Contact details: rainct@ubuntu.com
.TH PBUILDER\-DIST 1 "August 16, 2007" "ubuntu-dev-tools"
.SH NAME

44
pbuilder-dist-simple Executable file

@ -0,0 +1,44 @@
#!/bin/sh
#
# Copyright (C) Jamin W. Collins <jcollins@asgardsrealm.net>
# Copyright (C) Jordan Mantha <mantha@ubuntu.com>
#
# License: GPLv2 or later
#
# This script is a wrapper to be able to easily use pbuilder for
# different distributions (eg, Gutsy, Hardy, Debian unstable, etc).
#
# Create symlinks to this script naming them 'pbuilder-feisty', 'pbuilder-
# gutsy', 'pbuilder-hardy', etc. If you want additional features try
# out the more advanced script 'pbuilder-dist'.
OPERATION=$1
DISTRIBUTION=`basename $0 | cut -f2 -d '-'`
PROCEED=false
BASE_DIR="$HOME/pbuilder"
case $OPERATION in
create|update|build|clean|login|execute )
PROCEED=true
;;
esac
if [ $PROCEED = true ]; then
shift
if [ ! -d $BASE_DIR/${DISTRIBUTION}_result ]
then mkdir -p $BASE_DIR/${DISTRIBUTION}_result/
fi
sudo pbuilder $OPERATION \
--basetgz $BASE_DIR/$DISTRIBUTION-base.tgz \
--distribution $DISTRIBUTION \
--buildresult $BASE_DIR/$DISTRIBUTION_result \
--othermirror "deb http://archive.ubuntu.com/ubuntu $DISTRIBUTION universe multiverse" $@
else
echo "Invalid command..."
echo "Valid commands are:"
echo " create"
echo " update"
echo " build"
echo " clean"
echo " login"
echo " execute"
exit 1
fi

@ -19,6 +19,7 @@ setup(name='ubuntu-dev-tools',
'check-symbols',
'get-branches',
'pbuilder-dist',
'pbuilder-dist-simple',
'update-maintainer',
'dch-repeat',
'mk-sbuild-lv',