#!/bin/sh set -e setglobal VERSION = ''@VERSION@'' unset TMP TEMP TMPDIR || true # might not be exported if we're running from init=/bin/sh or similar export PATH ########################################################################### if test -z $DEBOOTSTRAP_DIR { if test -x /debootstrap/debootstrap { setglobal DEBOOTSTRAP_DIR = '/debootstrap' } else { setglobal DEBOOTSTRAP_DIR = '/usr/share/debootstrap' } } source $DEBOOTSTRAP_DIR/functions exec 4>&1 setglobal LANG = 'C' setglobal USE_COMPONENTS = 'main' setglobal KEYRING = ''"" setglobal DISABLE_KEYRING = ''"" setglobal FORCE_KEYRING = ''"" setglobal VARIANT = ''"" setglobal MERGED_USR = '"no'" setglobal ARCH = ''"" setglobal HOST_ARCH = ''"" setglobal HOST_OS = ''"" setglobal KEEP_DEBOOTSTRAP_DIR = ''"" setglobal USE_DEBIANINSTALLER_INTERACTION = ''"" setglobal SECOND_STAGE_ONLY = ''"" setglobal PRINT_DEBS = ''"" setglobal CHROOTDIR = ''"" setglobal MAKE_TARBALL = ''"" setglobal EXTRACTOR_OVERRIDE = ''"" setglobal UNPACK_TARBALL = ''"" setglobal ADDITIONAL = ''"" setglobal EXCLUDE = ''"" setglobal VERBOSE = ''"" setglobal CERTIFICATE = ''"" setglobal CHECKCERTIF = ''"" setglobal PRIVATEKEY = ''"" setglobal DEF_MIRROR = '"http://deb.debian.org/debian'" setglobal DEF_HTTPS_MIRROR = '"https://deb.debian.org/debian'" export LANG USE_COMPONENTS umask 022 ########################################################################### ## phases: ## finddebs dldebs printdebs first_stage second_stage setglobal RESOLVE_DEPS = 'true' setglobal WHAT_TO_DO = '"finddebs dldebs first_stage second_stage'" proc am_doing_phase { # usage: if am_doing_phase finddebs; then ...; fi local x; for x in [@ARGV] { if echo " $WHAT_TO_DO " | grep -q " $x " { return 0; } } return 1 } ########################################################################### proc usage_err { info USAGE1 "usage: [OPTION]... [ [