4 |
# needs pkgbuild_dir (mage) |
# needs pkgbuild_dir (mage) |
5 |
|
|
6 |
# SMAGE2 |
# SMAGE2 |
7 |
# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/smage2.sh,v 1.43 2006-07-17 20:44:44 niro Exp $ |
# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/smage2.sh,v 1.44 2006-07-17 20:52:38 niro Exp $ |
8 |
|
|
9 |
#01.10.2004 |
#01.10.2004 |
10 |
# added ccache support |
# added ccache support |
91 |
local i |
local i |
92 |
for i in ${SMAGE2RSYNC} |
for i in ${SMAGE2RSYNC} |
93 |
do |
do |
94 |
rsync \ |
rsync ${RSYNC_FETCH_OPTIONS} ${i} ${SMAGESCRIPTSDIR} |
|
--recursive \ |
|
|
--links \ |
|
|
--perms \ |
|
|
--times \ |
|
|
--devices \ |
|
|
--timeout=600 \ |
|
|
--verbose \ |
|
|
--compress \ |
|
|
--progress \ |
|
|
--stats \ |
|
|
--delete \ |
|
|
--delete-after \ |
|
|
${i} ${SMAGESCRIPTSDIR} |
|
|
|
|
95 |
if [[ $? = 0 ]] |
if [[ $? = 0 ]] |
96 |
then |
then |
97 |
break |
break |
98 |
else |
else |
99 |
continue |
continue |
100 |
fi |
fi |
|
|
|
101 |
done |
done |
102 |
|
|
103 |
# clean up backup files (foo~) |
# clean up backup files (foo~) |
532 |
> ${dest} |
> ${dest} |
533 |
|
|
534 |
# header |
# header |
535 |
echo '# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/smage2.sh,v 1.43 2006-07-17 20:44:44 niro Exp $' >> ${dest} |
echo '# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/smage2.sh,v 1.44 2006-07-17 20:52:38 niro Exp $' >> ${dest} |
536 |
echo >> ${dest} |
echo >> ${dest} |
537 |
|
|
538 |
# pgkname and state |
# pgkname and state |