X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fmolecules.sh;h=9519d2f528bb2d48172008b31830c1ac869f1759;hp=dbae220e7c5c35ea71b981cc54acfcf719cec25f;hb=c70f94f648d51bb4828193124f325fa52b0e57f3;hpb=f8cf5ac7b2f53510f80a0eaf286a25298be17bfe diff --git a/hacks/glx/molecules.sh b/hacks/glx/molecules.sh index dbae220e..9519d2f5 100755 --- a/hacks/glx/molecules.sh +++ b/hacks/glx/molecules.sh @@ -14,4 +14,9 @@ for f in $SRCS ; do sed 's/",$/\\n"/' >> $TMP echo ',' >> $TMP done -mv $TMP $TARGET + +if cmp -s $TMP $TARGET ; then + rm $TMP +else + mv $TMP $TARGET +fi