mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-27 20:25:12 +00:00
make_tarball: minor cleanup
This commit is contained in:
parent
0d5ef3f43e
commit
23de5908cf
1 changed files with 5 additions and 6 deletions
|
@ -8,20 +8,19 @@
|
||||||
# Exit on error
|
# Exit on error
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# We wil generate a tarball with a prefix "fish"
|
# We wil generate a tarball with a prefix "fish-VERSION"
|
||||||
# git can do that automatically for us via git-archive
|
# git can do that automatically for us via git-archive
|
||||||
# but to get the documentation in, we need to make a symlink called "fish"
|
# but to get the documentation in, we need to make a symlink called "fish-VERSION"
|
||||||
# and tar from that, so that the documentation gets the right prefix
|
# and tar from that, so that the documentation gets the right prefix
|
||||||
|
|
||||||
# Get the current directory, which we'll use for symlinks
|
# Get the current directory, which we'll use for symlinks
|
||||||
wd="$PWD"
|
wd="$PWD"
|
||||||
|
|
||||||
# The name of the prefix, which is the directory that you get when you untar
|
|
||||||
prefix="fish"
|
|
||||||
|
|
||||||
# Get the version from git-describe
|
# Get the version from git-describe
|
||||||
VERSION=`git describe --dirty 2>/dev/null`
|
VERSION=`git describe --dirty 2>/dev/null`
|
||||||
prefix="$prefix-$VERSION"
|
|
||||||
|
# The name of the prefix, which is the directory that you get when you untar
|
||||||
|
prefix="fish-$VERSION"
|
||||||
|
|
||||||
# The path where we will output the tar file
|
# The path where we will output the tar file
|
||||||
path=~/fish_built/$prefix.tar
|
path=~/fish_built/$prefix.tar
|
||||||
|
|
Loading…
Reference in a new issue