summaryrefslogtreecommitdiff
path: root/rc/bin/ape/dircp
diff options
context:
space:
mode:
Diffstat (limited to 'rc/bin/ape/dircp')
-rwxr-xr-xrc/bin/ape/dircp9
1 files changed, 9 insertions, 0 deletions
diff --git a/rc/bin/ape/dircp b/rc/bin/ape/dircp
new file mode 100755
index 000000000..a51daa51e
--- /dev/null
+++ b/rc/bin/ape/dircp
@@ -0,0 +1,9 @@
+#!/bin/rc
+# dircp src dest - copy a tree with ape's tar
+switch($#*){
+case 2
+ @{cd $1 && tar cf /fd/1 .} | @{cd $2 && tar xf /fd/0}
+case *
+ echo usage: dircp from to >[1=2]
+ exit usage
+}