Annotation of /branches/R11-stable/include/rsync.sminc
Parent Directory | Revision Log
Revision 19316 -
(hide annotations)
(download)
Tue Sep 3 15:52:00 2013 UTC (11 years ago) by niro
File size: 756 byte(s)
Tue Sep 3 15:52:00 2013 UTC (11 years ago) by niro
File size: 756 byte(s)
-revert last commit
1 | niro | 2 | # $Header: /magellan-cvs/smage/include/rsync.sminc,v 1.1 2005/12/04 12:26:54 niro Exp $ |
2 | # rsync fetch functions | ||
3 | |||
4 | # at least only RSYNC_URI must be exported | ||
5 | # export RSYNC_URI="rsync://192.168.0.2/${PNAME}-${PVER}-${PBUILD}" | ||
6 | |||
7 | rsync_fetch_source() | ||
8 | { | ||
9 | [[ -z ${RSYNC_URI} ]] && die "no RSYNC_URI given, cannot run a checkout." | ||
10 | |||
11 | install -d ${SRCDIR} || die | ||
12 | rsync \ | ||
13 | --recursive \ | ||
14 | --links \ | ||
15 | --perms \ | ||
16 | --times \ | ||
17 | --devices \ | ||
18 | --timeout=600 \ | ||
19 | --verbose \ | ||
20 | --compress \ | ||
21 | --progress \ | ||
22 | --stats \ | ||
23 | --delete \ | ||
24 | --delete-after \ | ||
25 | ${RSYNC_URI} \ | ||
26 | ${SRCDIR} || die | ||
27 | cd ${SRCDIR} | ||
28 | |||
29 | # clean up backup files (foo~) | ||
30 | find ${SRCDIR} -name *~ -exec rm '{}' ';' || die | ||
31 | } | ||
32 | |||
33 | rsync_src_prepare() | ||
34 | { | ||
35 | rsync_fetch_source || die | ||
36 | } | ||
37 | |||
38 | export_inherits rsync src_prepare |