12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #!/bin/sh
- set -eu
- version="${1:-}"
- if [ -z "$version" ]; then
- echo "Specify a version number!"
- exit
- fi
- timestamp="${2:-$(date -u +%s)}"
- if test -f Makefile; then
- make distclean
- fi
- docker build \
- --no-cache \
- --build-arg SOURCE_DATE_EPOCH="$timestamp" \
- --build-arg UID="$(id -u)" \
- --build-arg GID="$(id -g)" \
- -t curl/curl .
- docker run --rm -u "$(id -u):$(id -g)" \
- -v "$(pwd):/usr/src" -w /usr/src curl/curl sh -c "
- set -e
- autoreconf -fi
- ./configure --without-ssl --without-libpsl
- make -sj8
- ./scripts/maketgz $version"
|