initial commit
This commit is contained in:
commit
e51c7c25fd
3 changed files with 72 additions and 0 deletions
12
update-version.sh
Executable file
12
update-version.sh
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
set -ex
|
||||
DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
|
||||
|
||||
cd $DIR
|
||||
git clone https://github.com/2IMT/polycat.git
|
||||
cd polycat/
|
||||
VERSION=$(printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)")
|
||||
cd ..
|
||||
rm -rf polycat/
|
||||
|
||||
sed -i "s/Version:.*/Version: $VERSION/g" polycat.spec
|
Loading…
Add table
Add a link
Reference in a new issue