Guilt v0.37-rc1
[guilt.git] / regression / bin / dump_reg
blob1b62c4048c7f181bd0751501fc360b5a2abd9730
1 #!/bin/sh
3 if [ $# -ne 1 ]; then
4 echo "ERROR"
5 exit 1
6 fi
8 UNAME_S=`uname -s`
10 if [ -r "$REG_DIR/../os.$UNAME_S" ]; then
11 . "$REG_DIR/../os.$UNAME_S"
12 else
13 die "Unsupported operating system: $UNAME_S"
16 if [ -d "$1" ]; then
17 echo "d $1"
18 elif [ -f "$1" ]; then
19 echo "f `sha1 "$1"`"
20 else
21 echo "? $1"