Mercurial > index.cgi > dotfiles
comparison .bash_profile @ 11:0f5a560c00d4
Changed check time to one month, and made it backgrounded. These things don't
change as much anymore, and I don't mind if it's done in the background. I
may even entertain thoughts of making it *do* the checkout instead of just
reporting there's a new version, since I think I can have ways around any
problem that might come up because of that (should test that first though)
author | huston@80426f53-59d1-405d-934b-f07cd76f4a1a |
---|---|
date | Thu, 16 Jul 2009 21:06:15 +0000 |
parents | 1e8e782fccab |
children | dacbbae5965c |
comparison
equal
deleted
inserted
replaced
10:c47ed181081e | 11:0f5a560c00d4 |
---|---|
37 # zero-length variables on the test - it just won't run the svn status, so you | 37 # zero-length variables on the test - it just won't run the svn status, so you |
38 # won't be prompted if there's newer files available in your repository. | 38 # won't be prompted if there's newer files available in your repository. |
39 | 39 |
40 [[ `uname` == "Darwin" ]] && { | 40 [[ `uname` == "Darwin" ]] && { |
41 STAT="stat -f %m -t %s $HOME/.dotfilets" | 41 STAT="stat -f %m -t %s $HOME/.dotfilets" |
42 DATE="date -v -1w +%s" | 42 DATE="date -v -1m +%s" |
43 } | 43 } |
44 | 44 |
45 [[ `uname` == "Linux" ]] && { | 45 [[ `uname` == "Linux" ]] && { |
46 STAT="stat -c %Y $HOME/.dotfilets" | 46 STAT="stat -c %Y $HOME/.dotfilets" |
47 DATE="date -d \"1 week ago\" +%s" | 47 DATE="date -d \"1 month ago\" +%s" |
48 } | 48 } |
49 | 49 |
50 [[ ! -f $HOME/.dotfilets || \ | 50 [[ ! -f $HOME/.dotfilets || \ |
51 `eval $STAT` -lt `eval $DATE` ]] && { | 51 `eval $STAT` -lt `eval $DATE` ]] && { |
52 echo Dotfiles last checked over a week ago, running a status test. | 52 echo Dotfiles last checked over a month ago, running a status test. |
53 echo Ctrl-C to abort, and test will be run again on next login. | 53 svn st -u && touch $HOME/.dotfilets & |
54 svn st -u && touch $HOME/.dotfilets | |
55 } | 54 } |