File: dump_reg

package info (click to toggle)
guilt 0.36-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,312 kB
  • sloc: sh: 3,063; makefile: 95; perl: 42
file content (24 lines) | stat: -rwxr-xr-x 362 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

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

UNAME_S=`uname -s`

if [ "$ADTTMP" ]; then
	. "/usr/lib/guilt/os.$UNAME_S"
elif [ -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