4
if [ -d ~/.stdhome.orig -a ! -d ~/.stdhome.dev ]; then
6
elif [ ! -d ~/.stdhome.orig -a -d ~/.stdhome.dev ]; then
10
if [ -z "$CURRENT" ]; then
11
echo "Can't determine current state" >&2
15
if [ "$CURRENT" == "off" ]; then
16
echo "Dev environment is off" >&2
23
if [ $(( 0 + $1 )) -gt 0 ]; then
29
echo updating repo snapshot
30
cd ~/.stdhome.dev.reset/home
37
cp -a ~/.stdhome{.dev.reset,}
40
if [ -n "$REVNO" ]; then
41
echo applying revno $REVNO
42
/usr/local/bin/stdhome stage-revert
49
echo resetting homedir
50
rm -rf ~/tmp/stdhome-dev
51
cp -a ~/.stdhome/home ~/tmp/stdhome-dev