summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-04-08 11:40:32 -0500
committerJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-04-08 11:40:32 -0500
commit72d3e1102acf8e90a1646d5c9afa6fdd01b2aeca (patch)
tree954016844f89c422a2a111c90b5af91bb7375bf9
parent6a37d25e51228a0a83d004b9acda63c528972a26 (diff)
Config ported to bash
-rwxr-xr-xconfig.sh51
1 files changed, 51 insertions, 0 deletions
diff --git a/config.sh b/config.sh
new file mode 100755
index 0000000..aae3287
--- /dev/null
+++ b/config.sh
@@ -0,0 +1,51 @@
+#!/bin/sh
+# -*- coding: utf-8 -*-
+
+# Mirror options
+mirror="mirrors.eu.kernel.org"
+mirrorpath="::mirrors/archlinux"
+
+# Directories and files
+
+## Optionals
+paraboladir=~/parabolagnulinux.org
+logtime=$(date -u +%Y%m%d-%H:%M)
+
+## Must be defined
+logname=${paraboladir}/${logtime}-repo-maintainer.log
+tempdir=~/tmp/
+docs_dir=${paraboladir}/docs
+repodir=${paraboladir}/repo
+
+# Repos, arches, and dirs for repo
+repolist="core:extra:community:testing:community-testing:multilib"
+dir_list="pool"
+arch_list="i686:x86_64"
+other="any"
+
+# Output options
+output="True"
+debug="False"
+
+# Rsync commands
+rsync_list_command="rsync -a --no-motd --list-only "
+rsync_update_command="rsync -av --delay-updates --exclude=*.{abs|db}.tar.* "
+rsync_post_command="rsync -av --delete --exclude=*.abs.tar.* "
+
+
+function run_python_cmd {
+ env \
+ mirror=${mirror} \
+ mirrorpath=${mirrorpath} \
+ logname=${logname} \
+ tempdir=${tempdir} \
+ docs_dir=${docs_dir} \
+ repodir=${repodir} \
+ repolist=${repolist} \
+ dir_list=${dir_list} \
+ arch_list=${arch_list} \
+ other=${other} \
+ output=${output} \
+ debug=${debug} \
+ $1
+} \ No newline at end of file