529c03d00f
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/boost?expand=0&rev=b0253da134996c6609e1487496d361f0
25 lines
602 B
Bash
25 lines
602 B
Bash
#!/bin/bash
|
|
|
|
version=1.42.0
|
|
man_version=1.33.1
|
|
|
|
file_version="$(echo $version|tr '.' '_')"
|
|
short_version="$(echo $file_version | cut -d_ -f 1,2)"
|
|
man_file_version="$(echo $man_version|tr '.' '_')"
|
|
|
|
lib_appendix="${file_version}"
|
|
|
|
sed -e "s/@lib_appendix@/$lib_appendix/g" \
|
|
-e "s/@man_version@/$man_version/g" \
|
|
-e "s/@man_file_version@/$man_file_version/g" \
|
|
-e "s/@file_version@/$file_version/g" \
|
|
-e "s/@short_version@/$short_version/g" \
|
|
boost.spec.in >boost.spec
|
|
|
|
if [ $? -eq 0 ]; then
|
|
echo "boost.spec generated"
|
|
else
|
|
echo "error when generating boost.spec"
|
|
rm -f boost.spec
|
|
fi
|