repo.or.cz
/
guilt.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Guilt v0.37-rc1
[guilt.git]
/
regression
/
bin
/
dump_reg
blob
1b62c4048c7f181bd0751501fc360b5a2abd9730
1
#!/bin/sh
2
3
if
[
$#
-ne
1
];
then
4
echo
"ERROR"
5
exit
1
6
fi
7
8
UNAME_S
=
`uname -s`
9
10
if
[
-r
"
$REG_DIR
/../os.
$UNAME_S
"
];
then
11
.
"
$REG_DIR
/../os.
$UNAME_S
"
12
else
13
die
"Unsupported operating system:
$UNAME_S
"
14
fi
15
16
if
[
-d
"
$1
"
];
then
17
echo
"d
$1
"
18
elif
[
-f
"
$1
"
];
then
19
echo
"f `sha1 "
$1
"`"
20
else
21
echo
"?
$1
"
22
fi