aboutsummaryrefslogtreecommitdiff
path: root/weighin
blob: 9ab036006d36b9ce0479f0d150c5ab79e0f00fb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/rc
rfork ne
today=`{date -i | awk -F'-' '{print $2"/"$3}'}
w=()
flagfmt=''
args='weight'

fn usage {
	aux/usage
	exit usage
}

if(! ifs=() eval `{aux/getflags $*} || ! ~ $#* 1)
	usage

w=$1

cat <<EOF >>weight
$today	$w
EOF