kumquat-buildroot/support/download/cvs
Bjørn Forsman acc76a6ef9 Change /bin/bash shebangs into /usr/bin/env bash
Not all systems have /bin/bash (e.g. NixOS[1] doesn't). Buildroot
already uses /usr/bin/env shebangs for other interpreters (perl,
python), so why not bash?

This changes only the shebangs used by Buildroot itself; stuff installed
to the target system is left unchanged.

With this applied I can run Buildroot unmodified on NixOS.

[1]: http://nixos.org/

Signed-off-by: Bjørn Forsman <bjorn.forsman@gmail.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-10-25 01:55:37 +02:00

26 lines
596 B
Bash
Executable File

#!/usr/bin/env bash
# We want to catch any unexpected failure, and exit immediately
set -e
# Download helper for cvs, to be called from the download wrapper script
# Expected arguments:
# $1: output file
# $2: cvs repo
# $3: cvs revision
# $4: package's name (eg. foobar)
# $5: package's basename (eg. foobar-1.2.3)
# And this environment:
# CVS : the cvs command to call
output="${1}"
repo="${2}"
rev="${3}"
rawname="${4}"
basename="${5}"
${CVS} -z3 -d":pserver:anonymous@${repo}" \
co -d "${basename}" -r ":${rev}" -P "${rawname}"
tar czf "${output}" "${basename}"