diff options
author | Raphael <raphael@google.com> | 2011-09-14 15:07:05 -0700 |
---|---|---|
committer | Raphael <raphael@google.com> | 2011-09-15 11:22:16 -0700 |
commit | 0b3ec5d32f15bdea67d15af95cf68e455867c668 (patch) | |
tree | 424f7ad6c56edc405aadab264f55c7de3a43d417 /tools/atree/fs.h | |
parent | 4d7ddab160ba29247225e11c2092dcfd68bd6baf (diff) | |
download | build-0b3ec5d32f15bdea67d15af95cf68e455867c668.zip build-0b3ec5d32f15bdea67d15af95cf68e455867c668.tar.gz build-0b3ec5d32f15bdea67d15af95cf68e455867c668.tar.bz2 |
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
Diffstat (limited to 'tools/atree/fs.h')
-rw-r--r-- | tools/atree/fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/atree/fs.h b/tools/atree/fs.h index 4080880..fd4ae3e 100644 --- a/tools/atree/fs.h +++ b/tools/atree/fs.h @@ -8,5 +8,6 @@ using namespace std; int remove_recursively(const string& path); int mkdir_recursively(const string& path); int copy_file(const string& src, const string& dst); +int strip_file(const string& path); #endif // FS_H |