trepogen: utility to generate repository listings - repo - list/download/sync packs with remote repositories
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit 0e998e2d515a046c7438d1ad1679a8f34f3ac023
(DIR) parent 1966d66302e577e563df9b2402ccc5803e3729b4
(HTM) Author: z3bra <contactatz3bradotorg>
Date: Fri, 16 Dec 2016 11:42:03 +0100
repogen: utility to generate repository listings
Diffstat:
A repogen | 10 ++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/repogen b/repogen
t@@ -0,0 +1,10 @@
+#!/bin/sh
+
+REPO=${1:-.}
+BASE=http://localhost/pack
+for tarball in $(find $REPO -name '*.tar.bz2'); do
+ pkg=$(basename $tarball | cut -d# -f1)
+ ver=$(basename $tarball | cut -d# -f2 | sed 's/.tar.bz2//')
+
+ printf '%s\t%s\t%s/%s\n' "$pkg" "$ver" "$BASE" "$(basename $tarball)"
+done | sort | ifne tee $REPO/.list