repo

List, download and sync packs with remote repositories
Log | Files | Refs

commit 0e998e2d515a046c7438d1ad1679a8f34f3ac023
parent 1966d66302e577e563df9b2402ccc5803e3729b4
Author: z3bra <contactatz3bradotorg>
Date:   Fri Dec 16 11:42:03 +0100

repogen: utility to generate repository listings

Diffstat:
repogen | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/repogen b/repogen @@ -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