OSDN Git Service

Add rm and strip abilities to atree.
authorRaphael <raphael@google.com>
Wed, 14 Sep 2011 22:07:05 +0000 (15:07 -0700)
committerRaphael <raphael@google.com>
Thu, 15 Sep 2011 18:22:16 +0000 (11:22 -0700)
commit0b3ec5d32f15bdea67d15af95cf68e455867c668
tree424f7ad6c56edc405aadab264f55c7de3a43d417
parent4d7ddab160ba29247225e11c2092dcfd68bd6baf
Add rm and strip abilities to atree.

The new line syntax is:
  [SRC] [rm|strip] DEST

This allows one to write things like this in atree:

  bin/src
  bin/src bin/dest
  bin/src "bin/another file name"

  rm dest/file
  rm dest/dir  # recursive

  strip bin/src
  bin/src strip bin/dest

Src and dest can contain spaces if full enclosed in double-quotes.
The strip command can be overridden using the STRIP env var.

Change-Id: I22aae7a87c36c082e1aab87132099a3c644914da
tools/atree/atree.cpp
tools/atree/files.cpp
tools/atree/files.h
tools/atree/fs.cpp
tools/atree/fs.h