Update distribute script to include source files for symlinks.
This commit is contained in:
parent
c0fea076b9
commit
82c96ddfe3
@ -4,14 +4,14 @@ set -e
|
|||||||
cd "${BASH_SOURCE%/*}"
|
cd "${BASH_SOURCE%/*}"
|
||||||
tag=$(git describe)
|
tag=$(git describe)
|
||||||
commit=$(git describe --long --dirty)
|
commit=$(git describe --long --dirty)
|
||||||
[[ $tag && $commit = $tag-* ]] || exit 1
|
[[ $tag && $commit = $tag* ]] || exit 1
|
||||||
git show --show-signature --pretty=format:%H --quiet "$tag" > VERSION
|
git show --show-signature --pretty=format:%H --quiet "$tag" > VERSION
|
||||||
|
|
||||||
mpwArchive=mpw-$commit.tar.gz
|
mpwArchive=mpw-$commit.tar.gz
|
||||||
[[ -e $mpwArchive ]] && echo "WARNING: $mpwArchive already exists. Will overwrite."
|
[[ -e $mpwArchive ]] && echo "WARNING: $mpwArchive already exists. Will overwrite."
|
||||||
read -n1 -p "Will prepare and release $mpwArchive. Press a key to continue or ^C to abort."
|
read -n1 -p "Will prepare and release $mpwArchive. Press a key to continue or ^C to abort."
|
||||||
|
|
||||||
git ls-files -z . | xargs -0 tar -cvzf "$mpwArchive"
|
git ls-files -z . | xargs -0 tar -Lcvzf "$mpwArchive"
|
||||||
echo "$mpwArchive ready, SHA256: $(openssl sha -sha256 < "$mpwArchive")"
|
echo "$mpwArchive ready, SHA256: $(openssl sha -sha256 < "$mpwArchive")"
|
||||||
|
|
||||||
cd ../../Site/current
|
cd ../../Site/current
|
||||||
|
Loading…
Reference in New Issue
Block a user