12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- #!/bin/sh
- set -eu
- timestamp=${1:-unknown}
- version=${2:-unknown}
- tag=$(echo "curl-$version" | tr '.' '_')
- commit=${3}
- if [ -n "$commit" ] && [ -r "docs/tarball-commit.txt.dist" ]; then
-
- tag="$(cat docs/tarball-commit.txt.dist)"
- fi
- cat <<MOO
- The following tools and their Debian package version numbers were used to
- produce this release tarball.
- MOO
- if ! command -v dpkg >/dev/null; then
- echo "Error: could not find dpkg" >&2
- exit 1
- fi
- debian() {
- echo "- $1: $(dpkg -l "$1" | grep ^ii | awk '{print $3}')"
- }
- debian autoconf
- debian automake
- debian libtool
- debian make
- debian perl
- debian git
- cat <<MOO
- - Clone the repo and checkout the tag/commit: $tag
- - Install the same set of tools + versions as listed above
- - autoreconf -fi
- - ./configure [...]
- - make
- - export SOURCE_DATE_EPOCH=$timestamp
- - ./scripts/maketgz [version]
- MOO
|