OSDN Git Service

Add rm and strip abilities to atree. DO NOT MERGE.
authorRaphael <raphael@google.com>
Wed, 14 Sep 2011 22:07:05 +0000 (15:07 -0700)
committerRaphael Moll <raphael@google.com>
Sat, 17 Sep 2011 04:25:18 +0000 (21:25 -0700)
commit131292c0422b4e6eca5ee0eda431c9faae5cf35d
tree1e4e84467baa5d6c91838be81841b3d2883c692e
parent704c0c9fcac5f680411666835fc6bd5d052ba8db
Add rm and strip abilities to atree. DO NOT MERGE.

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.

Cherry-pick from master 0b3ec5d32f15bdea67d15af95cf68e455867c668
tools/atree/atree.cpp
tools/atree/files.cpp
tools/atree/files.h
tools/atree/fs.cpp
tools/atree/fs.h