Commit afa96290 authored by Romain Bignon's avatar Romain Bignon

move release.* scripts to tools/

parent 449ee671
Pipeline #1917 passed with stages
in 15 minutes and 3 seconds
......@@ -64,7 +64,7 @@ def get_caps(module, config):
return ['**** FILL ME **** (running weboob update could help)']
def new_modules(start, end):
#os.chdir(os.path.dirname(__file__))
os.chdir(os.path.join(os.path.dirname(__file__), os.path.pardir))
modules_info = configparser.ConfigParser()
with open('modules/modules.list') as f:
modules_info.read_file(f)
......
......@@ -2,10 +2,12 @@
# This script is used to release a version.
set -e
cd "$(dirname $0)/.."
function set_version {
echo -n "Replacing version in source files to $1"
echo -n "Replacing version in source files to $1... "
sed -i "s/^\(\s*\)\(VERSION\|version\|release\|__version__\)\( *\)=\( *\)[\"'][0-9]\+\..\+[\"']\(,\?\)$/\1\2\3=\4'$1'\5/g" $(git ls-files -x contrib | grep "\(.py\|.rst\)$")
echo -n "done.\n"
echo -e "done.\n"
}
if [ -z "$1" ]; then
......@@ -19,7 +21,7 @@ echo "Generating ChangeLog..."
export LANG=en_US.utf8
mv ChangeLog ChangeLog.old
./release.py prepare $VERSION > ChangeLog
tools/release.py prepare $VERSION > ChangeLog
echo -e "\n" >> ChangeLog
cat ChangeLog.old >> ChangeLog
rm -f ChangeLog.old
......@@ -46,7 +48,7 @@ echo "Release tag:"
git tag $VERSION -s -m "Weboob $VERSION"
echo -ne "\n"
./release.py tarball $VERSION
tools/release.py tarball $VERSION
echo -ne "\nDo you want to change the version number (y/n) "
read change_version
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment