/stdhome

To get this branch, use:
bzr branch http://bzr.ed.am/stdhome

« back to all changes in this revision

Viewing changes to tools/reset

  • Committer: Tim Marston
  • Date: 2016-04-10 20:16:16 UTC
  • Revision ID: tim@ed.am-20160410201616-xyd9aeyc7xf6tqg5
fixed tools to use ~/tmp/stdhome-dev as dev home-dir

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
        fi
26
26
fi
27
27
 
 
28
# check/create reset dir
 
29
if [ ! -d ~/.stdhome.dev.reset/home -a ! -d ~/.stdhome/home ]; then
 
30
        echo "No ~/.stdhome.dev/home and nothing to copy it from"
 
31
        exit 1
 
32
fi
 
33
if [ ! -d ~/.stdhome.dev.reset/home ]; then
 
34
        echo copying dev environment to initial snapshot
 
35
        rm -rf ~/.stdhome.dev.reset
 
36
        cp -a ~/.stdhome ~/.stdhome.dev.reset
 
37
fi
 
38
 
28
39
# update repo
29
40
echo updating repo snapshot
30
41
cd ~/.stdhome.dev.reset/home