summaryrefslogtreecommitdiff
path: root/main.sh
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-04-10 17:59:47 -0500
committerJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-04-10 17:59:47 -0500
commit69d84cc6edab249037522d00d3685939dc38495a (patch)
treef992e0a134bef65ab9df7a88997192d73510326e /main.sh
parentaf57d31dfb26a7c3d6fe403e0fdb7d540c22d4de (diff)
Firs main deliver
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