#!/bin/sh -ef
# Usage: Sisyphus-archive-import <package-name>

[ -n "$COMFORT_DIR" ] || COMFORT_DIR=/usr/share/comfort
. "$COMFORT_DIR/functions"

# ======================================================================

USAGE='[package-name...]'
DESCRIPTION="
Downloads all available versions of package from Sisyphus archive and
then imports them all into fresh local git repository."

# Parse command line
. "$COMFORT_DIR/getopt"

# ======================================================================

for I in $@; do
	$COMFORT_DIR/archive-download "$I"
	$COMFORT_DIR/archive-import "$I"
done
