]> gitweb.fluxo.info Git - httruta.git/commitdiff
Make depth configurable
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 25 Aug 2013 23:53:43 +0000 (20:53 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 25 Aug 2013 23:53:43 +0000 (20:53 -0300)
config
lib/httracker/functions

diff --git a/config b/config
index 67f92224972be0812a2442282d8c817be2d7ee3f..cc11c3a8aaac5ca92d33d53b11dfddd5561e3908 100644 (file)
--- a/config
+++ b/config
@@ -9,3 +9,4 @@ EXT_LEVEL="1"
 FILESIZE=""
 USER="arquivo"
 GROUP="arquivo"
+DEPTH="2"
index 77fc66761e0f64d457c75294918914b5425d98ba..b2835861ea67393d0cec0cb5fa7790d007856601 100644 (file)
@@ -29,7 +29,7 @@ function httracker_get {
   httrack               \
     --mirror            \
     --continue          \
-    --depth=2           \
+    --depth=${DEPTH}    \
     --purge-old=0       \
     --index             \
     --cookies=1         \
@@ -67,7 +67,7 @@ function httracker_get_incremental {
           --mirror            \
           --continue          \
           --user links        \
-          --depth=2           \
+          --depth=${DEPTH}    \
           --purge-old=0       \
           --index             \
           --cookies=1         \