trepogen - repo - list/download/sync packs with remote repositories
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
       trepogen (331B)
       ---
            1 #!/bin/sh
            2 
            3 REPO=${1:-.}
            4 BASE=http://localhost/pack
            5 for tarball in $(find $REPO -name '*.tar.bz2'); do
            6         pkg=$(basename $tarball | cut -d# -f1)
            7         ver=$(basename $tarball | cut -d# -f2 | sed 's/.tar.bz2//')
            8 
            9         printf '%s\t%s\t%s/%s\n' "$pkg" "$ver" "$BASE" "$(basename $tarball)"
           10 done | sort | ifne tee $REPO/.list