diff options
author | 2014-08-21 09:33:32 +0200 | |
---|---|---|
committer | 2014-08-21 09:39:02 +0200 | |
commit | 4943d6b851466c22823a356d3fae7052ea47d663 (patch) | |
tree | bcc6f771572ea111b8a7b89ccc136d8304a6a0fa | |
parent | 56ece74efc25af1b0e09265f3c7fcf74323abcaf (diff) |
Make beautify-archive usable on non-GNU systems.
-rwxr-xr-x | tools/beautify-archive | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/beautify-archive b/tools/beautify-archive index ccfeb3dba..6bfa974a5 100755 --- a/tools/beautify-archive +++ b/tools/beautify-archive @@ -30,7 +30,7 @@ beaufiles=`find . -name \*.v$BEAUTIFYSUFFIX` for i in $beaufiles; do j=`dirname $i`/`basename $i .v$BEAUTIFYSUFFIX`.v echo Upgrading $j in the beautification directory - mv -u -f $i $j + if [ $i -nt $j ]; then mv -f $i $j; fi done echo ---- Recompiling beautified files in the beautification directory ----- make clean @@ -44,7 +44,7 @@ vfiles=`find . -name \*.v` cd .. for i in $vfiles; do echo Upgrading $i in current directory - mv -u -f $NEWARCHIVE/$i $i + if [ $NEWARCHIVE/$i -nt $i ]; then mv -f $NEWARCHIVE/$i $i; fi done echo -------- Beautification completed ------------------------------------- echo Old files are in directory '"'$OLDARCHIVE'"' |