#!/bin/bash

if [[ $1 == "" ]]; then
	echo "Usage: moc-tqt <moc_binary> <input_file> <output_file>"
else
	cp -Rp $2 $2.bkp
	tqt-replace $2
	$1 $2 -o $3
	cp -Rp $2.bkp $2
	rm -f $2.bkp
fi