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: []
script:
- scripts/make-archive.sh
- scripts/make-spec.sh
- scripts/make-distrofiles.sh
- echo -e "[general]\napiurl = https://api.opensuse.org\n\n[https://api.opensuse.org]\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/show-version.sh | 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)"
scripts/make-archive.sh
scripts/make-spec.sh
scripts/make-distrofiles.sh
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