From: "Christoph Mende" <angelos@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/angelos:master commit in: scripts/
Date: Thu, 22 Oct 2015 11:40:32 +0000 (UTC) [thread overview]
Message-ID: <1445512068.0a142e904dfad15121b64c90aafc67e7e9ee375a.angelos@gentoo> (raw)
commit: 0a142e904dfad15121b64c90aafc67e7e9ee375a
Author: Christoph Mende <angelos <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 22 11:07:48 2015 +0000
Commit: Christoph Mende <angelos <AT> gentoo <DOT> org>
CommitDate: Thu Oct 22 11:07:48 2015 +0000
URL: https://gitweb.gentoo.org/dev/angelos.git/commit/?id=0a142e90
Update sync-xfce-overlay.sh
scripts/sync-xfce-overlay.sh | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/scripts/sync-xfce-overlay.sh b/scripts/sync-xfce-overlay.sh
index 968e51e..f83fa7d 100755
--- a/scripts/sync-xfce-overlay.sh
+++ b/scripts/sync-xfce-overlay.sh
@@ -1,10 +1,10 @@
#!/bin/bash
repo_name="xfce-dev"
-[ $# -gt 0 ] && repo_name=$1
+[[ $# -gt 0 ]] && repo_name=$1
OVERLAY="$(portageq get_repo_path / ${repo_name})"
-[ $? -eq 0 ] || exit 1
-PORTDIR="$(portageq portdir)"
+[[ $? -eq 0 ]] || exit 1
+PORTDIR="$(portageq get_repo_path / gentoo)"
# collect ebuilds
pushd "${OVERLAY}" >/dev/null
@@ -27,9 +27,10 @@ for i in ${pkgs}; do
# get destination ebuild's header
dst=${OVERLAY}/${i}
+ [[ -e ${dst} ]] || continue
dstheader=$(grep "^# \$Header: " ${dst})
- if [ "${srcheader}" != "${dstheader}" ]; then
+ if [[ "${srcheader}" != "${dstheader}" ]]; then
# copy new ebuild
cp -f ${src} ${dst}
@@ -43,7 +44,7 @@ for i in ${pkgs}; do
fi
done
-if [ ${changes} -gt 0 ]; then
+if [[ ${changes} -gt 0 ]]; then
echo ${changes} ebuilds synced, please review the changes
else
echo Everything up to date
next reply other threads:[~2015-10-22 11:40 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-22 11:40 Christoph Mende [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-04-14 10:44 [gentoo-commits] dev/angelos:master commit in: scripts/ Christoph Mende
2012-07-20 11:43 Christoph Mende
2012-07-01 20:46 Christoph Mende
2012-07-01 20:46 Christoph Mende
2011-12-18 14:01 Christoph Mende
2011-07-14 17:57 Christoph Mende
2011-07-13 18:12 Christoph Mende
2011-07-13 18:12 Christoph Mende
2011-06-21 12:09 Christoph Mende
2011-06-21 12:09 Christoph Mende
2011-04-27 8:38 Christoph Mende
2011-04-22 11:16 Christoph Mende
2011-04-20 20:24 Christoph Mende
2011-04-16 10:49 Christoph Mende
2011-04-16 10:43 Christoph Mende
2011-04-16 7:58 Christoph Mende
2011-04-11 16:45 Christoph Mende
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=1445512068.0a142e904dfad15121b64c90aafc67e7e9ee375a.angelos@gentoo \
--to=angelos@gentoo.org \
--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