mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2025-02-05 03:48:24 +00:00
always create fresh zip/tar without unwanted files
This commit is contained in:
parent
62f2a0d469
commit
f43fb72a4c
@ -2,7 +2,7 @@
|
||||
# file: make-distribution.sh
|
||||
# creates files and arcchives to dirtribute bashbot
|
||||
#
|
||||
#### $$VERSION$$ v1.2-dev2-32-gf762d22
|
||||
#### $$VERSION$$ v1.2-dev2-42-g62f2a0d
|
||||
|
||||
# magic to ensure that we're always inside the root of our application,
|
||||
# no matter from which directory we'll run script
|
||||
@ -63,8 +63,9 @@ source "../../dev/make-html.sh"
|
||||
# create archive
|
||||
cd .. || exit 1
|
||||
echo "Create dist archives"
|
||||
zip -rq "${DISTNAME}-${VERSION}.zip" "${DISTNAME}"
|
||||
tar -czf "${DISTNAME}-${VERSION}.tar.gz" "${DISTNAME}"
|
||||
# shellcheck disable=SC2046
|
||||
zip -rq - "${DISTNAME}" --exclude $(cat "$GIT_DIR/../dev/${0##*/}.exclude") >"${DISTNAME}-${VERSION}.zip"
|
||||
tar --exclude-ignore="$GIT_DIR/../dev/${0##*/}.exclude" -czf "${DISTNAME}-${VERSION}.tar.gz" "${DISTNAME}"
|
||||
|
||||
echo "Done!"
|
||||
|
||||
|
7
dev/make-distribution.sh.exclude
Normal file
7
dev/make-distribution.sh.exclude
Normal file
@ -0,0 +1,7 @@
|
||||
data-bot-bash/*
|
||||
*.jssh
|
||||
botacl
|
||||
*.flock
|
||||
*.log
|
||||
*.last
|
||||
*.ok
|
Loading…
x
Reference in New Issue
Block a user