9 lines
326 B
Bash
9 lines
326 B
Bash
#!/bin/bash
|
|
# This script has to be run prior to a check-in if changes were done
|
|
# to spec and/or changes
|
|
GIT_VER=$(grep "%define git_ver" libfabric.spec)
|
|
VERSION=$(egrep "^Version:" libfabric.spec)
|
|
sed -i -e 's/^%define git_ver.*$/'"$GIT_VER/" -e 's/^Version:.*$/'"$VERSION/" fabtests.spec
|
|
osc service run format_spec_file
|
|
|