File: .update-changes.cfg

package info (click to toggle)
zkg 2.11.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 1,444 kB
  • sloc: python: 5,114; sh: 270; makefile: 265; cpp: 24
file content (21 lines) | stat: -rw-r--r-- 425 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Automatically adapt version in files.

function replace_python_package_version
{
    file=$1
    version=$2

    cat $file | sed "s#^\\( *__version__ *= *\\)\"\\([0-9.-]\\{1,\\}\\)\"#\1\"$version\"#g" >$file.tmp
    cat $file.tmp >$file
    rm -f $file.tmp
    git add $file
}

function new_version_hook
{
    version=$1
    replace_python_package_version zeekpkg/__init__.py $version

    make man
    git add ./doc/man
}