Changeset 1853


Ignore:
Timestamp:
Mar 7, 2009, 2:26:23 AM (13 years ago)
Author:
Peter
Message:

adding verbose option in move-if-change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build_support/move-if-change

    r1841 r1853  
    33# Status is zero if successful, nonzero otherwise.
    44
    5 usage="$0: usage: $0 SOURCE DEST"
     5usage="$0: usage: $0 [-v] SOURCE DEST"
     6
     7if test "x$1" = "x-v"; then
     8  verbose=yes
     9  shift
     10fi
    611
    712case $# in
     
    1722
    1823if test -r "$2" && cmp -s "$1" "$2"; then
     24  if test "x$verbose" = "xyes"; then
     25    echo "move-if-change: \`$2' is up to date"
     26  fi
    1927  rm -f "$1"
    2028else
Note: See TracChangeset for help on using the changeset viewer.