summaryrefslogtreecommitdiff
path: root/db-init
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-06-18 21:33:20 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-06-18 21:33:20 -0400
commitaae3b0a2490d65832547f29327f9e8828442a48d (patch)
tree29b554ba243e1d97e3104c6c18d9838d6c4fc250 /db-init
parentd433fbd1da44acdf3dd50abce428fe57912f9fa7 (diff)
cleanup:
- move some config into config.local.* - `mv createrepos db-init` - `mv {,db-}check-package-libraries.py` - `mv `list_nonfree_in_db.py db-list-nonfree.py` - `rm abslibre`: To be replaced by XBS+update abs tarballs script - `rm create-repo mkrepo`: Both did the same thing, just fancy `mkdir` - `rm `testing2x`: Just use db-move.
Diffstat (limited to 'db-init')
-rwxr-xr-xdb-init6
1 files changed, 6 insertions, 0 deletions
diff --git a/db-init b/db-init
new file mode 100755
index 0000000..e25dbff
--- /dev/null
+++ b/db-init
@@ -0,0 +1,6 @@
+#!/bin/bash
+# Creates the repo structure defined in config
+
+source "$(dirname "$(readlink -e "$0")")/config"
+
+mkdir -p -- "${FTP_BASE}"/{"${PKGPOOL}","${SRCPOOL}"} "${CLEANUP_DESTDIR}" "${SOURCE_CLEANUP_DESTDIR}" "${STAGING}"