open-vm-tools/pre_checkin.sh

10 lines
228 B
Bash

#!/bin/bash
NAME=open-vm-tools
NAMEKMP=open-vm-tools-KMP
sed "s:%define.*KMP.*0:%define KMP 1:" ${NAME}.spec > ${NAMEKMP}.spec
sed -i "s/\(Name:.*\)${NAME}/\1${NAMEKMP}/" ${NAMEKMP}.spec
cp ${NAME}.changes ${NAMEKMP}.changes