make-release.sh: update
This commit is contained in:
parent
d83675d3a0
commit
167b99c4e2
1 changed files with 3 additions and 1 deletions
|
@ -2,11 +2,13 @@
|
||||||
# usage: make-release.sh release
|
# usage: make-release.sh release
|
||||||
# Make a tarball of software excluding git history and leftover files
|
# Make a tarball of software excluding git history and leftover files
|
||||||
|
|
||||||
|
[ -z "$1" ] && printf 'usage: make-release.sh version\n' && exit 1
|
||||||
|
|
||||||
name="$(basename "$(pwd)")"
|
name="$(basename "$(pwd)")"
|
||||||
cd ../
|
cd ../
|
||||||
cp -R "$name" "$1"
|
cp -R "$name" "$1"
|
||||||
cd "$1"/
|
cd "$1"/
|
||||||
rm -fr .git
|
rm -fr .git .build.yml .builds
|
||||||
|
|
||||||
IFS="\n"
|
IFS="\n"
|
||||||
if [ -e .gitignore ]; then
|
if [ -e .gitignore ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue