From: "Dennis Schridde" <devurandom@gmx.net>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/kde:master commit in: Documentation/
Date: Fri, 11 Feb 2011 09:34:38 +0000 (UTC) [thread overview]
Message-ID: <b9e5a05733bc2d085a1719a7831569582237ea8f.devurandom@gentoo> (raw)
commit: b9e5a05733bc2d085a1719a7831569582237ea8f
Author: Dennis Schridde <devurandom <AT> gmx <DOT> net>
AuthorDate: Fri Feb 11 08:23:23 2011 +0000
Commit: Dennis Schridde <devurandom <AT> gmx <DOT> net>
CommitDate: Fri Feb 11 09:34:31 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=b9e5a057
[Documentation/metadata-mirror-update.sh] More sophisticated version of the script, preserves filetimes for git+svn
---
Documentation/metadata-mirror-update.sh | 39 +++++++++++++++++++++++--------
1 files changed, 29 insertions(+), 10 deletions(-)
diff --git a/Documentation/metadata-mirror-update.sh b/Documentation/metadata-mirror-update.sh
old mode 100644
new mode 100755
index 6ae9e1b..74f83e3
--- a/Documentation/metadata-mirror-update.sh
+++ b/Documentation/metadata-mirror-update.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Run this script via cronjob to update your metadata mirror
@@ -18,19 +18,38 @@ METADATA_MIRROR_DIR=/path/to/your/mirror/dir
# portdbapi.auxdbmodule = portage.cache.sqlite.database
die() {
- echo "Usage: $0 <overlay>" 1>&2
- echo "ERROR: $@" 1>&2
- exit 255
+ echo "USAGE: $0 <overlay>" 1>&2
+ echo "ERROR: $@" 1>&2
+ exit 255
}
[[ "$1" ]] || die 'overlay'
overlay="$1" ; shift
-case $overlay in
- kde) update="cd $METADATA_MIRROR_DIR/kde/repo/ && git pull" ;;
- *) die "unknown overlay: $overlay" ;;
+if [ -e "$METADATA_MIRROR_DIR/$overlay/repo/.svn" ] ; then
+ type=svn
+elif [ -e "$METADATA_MIRROR_DIR/$overlay/repo/.git" ] ; then
+ type=git
+else
+ die "Unable to determine overlay type for $overlay"
+fi
+
+cd $METADATA_MIRROR_DIR/$overlay/repo || cd "failed to cd to $METADATA_MIRROR_DIR/$overlay/repo"
+
+case "$type" in
+ svn)
+ if ! grep "^use-commit-times = yes" $HOME/.subversion/config ; then
+ mkdir -p $HOME/.subversion
+ echo -e "[miscellany]\nuse-commit-times = yes" >> $HOME/.subversion/config || die 'enabling file time preservation failed'
+ fi
+ svn cleanup && svn update --force || die 'svn update failed'
+ ;;
+ git)
+ git pull || die 'git update failed'
+ /usr/local/bin/git-set-file-times || die 'setting file times failed'
+ ;;
+ *)
+ die "Unsupported overlay type '$type' for $overlay"
esac
-if $update || die 'update failed' ; then
- exec egencache --config-root=$METADATA_MIRROR_DIR/$overlay/ --cache-dir=$METADATA_MIRROR_DIR/cache/ --repo=$overlay --update
-fi
+exec egencache --config-root=$METADATA_MIRROR_DIR/$overlay/ --cache-dir=$METADATA_MIRROR_DIR/cache/ --repo=$overlay --update
next reply other threads:[~2011-02-11 9:34 UTC|newest]
Thread overview: 132+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-11 9:34 Dennis Schridde [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-12 18:33 [gentoo-commits] proj/kde:master commit in: Documentation/ Nowa Ammerlaan
2024-04-20 15:06 Andreas Sturmlechner
2024-03-02 10:35 Andreas Sturmlechner
2024-02-01 21:19 Andreas Sturmlechner
2023-12-18 11:24 Andreas Sturmlechner
2023-12-16 22:02 Andreas Sturmlechner
2023-12-12 20:03 Andreas Sturmlechner
2023-11-11 20:35 Andreas Sturmlechner
2023-09-16 16:53 Andreas Sturmlechner
2023-08-21 19:49 Andreas Sturmlechner
2023-05-27 10:40 Andreas Sturmlechner
2023-03-23 19:33 Andreas Sturmlechner
2023-03-04 12:56 Andreas Sturmlechner
2022-12-10 11:50 Andreas Sturmlechner
2022-09-17 14:09 Andreas Sturmlechner
2022-09-14 14:13 Andreas Sturmlechner
2022-07-16 15:30 Andreas Sturmlechner
2021-11-03 10:51 Andreas Sturmlechner
2021-09-14 14:24 Andreas Sturmlechner
2021-07-22 20:20 Andreas Sturmlechner
2021-06-30 6:07 Andreas Sturmlechner
2021-05-14 19:45 Andreas Sturmlechner
2021-05-05 8:37 Andreas Sturmlechner
2021-04-24 8:08 Andreas Sturmlechner
2021-02-24 22:38 Andreas Sturmlechner
2021-01-13 23:24 Andreas Sturmlechner
2020-11-30 22:27 Andreas Sturmlechner
2020-11-23 23:40 Andreas Sturmlechner
2020-09-03 12:52 Andreas Sturmlechner
2020-05-20 19:28 Andreas Sturmlechner
2020-05-14 17:25 Andreas Sturmlechner
2020-04-29 16:10 Andreas Sturmlechner
2020-03-01 12:33 Andreas Sturmlechner
2020-02-19 13:35 Andreas Sturmlechner
2020-01-26 10:39 Andreas Sturmlechner
2019-11-03 18:35 Andreas Sturmlechner
2019-11-02 9:58 Andreas Sturmlechner
2019-09-08 8:31 Andreas Sturmlechner
2019-02-28 13:19 Andreas Sturmlechner
2018-11-10 18:50 Andreas Sturmlechner
2018-09-13 18:17 Andreas Sturmlechner
2018-05-18 10:18 Andreas Sturmlechner
2018-04-12 18:41 Andreas Sturmlechner
2018-03-29 22:39 Andreas Sturmlechner
2018-03-23 18:52 Andreas Sturmlechner
2018-03-03 14:29 Andreas Sturmlechner
2018-02-06 10:15 Andreas Sturmlechner
2018-01-31 19:37 Andreas Sturmlechner
2017-12-31 21:23 Andreas Sturmlechner
2017-10-07 22:19 Andreas Sturmlechner
2017-08-02 23:59 Andreas Sturmlechner
2017-07-12 19:45 Andreas Sturmlechner
2017-05-17 20:58 Andreas Sturmlechner
2017-03-18 20:08 Johannes Huber
2017-02-25 20:02 Johannes Huber
2017-02-12 20:08 Johannes Huber
2017-02-05 13:50 Andreas Sturmlechner
2017-02-05 6:58 Johannes Huber
2017-01-25 20:08 Johannes Huber
2017-01-06 14:21 Johannes Huber
2017-01-01 20:14 Johannes Huber
2016-10-14 8:28 Johannes Huber
2016-07-25 15:32 Michael Palimaka
2016-06-02 14:11 Johannes Huber
2016-05-26 8:17 Johannes Huber
2016-05-17 7:06 Johannes Huber
2016-05-05 10:28 Johannes Huber
2016-04-16 17:23 Johannes Huber
2016-04-14 20:19 Johannes Huber
2016-04-07 19:30 Johannes Huber
2016-04-04 17:46 Johannes Huber
2016-04-04 17:43 Johannes Huber
2016-03-31 18:16 Johannes Huber
2016-03-26 10:43 Johannes Huber
2016-03-02 17:37 Johannes Huber
2016-02-14 15:28 Michael Palimaka
2016-02-09 10:55 Michael Palimaka
2015-12-10 6:41 Michael Palimaka
2015-12-06 9:49 Michael Palimaka
2015-11-19 16:23 Michael Palimaka
2015-11-13 16:30 Michael Palimaka
2015-10-27 16:03 Michael Palimaka
2015-10-15 16:32 Michael Palimaka
2015-10-10 12:26 Michael Palimaka
2015-06-11 16:48 Johannes Huber
2015-06-05 17:46 Michael Palimaka
2015-05-29 20:07 Johannes Huber
2015-04-28 13:00 Michael Palimaka
2015-04-08 19:28 Johannes Huber
2015-03-28 22:05 Johannes Huber
2015-01-28 21:59 Johannes Huber
2015-01-09 16:31 Manuel Rüger
2015-01-04 10:12 Johannes Huber
2014-10-10 16:09 Michael Palimaka
2014-09-14 10:46 Johannes Huber
2014-08-24 8:46 Michael Palimaka
2014-08-14 15:29 Johannes Huber
2014-08-09 19:57 Johannes Huber
2014-08-06 15:47 Johannes Huber
2014-07-15 17:51 Johannes Huber
2014-05-25 14:41 Johannes Huber
2014-04-28 14:38 Michael Palimaka
2014-04-28 14:01 Michael Palimaka
2012-08-30 10:52 Johannes Huber
2011-08-01 11:14 Theo Chatzimichos
2011-06-28 19:10 Andreas Hüttel
2011-04-27 20:05 Andreas K. Huettel
2011-04-27 20:05 Andreas K. Huettel
2011-04-27 17:30 Andreas K. Huettel
2011-04-27 16:01 Andreas K. Huettel
2011-04-25 19:19 Andreas K. Huettel
2011-04-24 12:54 Andreas K. Huettel
2011-04-23 20:38 Andreas K. Huettel
2011-04-23 20:38 Andreas K. Huettel
2011-04-23 18:01 Christian Schmitt
2011-04-23 16:43 Andreas K. Huettel
2011-04-22 23:13 Andreas K. Huettel
2011-04-22 22:08 Andreas K. Huettel
2011-04-22 20:18 Andreas K. Huettel
2011-04-22 18:33 Andreas K. Huettel
2011-04-19 22:20 Andreas K. Huettel
2011-04-19 21:53 Andreas K. Huettel
2011-04-18 11:20 Andreas K. Huettel
2011-04-17 22:45 Andreas K. Huettel
2011-04-17 20:30 Theo Chatzimichos
2011-04-10 22:50 Alexey Shvetsov
2011-03-12 17:45 Jonathan Callen
2011-02-27 9:45 Andreas K. Huettel
2011-02-11 9:39 Dennis Schridde
2011-02-09 14:29 Steffen Stramm
2011-02-07 23:22 Manuel Nickschas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b9e5a05733bc2d085a1719a7831569582237ea8f.devurandom@gentoo \
--to=devurandom@gmx.net \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox