This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
BAK_BASE=~/".gnumed/backup" |
| 4 |
#------------------------------------------------------------------ |
| 5 |
|
| 6 |
mkdir -p ${BAK_BASE}/vcs-mirror |
| 7 |
|
| 8 |
cd ${BAK_BASE}/vcs-mirror |
| 9 |
|
| 10 |
if [ -d gnumed ]; then |
| 11 |
cd gnumed |
| 12 |
git pull -v |
| 13 |
cd .. |
| 14 |
else |
| 15 |
git clone git://gitorious.org/gnumed/gnumed.git |
| 16 |
fi |
| 17 |
|
| 18 |
date > timestamp.txt |
| 19 |
|
| 20 |
cd .. |
| 21 |
tar -czf gm-vcs-mirror-day_`date +%u`.tgz vcs-mirror |