boost/mkspec.sh

25 lines
610 B
Bash

#!/bin/bash
version=1.36.0
man_version=1.33.1
file_version="$(echo $version|sed 's/\./_/g')"
short_version="$(echo $file_version | cut -d_ -f 1,2)"
man_file_version="$(echo $man_version|sed 's/\./_/g')"
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