Commit aa6bfeb9 authored by Tomas Krizek's avatar Tomas Krizek

scripts: fill in VERSION for all distro files

parent ca93ed64
......@@ -353,7 +353,7 @@ obs:
dependencies: []
- scripts/
- scripts/
- scripts/
- echo -e "[general]\napiurl =\n\n[]\nuser = CZ-NIC\npass = $OBS_PASSWORD" > /root/.oscrc
- osc co home:CZ-NIC:knot-devel knot-resolver
- cd home\:CZ-NIC\:knot-devel/knot-resolver/
#!/bin/bash -e
# Fill in VERSION field in Fedora spec file
# Fill in VERSION field in distribution specific files
cd "$(git rev-parse --show-toplevel)"
VERSION=$(scripts/ | sed 's/knot-resolver-\(.*\).tar.xz/\1/')
sed -i.bak "s@%define VERSION .*@%define VERSION $VERSION@" distro/fedora/knot-resolver.spec
sed -i.bak "s/VERSION/$VERSION/" distro/arch/PKGBUILD
......@@ -4,7 +4,7 @@
cd "$(git rev-parse --show-toplevel)"
mv knot-resolver-*.tar.xz distro/fedora/
cd distro/fedora
rpkg srpm
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