mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-11-22 15:35:09 +00:00
prepare for v0.5, add version numbers to files
This commit is contained in:
parent
64255eb17c
commit
851be83518
@ -423,3 +423,5 @@ An example crontab is provided in ```bashbot.cron```.
|
||||
## That's it!
|
||||
|
||||
If you feel that there's something missing or if you found a bug, feel free to submit a pull request!
|
||||
|
||||
#### $$VERSION$$ v0.49-0-g64255eb
|
||||
|
@ -6,6 +6,9 @@
|
||||
#
|
||||
# This file is public domain in the USA and all free countries.
|
||||
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
|
||||
#
|
||||
#### $$VERSION$$ v0.49-0-g64255eb
|
||||
|
||||
|
||||
SHELL=/bin/sh
|
||||
PATH=/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:
|
||||
|
@ -1,6 +1,8 @@
|
||||
#!/bin/sh
|
||||
# description: Start or stop telegram-bash-bot
|
||||
#
|
||||
#### $$VERSION$$ v0.49-0-g64255eb
|
||||
#
|
||||
### BEGIN INIT INFO
|
||||
# Provides: bashbot
|
||||
# Required-Start: $network $syslog
|
||||
|
@ -9,6 +9,8 @@
|
||||
# and on tmux (http://github.com/tmux/tmux) (BSD).
|
||||
# This file is public domain in the USA and all free countries.
|
||||
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
|
||||
#
|
||||
#### $$VERSION$$ v0.49-0-g64255eb
|
||||
|
||||
# get location of bashbot.sh an change to bashbot dir
|
||||
SCRIPT="./$(basename $0)"
|
||||
|
@ -3,6 +3,8 @@
|
||||
|
||||
# This file is public domain in the USA and all free countries.
|
||||
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
|
||||
#
|
||||
#### $$VERSION$$ v0.49-0-g64255eb
|
||||
|
||||
# adjust your language setting here, e.g.when run from other user or cron.
|
||||
# https://github.com/topkecleon/telegram-bot-bash#setting-up-your-environment
|
||||
|
1
notify
1
notify
@ -2,6 +2,7 @@
|
||||
|
||||
# This file is public domain in the USA and all free countries.
|
||||
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
|
||||
#### $$VERSION$$ v0.49-0-g64255eb
|
||||
|
||||
# adjust your language setting here
|
||||
# https://github.com/topkecleon/telegram-bot-bash#setting-up-your-environment
|
||||
|
1
question
1
question
@ -2,6 +2,7 @@
|
||||
|
||||
# This file is public domain in the USA and all free countries.
|
||||
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
|
||||
#### $$VERSION$$ v0.49-0-g64255eb
|
||||
|
||||
echo "Why hello there.
|
||||
Would you like some tea (y/n)?"
|
||||
|
47
version
Executable file
47
version
Executable file
@ -0,0 +1,47 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Easy Versioning in git:
|
||||
#
|
||||
# for setting your Version in git use e.g.:
|
||||
# git tag -a v0.5 -m 'Version 0.5'
|
||||
#
|
||||
# Push tags upstream—this is not done by default:
|
||||
# git push --tags
|
||||
#
|
||||
# # in case of a wrong tag remove it:
|
||||
# git tag -d v0.5
|
||||
#
|
||||
# delete remote tag (eg, GitHub version)
|
||||
# git push origin :refs/tags/v0.5
|
||||
#
|
||||
# Then use the describe command:
|
||||
#
|
||||
# git describe --tags --long
|
||||
# This gives you a string of the format:
|
||||
#
|
||||
# v0.5-0-gdeadbee
|
||||
# ^ ^ ^^
|
||||
# | | ||
|
||||
# | | |'-- SHA of HEAD (first seven chars)
|
||||
# | | '-- "g" is for git
|
||||
# | '---- number of commits since last tag
|
||||
# |
|
||||
# '--------- last tag
|
||||
#
|
||||
# run this script to (re)place Version number in files
|
||||
#
|
||||
#### $$VERSION$$ v0.49-0-g64255eb
|
||||
#
|
||||
|
||||
VERSION="`git describe --tags --long`"
|
||||
echo "Update files to version $VERSION ..."
|
||||
|
||||
for file in `ls`
|
||||
do
|
||||
[ ! -f "$file" ] && continue
|
||||
#[ "$file" == "version" ] && continue
|
||||
echo -n " $file"
|
||||
sed -i 's/^#### $$VERSION$$.*/#### \$\$VERSION\$\$ '$VERSION'/' $file
|
||||
done
|
||||
echo " done."
|
||||
|
Loading…
Reference in New Issue
Block a user