File pre_checkin.sh of Package wxWidgets-ansi.import4971

#!/bin/bash

VARIANTS=("" -wxcontainer -ansi)

for VAR in "${VARIANTS[@]}" ; do
	NAME=wxWidgets$VAR
	if test $NAME = wxWidgets ; then
		continue
	fi
	if test wxWidgets.spec -ot $NAME.spec ; then
		echo "wxWidgets.spec is older than $NAME.spec. Please merge changes manually and call pre-checkin.sh again."
		exit 1
	fi
	if test wxWidgets.changes -ot $NAME.changes ; then
		echo "wxWidgets.changes is older than $NAME.changes. Please merge changes manually and call pre-checkin.sh again."
		exit 1
	fi
	sed "s/^Name: *wxWidgets$/&$VAR$DBG/" <wxWidgets.spec >$NAME.spec
	cp -a wxWidgets.changes $NAME.changes
done
touch wxWidgets.spec wxWidgets.changes