summaryrefslogtreecommitdiff
path: root/linux-build-farm
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-06-24 16:23:10 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-06-24 16:23:10 -0700
commit06e2e8119e9167ea85bd9fd5c023fa48db1b8c12 (patch)
treea02ae6fd641fd1587ab1a7fe236f8bc0d3e2ec3a /linux-build-farm
parent8b78f19335a0350f760f072e6984e304d2eaeb4e (diff)
downloadinfinitytier-06e2e8119e9167ea85bd9fd5c023fa48db1b8c12.tar.gz
infinitytier-06e2e8119e9167ea85bd9fd5c023fa48db1b8c12.zip
Script to create Debian repos (requires aptly)
Diffstat (limited to 'linux-build-farm')
-rwxr-xr-xlinux-build-farm/aptly-create-debian-repo.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/linux-build-farm/aptly-create-debian-repo.sh b/linux-build-farm/aptly-create-debian-repo.sh
new file mode 100755
index 00000000..de5df7e4
--- /dev/null
+++ b/linux-build-farm/aptly-create-debian-repo.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+# This builds a series of Debian repositories for each distribution.
+
+export PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin
+
+for distro in debian-* ubuntu-*; do
+ if [ -n "`find ${distro} -name '*.deb' -type f`" ]; then
+ arches=`ls ${distro}/*.deb | cut -d _ -f 3 | cut -d . -f 1 | xargs | sed 's/ /,/'`
+ aptly repo create -architectures=${arches} -comment="ZeroTier, Inc. Debian Packages" -component="main" -distribution=${distro} zt-release-${distro}
+ aptly repo add zt-release-${distro} ${distro}/*.deb
+ aptly publish repo zt-release-${distro} ${distro}
+ fi
+done