1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/sh tmpfile=.qmake.cache.$$ trap "rm -f $tmpfile" EXIT cat > $tmpfile << EOF TOP_OUTDIR = \$\$quote(`pwd`) TOP_SRCDIR = \$\$quote(`dirname "$0"`) EOF cmp -s $tmpfile .qmake.cache || mv $tmpfile .qmake.cache