mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-12-28 12:50:44 +00:00
fix exclude files from everywhere
This commit is contained in:
parent
f548b0e1a3
commit
873169b029
@ -2,12 +2,13 @@
|
|||||||
# file: make-distribution.sh
|
# file: make-distribution.sh
|
||||||
# creates files and arcchives to dirtribute bashbot
|
# creates files and arcchives to dirtribute bashbot
|
||||||
#
|
#
|
||||||
#### $$VERSION$$ v1.2-dev2-42-g62f2a0d
|
#### $$VERSION$$ v1.2-dev2-44-gf548b0e
|
||||||
|
|
||||||
# magic to ensure that we're always inside the root of our application,
|
# magic to ensure that we're always inside the root of our application,
|
||||||
# no matter from which directory we'll run script
|
# no matter from which directory we'll run script
|
||||||
GIT_DIR=$(git rev-parse --git-dir 2>/dev/null)
|
GIT_DIR=$(git rev-parse --git-dir 2>/dev/null)
|
||||||
if [ "$GIT_DIR" != "" ] ; then
|
if [ "$GIT_DIR" != "" ] ; then
|
||||||
|
[[ "$GIT_DIR" != "/"* ]] && GIT_DIR="${PWD}/${GIT_DIR}"
|
||||||
cd "$GIT_DIR/.." || exit 1
|
cd "$GIT_DIR/.." || exit 1
|
||||||
else
|
else
|
||||||
echo "Sorry, no git repository $(pwd)" && exit 1
|
echo "Sorry, no git repository $(pwd)" && exit 1
|
||||||
@ -64,7 +65,7 @@ source "../../dev/make-html.sh"
|
|||||||
cd .. || exit 1
|
cd .. || exit 1
|
||||||
echo "Create dist archives"
|
echo "Create dist archives"
|
||||||
# shellcheck disable=SC2046
|
# shellcheck disable=SC2046
|
||||||
zip -rq - "${DISTNAME}" --exclude $(cat "$GIT_DIR/../dev/${0##*/}.exclude") >"${DISTNAME}-${VERSION}.zip"
|
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}"
|
tar --exclude-ignore="$GIT_DIR/../dev/${0##*/}.exclude" -czf "${DISTNAME}-${VERSION}.tar.gz" "${DISTNAME}"
|
||||||
|
|
||||||
echo "Done!"
|
echo "Done!"
|
||||||
|
@ -5,12 +5,13 @@
|
|||||||
# If you your bot is finished you can use make-standalone.sh to create the
|
# If you your bot is finished you can use make-standalone.sh to create the
|
||||||
# the old all-in-one bashbot: bashbot.sh and commands.sh only!
|
# the old all-in-one bashbot: bashbot.sh and commands.sh only!
|
||||||
#
|
#
|
||||||
#### $$VERSION$$ v1.2-0-gc50499c
|
#### $$VERSION$$ v1.2-dev2-44-gf548b0e
|
||||||
|
|
||||||
# magic to ensure that we're always inside the root of our application,
|
# magic to ensure that we're always inside the root of our application,
|
||||||
# no matter from which directory we'll run script
|
# no matter from which directory we'll run script
|
||||||
GIT_DIR=$(git rev-parse --git-dir 2>/dev/null)
|
GIT_DIR=$(git rev-parse --git-dir 2>/dev/null)
|
||||||
if [ "$GIT_DIR" != "" ] ; then
|
if [ "$GIT_DIR" != "" ] ; then
|
||||||
|
[[ "$GIT_DIR" != "/"* ]] && GIT_DIR="${PWD}/${GIT_DIR}"
|
||||||
cd "$GIT_DIR/.." || exit 1
|
cd "$GIT_DIR/.." || exit 1
|
||||||
else
|
else
|
||||||
[ ! -f "bashbot.sh" ] && echo "bashbot.sh not found in $(pwd)" && exit 1
|
[ ! -f "bashbot.sh" ] && echo "bashbot.sh not found in $(pwd)" && exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user