mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-20 07:51:14 -03:00
Note that we don't need to set the mtime anymore -- it was added in
5b5b53872c (tarball generation: include config.h.in, set mode and
ownership, 2013-09-09) for autotools' multi-stage builds.
24 lines
510 B
Bash
Executable File
24 lines
510 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Script to generate a tarball
|
|
# Outputs to $FISH_ARTEFACT_PATH or ~/fish_built by default
|
|
|
|
# Exit on error
|
|
set -e
|
|
|
|
# Get the version
|
|
VERSION=$(build_tools/git_version_gen.sh --stdout 2>/dev/null)
|
|
|
|
prefix=fish-$VERSION
|
|
path=${FISH_ARTEFACT_PATH:-~/fish_built}/$prefix.tar.xz
|
|
|
|
git archive \
|
|
--prefix="$prefix/" \
|
|
--add-virtual-file="$prefix/version:$VERSION" \
|
|
HEAD |
|
|
xz >"$path"
|
|
|
|
# Output what we did, and the sha256 hash
|
|
echo "Tarball written to $path"
|
|
openssl dgst -sha256 "$path"
|