summaryrefslogtreecommitdiff
path: root/main.sh
diff options
context:
space:
mode:
Diffstat (limited to 'main.sh')
-rw-r--r--main.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/main.sh b/main.sh
new file mode 100644
index 0000000..ac504a4
--- /dev/null
+++ b/main.sh
@@ -0,0 +1,21 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+
+source config.sh
+
+function mkrsexclude {
+ error=1
+ while ${error}; do
+ run_python_cmd "filter.py"
+ error=$?
+ done
+}
+
+msg "Cleaning $tempdir"
+stdnull "rm -r $tempdir/* "
+
+msg "Generating exclude list for rsync"
+mkrsexclude
+
+msg "Syncing repo files without delete"
+${rsync_update_command} --exclude-from=${rsync_blacklist} ${mirror}${mirropath}/ \ No newline at end of file