]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - pkgs/build-essentials/buildsystem-tools/chroot-shell
avahi: Update to 0.6.30.
[people/amarx/ipfire-3.x.git] / pkgs / build-essentials / buildsystem-tools / chroot-shell
CommitLineData
235217d2
MT
1#!/bin/bash
2
3cat <<EOF
4
5 You are now dropped to a chrooted shell of the package's environment.
6
7 The sources have been extracted to /build and maybe there are files left
8 from a last (broken) build. Nothing of that content will be saved after
9 you left the shell.
10
11 You can leave the environment by typing "exit" or Ctrl-D.
12
13EOF
14
15# Setting nice environment
16export PS1="pakfire-chroot \w> "
17
18# Change to directory the user will most likely work in
19if [ -z "${SOURCE_DIR}" ]; then
20 SOURCE_DIR="/build"
21fi
22cd "${SOURCE_DIR}"
23
24exec /bin/bash --login