#!/bin/sh

if [ $# -ne 1 ]; then
	echo "ERROR"
	exit 1
fi

UNAME_S=`uname -s`

if [ -r "$REG_DIR/../os.$UNAME_S" ]; then
	. "$REG_DIR/../os.$UNAME_S"
else
	die "Unsupported operating system: $UNAME_S"
fi

if [ -d "$1" ]; then
	echo "d $1"
elif [ -f "$1" ]; then
	echo "f `sha1 "$1"`"
else
	echo "? $1"
fi
