mirror of
https://github.com/chocolate-doom/debian.git
synced 2024-11-24 21:41:13 +00:00
Add script to set up a chroot environment for Debian build.
Subversion-branch: /debian Subversion-revision: 1471
This commit is contained in:
parent
18a9214bbf
commit
3006ff9819
1 changed files with 39 additions and 0 deletions
39
build-sarge
Executable file
39
build-sarge
Executable file
|
@ -0,0 +1,39 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Set up a chroot environment based on Debian Sarge, for building.
|
||||
#
|
||||
# By building based on binaries from a very old version, all recent
|
||||
# versions can be supported.
|
||||
|
||||
MIRROR=http://archive.debian.org/debian-archive/debian
|
||||
RELEASE=sarge
|
||||
|
||||
if [ $# = 0 ]; then
|
||||
echo "Usage: $0 <dest dir>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
dest_dir="$1"
|
||||
|
||||
add_pkg() {
|
||||
if [ ".$pkgs" = "" ]; then
|
||||
pkgs="$1"
|
||||
else
|
||||
pkgs="$pkgs,$1"
|
||||
fi
|
||||
}
|
||||
|
||||
pkgs=""
|
||||
|
||||
add_pkg gcc
|
||||
add_pkg make
|
||||
add_pkg automake1.8
|
||||
add_pkg autoconf
|
||||
add_pkg libsdl1.2-dev
|
||||
add_pkg libsdl-mixer1.2-dev
|
||||
add_pkg libsdl-net1.2-dev
|
||||
add_pkg python-imaging
|
||||
add_pkg subversion
|
||||
|
||||
debootstrap "--include=$pkgs" "$RELEASE" "$dest_dir" "$MIRROR"
|
||||
|
Loading…
Reference in a new issue