public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ian Stakenvicius" <axs@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/mozilla:master commit in: scripts/
Date: Thu,  2 Jun 2016 15:19:36 +0000 (UTC)	[thread overview]
Message-ID: <1464880765.5b8d3228512547d28f4aef9137c19fe7f670804c.axs@gentoo> (raw)

commit:     5b8d3228512547d28f4aef9137c19fe7f670804c
Author:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
AuthorDate: Thu Jun  2 15:18:55 2016 +0000
Commit:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
CommitDate: Thu Jun  2 15:19:25 2016 +0000
URL:        https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=5b8d3228

generate_langpacks.sh: use pushd/popd instead of cd

 scripts/generate_langpacks.sh | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/scripts/generate_langpacks.sh b/scripts/generate_langpacks.sh
index 8530e34..e0552cb 100755
--- a/scripts/generate_langpacks.sh
+++ b/scripts/generate_langpacks.sh
@@ -70,11 +70,12 @@ if ! [[ -e ${l10n_releasedir}/mozlangs.cached ]]; then
   for abcd in "${MOZ_LANGS[@]}" ; do
     if [[ ! -d ${L10N_STAGING_DIR%/}/${l10nrepo}/${abcd} ]]; then
       mkdir -p ${L10N_STAGING_DIR%/}/${l10nrepo}
-      cd ${L10N_STAGING_DIR%/}/${l10nrepo}
+      pushd ${L10N_STAGING_DIR%/}/${l10nrepo} &>/dev/null || die
       hg clone "http://hg.mozilla.org/releases/l10n/${l10nrepo}/${abcd}"
+      popd &>/dev/null || die
     fi
     if [[ -d ${L10N_STAGING_DIR%/}/${l10nrepo}/${abcd} ]]; then
-      cd ${L10N_STAGING_DIR%/}/${l10nrepo}/${abcd}
+      pushd ${L10N_STAGING_DIR%/}/${l10nrepo}/${abcd} &>/dev/null || die
       hg pull
       if hg tags |grep ${uctarget//\./_}_RELEASE &>/dev/null; then
         rev="-r ${uctarget//\./_}_RELEASE"
@@ -85,6 +86,7 @@ if ! [[ -e ${l10n_releasedir}/mozlangs.cached ]]; then
         rev=
       fi
       hg archive ${rev} -t files ${l10n_releasedir}/src/${abcd}
+      popd &>/dev/null || die
     fi
   done
   cp ${l10n_releasedir}/mozlangs{,.cached}
@@ -139,7 +141,7 @@ fi
 
 
 function package_lightning {
-  cd ${S}/dist/xpi-stage
+  pushd ${S}/dist/xpi-stage &>/dev/null || die
   cp -rL lightning stage-lightning
   for ech in lightning-*; do
     if [[ -d $ech ]]; then
@@ -164,10 +166,11 @@ function package_lightning {
   cd ..
   mv stage-lightning lightning-${vers}
   tar -Jcf ${l10n_releasedir}/lightning-${vers}.tar.xz lightning-${vers}
+  popd &>/dev/null || die
 }
 
 function package_gdata_provider {
-  cd ${S}/dist/xpi-stage
+  pushd ${S}/dist/xpi-stage &>/dev/null || die
   cp -rL gdata-provider stage-gdata-provider
   for ech in gdata-provider-*; do
     if [[ -d $ech ]]; then
@@ -192,6 +195,7 @@ function package_gdata_provider {
   cd ..
   mv stage-gdata-provider gdata-provider-${vers}
   tar -Jcf ${l10n_releasedir}/gdata-provider-${vers}.tar.xz gdata-provider-${vers}
+  popd &>/dev/null || die
 }
 
 # run the locales


             reply	other threads:[~2016-06-02 15:19 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-02 15:19 Ian Stakenvicius [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-07-09 20:02 [gentoo-commits] proj/mozilla:master commit in: scripts/ Jory Pratt
2017-11-16 20:44 Ian Stakenvicius
2017-10-06 17:17 Ian Stakenvicius
2016-11-22 19:42 Ian Stakenvicius
2016-05-05 14:45 Ian Stakenvicius
2016-05-05  3:04 Ian Stakenvicius
2016-05-03 15:34 Ian Stakenvicius
2016-04-27 20:48 Ian Stakenvicius
2016-04-27 15:56 Ian Stakenvicius
2016-04-27 15:53 Ian Stakenvicius
2016-04-27 14:44 Ian Stakenvicius
2015-11-27 19:25 Ian Stakenvicius
2012-07-05  1:38 Jory Pratt
2012-05-23 10:30 Nirbheek Chauhan
2012-03-26  1:55 Jory Pratt
2012-02-18 14:39 Jory Pratt
2012-02-04 18:42 Nirbheek Chauhan
2012-01-30 13:36 Jory Pratt
2012-01-15 19:59 Jory Pratt
2011-07-06  4:22 Nirbheek Chauhan

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=1464880765.5b8d3228512547d28f4aef9137c19fe7f670804c.axs@gentoo \
    --to=axs@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