#!/bin/sh

DISTRO=`echo $1 | cut -f1 -d-`
VERSION=`echo $1 | cut -f2 -d- |cut -f1 -dt`

COMPS=`tar tzf $1 | grep \\.comp |wc -l`
INSTRS=`tar tzf $1 | grep \\.instr |wc -l`
EPOCH=`stat -c %Y $1`
echo
echo "************************************************************************"
echo " Archive $1 information:"
echo " $DISTRO version $VERSION contains "
echo " Released Unix epoch $EPOCH"
echo " $COMPS components"
echo " $INSTRS instruments"
echo "************************************************************************"
