File pre_checkin.sh of Package jflex-bootstrap

#!/bin/bash

NAME1=jflex
NAME2=jflex-bootstrap
COPY_CHANGES=true

EDIT_WARNING="##### WARNING: please do not edit this auto generated spec file. Use the ${NAME1}.spec! #####\n"
sed "s/^%global _without_bootstrap.*$/${EDIT_WARNING}%global with_bootstrap 1/;
     s/^\(Name:.*\)$/\1-bootstrap/;
    " < ${NAME1}.spec > ${NAME2:-${NAME1}-bootstrap}.spec

if ${COPY_CHANGES}; then
    cp ${NAME1}.changes ${NAME2:-${NAME1}-bootstrap}.changes
fi
openSUSE Build Service is sponsored by