public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/mozilla:master commit in: scripts/
@ 2011-07-06  4:22 Nirbheek Chauhan
  0 siblings, 0 replies; 21+ messages in thread
From: Nirbheek Chauhan @ 2011-07-06  4:22 UTC (permalink / raw
  To: gentoo-commits

commit:     c5ad210bfdb2d03bffe42c5669b5bbce7b19c1cd
Author:     Nirbheek Chauhan <nirbheek <AT> gentoo <DOT> org>
AuthorDate: Wed Jul  6 04:18:41 2011 +0000
Commit:     Nirbheek Chauhan <nirbheek <AT> gentoo <DOT> org>
CommitDate: Wed Jul  6 04:18:41 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/mozilla.git;a=commit;h=c5ad210b

Update scripts/get_langs.sh

---
 scripts/get_langs.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/get_langs.sh b/scripts/get_langs.sh
index 69454b3..814f8cb 100755
--- a/scripts/get_langs.sh
+++ b/scripts/get_langs.sh
@@ -24,5 +24,5 @@ else
   echo 'Unknown product, dying...'
   exit 1
 fi
-LANGS=$(echo ${INBUILT_LANGS} ${XPI_LANGS} | tr " " "\n" | sort -d | uniq)
-echo ${LANGS}
+LANGS=$(echo ${INBUILT_LANGS} ${XPI_LANGS} | tr " " "\n" | sort -d | uniq | tr "\n" " ")
+echo "LANGS=(${LANGS})"



^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [gentoo-commits] proj/mozilla:master commit in: scripts/
@ 2012-01-15 19:59 Jory Pratt
  0 siblings, 0 replies; 21+ messages in thread
From: Jory Pratt @ 2012-01-15 19:59 UTC (permalink / raw
  To: gentoo-commits

commit:     036f34bc013b342dc9d44ba64546cf826cdd227f
Author:     Jory A. Pratt <anarchy <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 15 19:58:29 2012 +0000
Commit:     Jory Pratt <anarchy <AT> gentoo <DOT> org>
CommitDate: Sun Jan 15 19:58:29 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/mozilla.git;a=commit;h=036f34bc

basic script to generate an nss shared db with instructions

---
 scripts/ca-certificates-2-nssdb |   19 +++++++++++++++++++
 scripts/nssdb_passwd            |    1 +
 2 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/scripts/ca-certificates-2-nssdb b/scripts/ca-certificates-2-nssdb
new file mode 100755
index 0000000..219c602
--- /dev/null
+++ b/scripts/ca-certificates-2-nssdb
@@ -0,0 +1,19 @@
+#!/bin/bash
+#
+# This file is only intended to generate a shared db for nss
+# in the users home dir. This will be the first step in creating
+# a database that can be shared amongs applications using the sql
+# backend.
+
+PASSWD_FILE="$PWD/nssdb_passwd"
+
+mkdir -p $HOME/.pki/nssdb 
+
+certutil -N -f ${PASSWD_FILE} -d sql:.pki/nssdb
+
+for x in `ls /etc/ssl/certs | grep pem`; do
+	certutil -f ${PASSWD_FILE} -d sql:.pki/nssdb -A -t "CT,c,c" -n $x -i /etc/ssl/certs/$x
+done
+
+echo "Please also ensure you add 'export NSS_DEFAULT_DB_TYPE=\"sql\"' via $HOME/.bashrc"
+echo "To see a list of all certificate you may run, 'certutil -L -d $HOME/.pki/nssdb,'"

diff --git a/scripts/nssdb_passwd b/scripts/nssdb_passwd
new file mode 100644
index 0000000..ea20e07
--- /dev/null
+++ b/scripts/nssdb_passwd
@@ -0,0 +1 @@
+GentooF4n



^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [gentoo-commits] proj/mozilla:master commit in: scripts/
@ 2012-01-30 13:36 Jory Pratt
  0 siblings, 0 replies; 21+ messages in thread
From: Jory Pratt @ 2012-01-30 13:36 UTC (permalink / raw
  To: gentoo-commits

commit:     5f1fd6bb9d483a22e862fd78389db9a88de529f7
Author:     Jory A. Pratt <anarchy <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 30 13:35:46 2012 +0000
Commit:     Jory Pratt <anarchy <AT> gentoo <DOT> org>
CommitDate: Mon Jan 30 13:35:46 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/mozilla.git;a=commit;h=5f1fd6bb

add proper copyright/license to ca-certificates-2-nssdb

---
 scripts/ca-certificates-2-nssdb |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/scripts/ca-certificates-2-nssdb b/scripts/ca-certificates-2-nssdb
index 219c602..e44aec9 100755
--- a/scripts/ca-certificates-2-nssdb
+++ b/scripts/ca-certificates-2-nssdb
@@ -1,5 +1,20 @@
 #!/bin/bash
-#
+
+# Copyright (C) <2012>  Jory A. Pratt, < anarchy [at] gentoo [dot] org>
+
+#This program is free software: you can redistribute it and/or modify
+#it under the terms of the GNU General Public License as published by
+#the Free Software Foundation, either version 3 of the License, or
+#(at your option) any later version.
+
+#This program is distributed in the hope that it will be useful,
+#but WITHOUT ANY WARRANTY; without even the implied warranty of
+#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#GNU General Public License for more details.
+
+#You should have received a copy of the GNU General Public License
+#along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
 # This file is only intended to generate a shared db for nss
 # in the users home dir. This will be the first step in creating
 # a database that can be shared amongs applications using the sql



^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [gentoo-commits] proj/mozilla:master commit in: scripts/
@ 2012-02-04 18:42 Nirbheek Chauhan
  0 siblings, 0 replies; 21+ messages in thread
From: Nirbheek Chauhan @ 2012-02-04 18:42 UTC (permalink / raw
  To: gentoo-commits

commit:     4e9059a83e2122278b31e05b9b15a83c665e6de2
Author:     Nirbheek Chauhan <nirbheek <AT> gentoo <DOT> org>
AuthorDate: Sat Feb  4 18:42:15 2012 +0000
Commit:     Nirbheek Chauhan <nirbheek <AT> gentoo <DOT> org>
CommitDate: Sat Feb  4 18:42:15 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/mozilla.git;a=commit;h=4e9059a8

Port get_langs.sh to new eclass API

---
 scripts/get_langs.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/get_langs.sh b/scripts/get_langs.sh
index 814f8cb..68c6195 100755
--- a/scripts/get_langs.sh
+++ b/scripts/get_langs.sh
@@ -25,4 +25,4 @@ else
   exit 1
 fi
 LANGS=$(echo ${INBUILT_LANGS} ${XPI_LANGS} | tr " " "\n" | sort -d | uniq | tr "\n" " ")
-echo "LANGS=(${LANGS})"
+echo "MOZ_LANGS=(${LANGS})"



^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [gentoo-commits] proj/mozilla:master commit in: scripts/
@ 2012-02-18 14:39 Jory Pratt
  0 siblings, 0 replies; 21+ messages in thread
From: Jory Pratt @ 2012-02-18 14:39 UTC (permalink / raw
  To: gentoo-commits

commit:     df451634620307149544297b1a37c2be7fabfe4c
Author:     Jory A. Pratt <anarchy <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 18 14:39:07 2012 +0000
Commit:     Jory Pratt <anarchy <AT> gentoo <DOT> org>
CommitDate: Sat Feb 18 14:39:07 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/mozilla.git;a=commit;h=df451634

fix ca-certifications-2-nssdb to use proper pwd

---
 scripts/ca-certificates-2-nssdb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/ca-certificates-2-nssdb b/scripts/ca-certificates-2-nssdb
index e44aec9..e82fa46 100755
--- a/scripts/ca-certificates-2-nssdb
+++ b/scripts/ca-certificates-2-nssdb
@@ -20,7 +20,7 @@
 # a database that can be shared amongs applications using the sql
 # backend.
 
-PASSWD_FILE="$PWD/nssdb_passwd"
+PASSWD_FILE="$(pwd)/nssdb_passwd"
 
 mkdir -p $HOME/.pki/nssdb 
 



^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [gentoo-commits] proj/mozilla:master commit in: scripts/
@ 2012-03-26  1:55 Jory Pratt
  0 siblings, 0 replies; 21+ messages in thread
From: Jory Pratt @ 2012-03-26  1:55 UTC (permalink / raw
  To: gentoo-commits

commit:     7e083d47129b99db18506676d97c190d958f8f16
Author:     Jory A. Pratt <anarchy <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 26 01:55:00 2012 +0000
Commit:     Jory Pratt <anarchy <AT> gentoo <DOT> org>
CommitDate: Mon Mar 26 01:55:00 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/mozilla.git;a=commit;h=7e083d47

more cleanup for ca-certifcates-2-nssdb

---
 scripts/ca-certificates-2-nssdb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/ca-certificates-2-nssdb b/scripts/ca-certificates-2-nssdb
index e82fa46..ea60e7e 100755
--- a/scripts/ca-certificates-2-nssdb
+++ b/scripts/ca-certificates-2-nssdb
@@ -24,10 +24,10 @@ PASSWD_FILE="$(pwd)/nssdb_passwd"
 
 mkdir -p $HOME/.pki/nssdb 
 
-certutil -N -f ${PASSWD_FILE} -d sql:.pki/nssdb
+certutil -N -f ${PASSWD_FILE} -d sql:${HOME}/.pki/nssdb
 
 for x in `ls /etc/ssl/certs | grep pem`; do
-	certutil -f ${PASSWD_FILE} -d sql:.pki/nssdb -A -t "CT,c,c" -n $x -i /etc/ssl/certs/$x
+	certutil -f ${PASSWD_FILE} -d sql:${HOME}/.pki/nssdb -A -t "CT,c,c" -n $x -i /etc/ssl/certs/$x
 done
 
 echo "Please also ensure you add 'export NSS_DEFAULT_DB_TYPE=\"sql\"' via $HOME/.bashrc"



^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [gentoo-commits] proj/mozilla:master commit in: scripts/
@ 2012-05-23 10:30 Nirbheek Chauhan
  0 siblings, 0 replies; 21+ messages in thread
From: Nirbheek Chauhan @ 2012-05-23 10:30 UTC (permalink / raw
  To: gentoo-commits

commit:     960c2c8c6929ed26f96f1fa735c7a0cb08de13b0
Author:     Nirbheek Chauhan <nirbheek <AT> gentoo <DOT> org>
AuthorDate: Wed May 23 10:13:40 2012 +0000
Commit:     Nirbheek Chauhan <nirbheek <AT> gentoo <DOT> org>
CommitDate: Wed May 23 10:13:57 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/mozilla.git;a=commit;h=960c2c8c

Use ftp.mozilla.org for getting langpacks

---
 scripts/get_langs.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/get_langs.sh b/scripts/get_langs.sh
index 68c6195..f533cb1 100755
--- a/scripts/get_langs.sh
+++ b/scripts/get_langs.sh
@@ -9,7 +9,7 @@ fi
 INBUILT_LANGS="en en-US"
 PRODUCT="${1}"
 VER="${2}"
-MOZ_URI="http://releases.mozilla.org/pub/mozilla.org/${PRODUCT}/releases/${VER}"
+MOZ_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${PRODUCT}/releases/${VER}"
 if [[ "${PRODUCT}" =~ (firefox|thunderbird|icecat) ]]; then
   if [[ "${PRODUCT}" =~ icecat ]]; then
     LANG_URI="http://gnuzilla.gnu.org/download/langpacks/${VER}"



^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [gentoo-commits] proj/mozilla:master commit in: scripts/
@ 2012-07-05  1:38 Jory Pratt
  0 siblings, 0 replies; 21+ messages in thread
From: Jory Pratt @ 2012-07-05  1:38 UTC (permalink / raw
  To: gentoo-commits

commit:     693377e59e0059dc4bc028599eed5de940f58401
Author:     Jory A. Pratt <anarchy <AT> gentoo <DOT> org>
AuthorDate: Thu Jul  5 01:37:24 2012 +0000
Commit:     Jory Pratt <anarchy <AT> gentoo <DOT> org>
CommitDate: Thu Jul  5 01:37:24 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/mozilla.git;a=commit;h=693377e5

rename ca-certificates-2-nssdb to ca-certificates-2-nssdb.sh

---
 ...ificates-2-nssdb => ca-certificates-2-nssdb.sh} |    0
 1 files changed, 0 insertions(+), 0 deletions(-)

diff --git a/scripts/ca-certificates-2-nssdb b/scripts/ca-certificates-2-nssdb.sh
similarity index 100%
rename from scripts/ca-certificates-2-nssdb
rename to scripts/ca-certificates-2-nssdb.sh



^ permalink raw reply	[flat|nested] 21+ messages in thread

* [gentoo-commits] proj/mozilla:master commit in: scripts/
@ 2015-11-27 19:25 Ian Stakenvicius
  0 siblings, 0 replies; 21+ messages in thread
From: Ian Stakenvicius @ 2015-11-27 19:25 UTC (permalink / raw
  To: gentoo-commits

commit:     cf7fc21d10e0a019e27df1a72eb0bd0e1a74f0c2
Author:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 26 23:57:18 2015 +0000
Commit:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
CommitDate: Fri Nov 27 19:20:48 2015 +0000
URL:        https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=cf7fc21d

fixed uri in get_langs.sh script

 scripts/get_langs.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/get_langs.sh b/scripts/get_langs.sh
index f533cb1..50adba4 100755
--- a/scripts/get_langs.sh
+++ b/scripts/get_langs.sh
@@ -9,7 +9,7 @@ fi
 INBUILT_LANGS="en en-US"
 PRODUCT="${1}"
 VER="${2}"
-MOZ_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${PRODUCT}/releases/${VER}"
+MOZ_URI="http://archive.mozilla.org/pub/mozilla.org/${PRODUCT}/releases/${VER}"
 if [[ "${PRODUCT}" =~ (firefox|thunderbird|icecat) ]]; then
   if [[ "${PRODUCT}" =~ icecat ]]; then
     LANG_URI="http://gnuzilla.gnu.org/download/langpacks/${VER}"


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [gentoo-commits] proj/mozilla:master commit in: scripts/
@ 2016-04-27 14:44 Ian Stakenvicius
  0 siblings, 0 replies; 21+ messages in thread
From: Ian Stakenvicius @ 2016-04-27 14:44 UTC (permalink / raw
  To: gentoo-commits

commit:     279a7ebed5c004e1da3df8fa77c783a1e42ab955
Author:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 27 14:43:07 2016 +0000
Commit:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
CommitDate: Wed Apr 27 14:43:10 2016 +0000
URL:        https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=279a7ebe

added script that helps with verifying SHA512 hashes of distfiles against upstream

The script also checks the signature of the SHA512SUMS file is valid, though the trust
of the mozilla key used is entirely up to the user to verify and validate.

 scripts/verify_distfiles.sh | 63 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 63 insertions(+)

diff --git a/scripts/verify_distfiles.sh b/scripts/verify_distfiles.sh
new file mode 100755
index 0000000..b418620
--- /dev/null
+++ b/scripts/verify_distfiles.sh
@@ -0,0 +1,63 @@
+#!/bin/sh
+
+# Script to check distfiles against SHA512SUMS in upstream repo
+# Note - your gpg setup needs to have the mozilla release key imported for signature verification
+# Author: Ian Stakenvicius
+# 2016-03-10
+
+check_distfiles() {
+	local myver myname tmp
+	myname=$(qatom $1 |awk '{print $2}')
+        mybasename=${myname/-bin/}
+	if grep 'MOZ_ESR=""' $1 &>/dev/null || [[ -n $(grep -L MOZ_ESR $1) ]] ; then
+		myver=$(qatom $1 |awk '{print $3}')
+	else
+		myver=$(qatom $1 |awk '{print $3 "esr"}')
+	fi
+
+	sigfile=$(mktemp)
+	wget -O ${sigfile}.asc -q https://archive.mozilla.org/pub/${mybasename}/releases/${myver}/SHA512SUMS.asc
+	wget -O ${sigfile} -q https://archive.mozilla.org/pub/${mybasename}/releases/${myver}/SHA512SUMS
+	gpg --verify ${sigfile}.asc ${sigfile} || exit 1
+
+	grep -e "^DIST ${mybasename}-${myver}[-\.]" \
+	  -e "^DIST ${myname}_.*-${myver}[-\.]" \
+	  Manifest
+	exit 1
+
+	grep -e "^DIST ${myname}-${myver}[-\.]" \
+	  -e "^DIST ${mybasename}_.*-${myver}[-\.]" \
+	  Manifest |grep -v -- "${myname}-.*-patches-" |awk '{print $7}' |while read ech ; do
+		tmp=$(grep ${ech} Manifest |awk '{print $2}')
+		if grep $ech ${sigfile} &>/dev/null ; then
+			echo -n $tmp
+			grep ${ech} ${sigfile} |awk '{print " -> " $2 " OK"}'
+		else
+			echo -n "ERROR - no file with sum ${ech} found -- ${tmp}"
+			exit 1
+		fi
+	done
+	rm -f ${sigfile}.asc ${sigfile}
+}
+
+
+if [[ ! -e Manifest ]]; then
+	echo "ERROR - must be run in the directory of the package (with ebuilds and Manifest)"
+	echo "USAGE: $0 [ebuild file(s)]"
+	exit 1
+fi
+
+ebuild_list=( "$@" )
+if [ "$#" -eq 0 ]; then
+	echo "No arguments specified, verifying all ebuilds in current directory"
+	ebuild_list=( *.ebuild )
+fi
+
+for ebuild in "${ebuild_list[@]}"; do
+	echo "Checking $ebuild"
+	if [[ -e $ebuild ]]; then
+		check_distfiles $ebuild
+	else
+		echo "ERROR - $ebuild does not exist, skipping"
+	fi
+done


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [gentoo-commits] proj/mozilla:master commit in: scripts/
@ 2016-04-27 15:53 Ian Stakenvicius
  0 siblings, 0 replies; 21+ messages in thread
From: Ian Stakenvicius @ 2016-04-27 15:53 UTC (permalink / raw
  To: gentoo-commits

commit:     cac163f1695bd581f74a249130226d204db8dad4
Author:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 27 15:52:27 2016 +0000
Commit:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
CommitDate: Wed Apr 27 15:52:57 2016 +0000
URL:        https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=cac163f1

verify_distfiles.sh: drop debugging code that should have been removed earlier

 scripts/verify_distfiles.sh | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/scripts/verify_distfiles.sh b/scripts/verify_distfiles.sh
index b418620..420318b 100755
--- a/scripts/verify_distfiles.sh
+++ b/scripts/verify_distfiles.sh
@@ -20,11 +20,6 @@ check_distfiles() {
 	wget -O ${sigfile} -q https://archive.mozilla.org/pub/${mybasename}/releases/${myver}/SHA512SUMS
 	gpg --verify ${sigfile}.asc ${sigfile} || exit 1
 
-	grep -e "^DIST ${mybasename}-${myver}[-\.]" \
-	  -e "^DIST ${myname}_.*-${myver}[-\.]" \
-	  Manifest
-	exit 1
-
 	grep -e "^DIST ${myname}-${myver}[-\.]" \
 	  -e "^DIST ${mybasename}_.*-${myver}[-\.]" \
 	  Manifest |grep -v -- "${myname}-.*-patches-" |awk '{print $7}' |while read ech ; do


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [gentoo-commits] proj/mozilla:master commit in: scripts/
@ 2016-04-27 15:56 Ian Stakenvicius
  0 siblings, 0 replies; 21+ messages in thread
From: Ian Stakenvicius @ 2016-04-27 15:56 UTC (permalink / raw
  To: gentoo-commits

commit:     a1738f6a3804230550af2e81a4d99c58d055ea10
Author:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 27 15:55:39 2016 +0000
Commit:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
CommitDate: Wed Apr 27 15:55:39 2016 +0000
URL:        https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=a1738f6a

verify_distfiles.sh: fix bug so that matching works on *-bin packages

 scripts/verify_distfiles.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/verify_distfiles.sh b/scripts/verify_distfiles.sh
index 420318b..9ffc867 100755
--- a/scripts/verify_distfiles.sh
+++ b/scripts/verify_distfiles.sh
@@ -20,8 +20,8 @@ check_distfiles() {
 	wget -O ${sigfile} -q https://archive.mozilla.org/pub/${mybasename}/releases/${myver}/SHA512SUMS
 	gpg --verify ${sigfile}.asc ${sigfile} || exit 1
 
-	grep -e "^DIST ${myname}-${myver}[-\.]" \
-	  -e "^DIST ${mybasename}_.*-${myver}[-\.]" \
+	grep -e "^DIST ${mybasename}-${myver}[-\.]" \
+	  -e "^DIST ${myname}_.*-${myver}[-\.]" \
 	  Manifest |grep -v -- "${myname}-.*-patches-" |awk '{print $7}' |while read ech ; do
 		tmp=$(grep ${ech} Manifest |awk '{print $2}')
 		if grep $ech ${sigfile} &>/dev/null ; then


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [gentoo-commits] proj/mozilla:master commit in: scripts/
@ 2016-04-27 20:48 Ian Stakenvicius
  0 siblings, 0 replies; 21+ messages in thread
From: Ian Stakenvicius @ 2016-04-27 20:48 UTC (permalink / raw
  To: gentoo-commits

commit:     f71aced94424b5aed99fdda631096f8355cb0314
Author:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 27 20:47:58 2016 +0000
Commit:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
CommitDate: Wed Apr 27 20:47:58 2016 +0000
URL:        https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=f71aced9

verify_distfiles.sh: fix bug related to esr distfile matches

 scripts/verify_distfiles.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/verify_distfiles.sh b/scripts/verify_distfiles.sh
index 9ffc867..0cf2d68 100755
--- a/scripts/verify_distfiles.sh
+++ b/scripts/verify_distfiles.sh
@@ -22,6 +22,7 @@ check_distfiles() {
 
 	grep -e "^DIST ${mybasename}-${myver}[-\.]" \
 	  -e "^DIST ${myname}_.*-${myver}[-\.]" \
+	  -e "^DIST ${myname}_.*-${myver/esr/}[-\.]" \
 	  Manifest |grep -v -- "${myname}-.*-patches-" |awk '{print $7}' |while read ech ; do
 		tmp=$(grep ${ech} Manifest |awk '{print $2}')
 		if grep $ech ${sigfile} &>/dev/null ; then


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [gentoo-commits] proj/mozilla:master commit in: scripts/
@ 2016-05-03 15:34 Ian Stakenvicius
  0 siblings, 0 replies; 21+ messages in thread
From: Ian Stakenvicius @ 2016-05-03 15:34 UTC (permalink / raw
  To: gentoo-commits

commit:     1a33c33d296ff49a382d50c857d7a20c6b6ae758
Author:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
AuthorDate: Tue May  3 15:34:08 2016 +0000
Commit:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
CommitDate: Tue May  3 15:34:08 2016 +0000
URL:        https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=1a33c33d

Add script to help automate rolling of langpacks for mozilla packages

 scripts/generate_langpacks.sh | 217 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 217 insertions(+)

diff --git a/scripts/generate_langpacks.sh b/scripts/generate_langpacks.sh
new file mode 100755
index 0000000..5032cdd
--- /dev/null
+++ b/scripts/generate_langpacks.sh
@@ -0,0 +1,217 @@
+#!/bin/bash
+
+#
+# Langpack generator for mozilla packages
+# hacked together by Ian Stakenvicius <axs@gentoo.org>, spring 2016
+#
+# Call this script, providing a path to the ebuild you want to generate the langpacks for as argument1
+#
+
+# source make.conf to get PORTAGE_TMPDIR etc.
+if [[ -e /etc/make.conf ]]; then
+	. /etc/make.conf
+elif [[ -e /etc/portage/make.conf ]]; then
+	. /etc/portage/make.conf
+fi
+
+: ${L10N_STAGING_DIR:=/var/cache/mozl10n}
+: ${LANGPACK_DESTDIR:=${L10N_STAGING_DIR}}
+: ${PORTAGE_TMPDIR:=/var/tmp/portage}
+: ${PORTDIR:=/usr/portage}
+
+ebuild=${1}
+
+if [[ ${ebuild/.ebuild/} == ${ebuild} ]]; then
+  echo "Must specify the full path to the ebuild as arg.1"
+fi
+
+if ! grep mozlinguas_mozconfig ${ebuild} &>/dev/null ; then
+  if ! grep mozlinguas_mozconfig ${ebuild%/*}/../../eclass/$(grep -o 'mozconfig-v[^ ]*' ${ebuild}).eclass &>/dev/null ; then
+    if ! grep mozlinguas_mozconfig ${PORTDIR}/eclass/$(grep -o 'mozconfig-v[^ ]*' ${ebuild}).eclass &>/dev/null ; then
+      echo ""
+      echo "WARNING -- this script will not work unless 'mozlinguas_mozconfig' is called sometime during"
+      echo "src_configure between mozconfig_init and mozconfig_final.  A rough check did not find this call."
+      echo "Press any key to continue or CTRL-C to abort."
+      read target
+    fi
+  fi
+fi
+
+echo ""
+echo "Using ${L10N_STAGING_DIR} for l10n repository cache"
+echo "Using ${LANGPACK_DESTDIR} to store generated langpacks"
+echo ""
+
+target=${ebuild##*/}
+target=${target%.ebuild}
+uctarget=${target^^*}
+uctarget=${uctarget//-/_}
+
+l10nrepo="mozilla-release"
+if [[ ${uctarget/_BETA/} != ${uctarget} ]]; then
+  l10nrepo="mozilla-beta"
+  uctarget=${uctarget/_BETA/b}
+fi
+
+l10n_releasedir="${LANGPACK_DESTDIR%/}/l10n-${target}"
+
+# if the mozlangs.cached file in l10n_releasedir doesn't exist, then
+# create it and checkout all the upstream l10n repositories using mercurial,
+# based on the list of locales in MOZ_LANGS in the ebuild.  If the directory
+# already exists, then assume everything has been checked out and
+# proceed.
+if ! [[ -e ${l10n_releasedir}/mozlangs.cached ]]; then
+  mkdir -p ${l10n_releasedir}
+
+  # source the ebuild so that MOZ_LANGS is available
+  cat ${ebuild} |grep -A 5 'MOZ_LANGS' >${l10n_releasedir}/mozlangs
+  . ${l10n_releasedir}/mozlangs
+
+  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}
+      hg clone "http://hg.mozilla.org/releases/l10n/${l10nrepo}/${abcd}"
+    fi
+    if [[ -d ${L10N_STAGING_DIR%/}/${l10nrepo}/${abcd} ]]; then
+      cd ${L10N_STAGING_DIR%/}/${l10nrepo}/${abcd}
+      hg pull
+      if hg tags |grep ${uctarget//\./_}_RELEASE &>/dev/null; then
+        rev="-r ${uctarget//\./_}_RELEASE"
+      elif hg branches |grep ${uctarget//\./} &>/dev/null; then
+        rev="-r $(hg branches |grep ${uctarget//\./})"
+      else
+        echo "*** WARNING: ${abcd} has no branch or tag matching ${target}, using HEAD"
+        rev=
+      fi
+      hg archive ${rev} -t files ${l10n_releasedir}/src/${abcd}
+    fi
+  done
+  cp ${l10n_releasedir}/mozlangs{,.cached}
+else
+  . ${l10n_releasedir}/mozlangs.cached
+fi
+
+# set some variables based on what package it is
+# so the langpacks can be rolled
+# note -- this sets $S to BUILD_OBJ_DIR, getting the path
+# from the actual ebuild would likely be more stable long-term
+case "${target}" in
+*thunderbird*)
+	category=mail-client
+	langpack_targets=( langpack calendar-langpack )
+	locale_buildpath=mail/locales
+	if grep 'S=.*comm-esr' ${ebuild} &>/dev/null; then
+		S=${PORTAGE_TMPDIR%/}/${category}/${target}/work/comm-esr*/tbird
+	else
+		S=${PORTAGE_TMPDIR%/}/${category}/${target}/work/thunderbird-*/tbird
+	fi
+	;;
+*firefox*)
+	category=www-client
+	langpack_targets=( langpack )
+	locale_buildpath=browser/locales
+	if grep 'S=.*mozilla-esr' ${ebuild} &>/dev/null; then
+		S=${PORTAGE_TMPDIR%/}/${category}/${target}/work/mozilla-esr*/ff
+	else
+		S=${PORTAGE_TMPDIR%/}/${category}/${target}/work/firefox-*/ff
+	fi
+	;;
+*seamonkey*)
+	category=www-client
+	langpack_targets=( langpack )
+	locale_buildpath=suite/locales
+	if grep 'S=.*comm-release' ${ebuild} &>/dev/null; then
+		S=${PORTAGE_TMPDIR%/}/${category}/${target}/work/comm-release*/seamonk
+	else
+		S=${PORTAGE_TMPDIR%/}/${category}/${target}/work/seamonkey-*/seamonk
+	fi
+	;;
+esac
+
+
+# compile a build, with the necessary flags to set up the use of the checked out langpacks
+MOZ_GENERATE_LANGPACKS=1 MOZ_L10N_SOURCEDIR="${l10n_releasedir}/src" ebuild ${ebuild} clean compile
+
+if ! [[ -d ${S} ]]; then
+	die "Need a fully compiled package before langpack generation can be performed"
+fi
+
+
+function package_lightning {
+  cd ${S}/dist/xpi-stage
+  cp -rL lightning stage-lightning
+  for ech in lightning-*; do
+    if [[ -d $ech ]]; then
+      abcd=${ech/lightning-/}
+      if [[ -d ${ech}/chrome/calendar-${abcd} ]]; then
+        cp -t stage-lightning/chrome -rL ${ech}/chrome/{calendar,lightning}-${abcd}
+        grep '^locale ' ${ech}/chrome.manifest |tee -a stage-lightning/chrome.manifest
+      else
+        echo "${abcd} does not have any locale files"
+      fi
+    fi
+  done
+  cd stage-lightning
+  find . -type f -name .mkdir.done -delete
+  vers=$(cat install.rdf |grep 'em:version' |sed -e 's#^.*>\([0-9\.]*\)<.*$#\1#')
+
+  # roll a .xpi that mimicks what upstream would roll if they ever did it again
+  zip -9 -r ${l10n_releasedir}/lightning-${vers}.xpi *
+
+  # make a tarball, as it may be more suitable to extract that instead of using a
+  # faked upstream package
+  cd ..
+  mv stage-lightning lightning-${vers}
+  tar -Jcf ${l10n_releasedir}/lightning-${vers}.tar.xz lightning-${vers}
+}
+
+function package_gdata_provider {
+  cd ${S}/dist/xpi-stage
+  cp -rL gdata-provider stage-gdata-provider
+  for ech in gdata-provider-*; do
+    if [[ -d $ech ]]; then
+      abcd=${ech/gdata-provider-/}
+      if [[ -d ${ech}/chrome/gdata-provider-${abcd} ]]; then
+        cp -t stage-gdata-provider/chrome -rL ${ech}/chrome/gdata-provider-${abcd}
+        grep '^locale ' ${ech}/chrome.manifest |tee -a stage-gdata-provider/chrome.manifest
+      else
+        echo "${abcd} does not have any locale files"
+      fi
+    fi
+  done
+  cd stage-gdata-provider
+  find . -type f -name .mkdir.done -delete
+  vers=$(cat install.rdf |grep 'em:version' |sed -e 's#^.*>\([0-9\.]*\)<.*$#\1#')
+
+  # roll a .xpi that mimicks what upstream would roll if they ever did it again
+  zip -9 -r ${l10n_releasedir}/gdata-provider-${vers}.xpi *
+
+  # make a tarball, as it may be more suitable to extract that instead of using a
+  # faked upstream package
+  cd ..
+  mv stage-gdata-provider gdata-provider-${vers}
+  tar -Jcf ${l10n_releasedir}/gdata-provider-${vers}.tar.xz gdata-provider-${vers}
+}
+
+# run the locales
+for langpack_op in "${langpack_targets[@]}"; do
+  cd ${S}/${locale_buildpath}
+  for ech_l10n in ${l10n_releasedir}/* ; do
+    if [[ -d ${ech_l10n} ]]; then
+      abcd=${ech_l10n##*/}
+      # Need to set LOCALE_MERGEDIR to someplace that doesnt exist -- odd but whatever
+      make ${langpack_op}-${abcd} LOCALE_MERGEDIR=./${abcd}
+    fi
+  done
+
+  # get the langpacks
+  cp -t ${l10n_releasedir}/ ${S}/dist/linux-*/xpi/*lang*
+
+  # package lightning and gdata-provider if calendar was a target
+  if ! [[ ${langpack_op/calendar/} == ${langpack_op} ]]; then
+    package_lightning
+    package_gdata_provider
+  fi
+
+done


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [gentoo-commits] proj/mozilla:master commit in: scripts/
@ 2016-05-05  3:04 Ian Stakenvicius
  0 siblings, 0 replies; 21+ messages in thread
From: Ian Stakenvicius @ 2016-05-05  3:04 UTC (permalink / raw
  To: gentoo-commits

commit:     470f7cb82169d76ea8d463c212aa08e866dad3fb
Author:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
AuthorDate: Thu May  5 03:02:53 2016 +0000
Commit:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
CommitDate: Thu May  5 03:02:53 2016 +0000
URL:        https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=470f7cb8

minor adjustments to two scripts

Added logic to abort if the ebuild specified as argument to generate_langpacks.sh
doesn't exist (typo in the path, etc)

Added another case to the MOZ_ESR check in verify_distfiles.sh to match properly in
older thunderbird-bin ebuilds

 scripts/generate_langpacks.sh | 2 +-
 scripts/verify_distfiles.sh   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/generate_langpacks.sh b/scripts/generate_langpacks.sh
index 5032cdd..bbeb745 100755
--- a/scripts/generate_langpacks.sh
+++ b/scripts/generate_langpacks.sh
@@ -21,7 +21,7 @@ fi
 
 ebuild=${1}
 
-if [[ ${ebuild/.ebuild/} == ${ebuild} ]]; then
+if [[ ${ebuild/.ebuild/} == ${ebuild} ]] || [[ ! -e ${ebuild} ]]; then
   echo "Must specify the full path to the ebuild as arg.1"
 fi
 

diff --git a/scripts/verify_distfiles.sh b/scripts/verify_distfiles.sh
index 0cf2d68..d7fe77d 100755
--- a/scripts/verify_distfiles.sh
+++ b/scripts/verify_distfiles.sh
@@ -9,7 +9,7 @@ check_distfiles() {
 	local myver myname tmp
 	myname=$(qatom $1 |awk '{print $2}')
         mybasename=${myname/-bin/}
-	if grep 'MOZ_ESR=""' $1 &>/dev/null || [[ -n $(grep -L MOZ_ESR $1) ]] ; then
+	if grep -e 'MOZ_ESR=""' -e 'MOZ_ESR="0"' $1 &>/dev/null || [[ -n $(grep -L MOZ_ESR $1) ]] ; then
 		myver=$(qatom $1 |awk '{print $3}')
 	else
 		myver=$(qatom $1 |awk '{print $3 "esr"}')


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [gentoo-commits] proj/mozilla:master commit in: scripts/
@ 2016-05-05 14:45 Ian Stakenvicius
  0 siblings, 0 replies; 21+ messages in thread
From: Ian Stakenvicius @ 2016-05-05 14:45 UTC (permalink / raw
  To: gentoo-commits

commit:     7fc5aa1b3d7cb9b320237769e934f99d75150645
Author:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
AuthorDate: Thu May  5 14:44:31 2016 +0000
Commit:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
CommitDate: Thu May  5 14:44:31 2016 +0000
URL:        https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=7fc5aa1b

scripts/generate_langpacks.sh: fixed a typo in a path

This typo kept langpacks from actually generating so it was kind of a big deal

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

diff --git a/scripts/generate_langpacks.sh b/scripts/generate_langpacks.sh
index bbeb745..8530e34 100755
--- a/scripts/generate_langpacks.sh
+++ b/scripts/generate_langpacks.sh
@@ -197,7 +197,7 @@ function package_gdata_provider {
 # run the locales
 for langpack_op in "${langpack_targets[@]}"; do
   cd ${S}/${locale_buildpath}
-  for ech_l10n in ${l10n_releasedir}/* ; do
+  for ech_l10n in ${l10n_releasedir}/src/* ; do
     if [[ -d ${ech_l10n} ]]; then
       abcd=${ech_l10n##*/}
       # Need to set LOCALE_MERGEDIR to someplace that doesnt exist -- odd but whatever
@@ -205,9 +205,6 @@ for langpack_op in "${langpack_targets[@]}"; do
     fi
   done
 
-  # get the langpacks
-  cp -t ${l10n_releasedir}/ ${S}/dist/linux-*/xpi/*lang*
-
   # package lightning and gdata-provider if calendar was a target
   if ! [[ ${langpack_op/calendar/} == ${langpack_op} ]]; then
     package_lightning
@@ -215,3 +212,7 @@ for langpack_op in "${langpack_targets[@]}"; do
   fi
 
 done
+
+# get the langpacks
+cp -t ${l10n_releasedir}/ ${S}/dist/linux-*/xpi/*lang*
+


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [gentoo-commits] proj/mozilla:master commit in: scripts/
@ 2016-06-02 15:19 Ian Stakenvicius
  0 siblings, 0 replies; 21+ messages in thread
From: Ian Stakenvicius @ 2016-06-02 15:19 UTC (permalink / raw
  To: gentoo-commits

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


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [gentoo-commits] proj/mozilla:master commit in: scripts/
@ 2016-11-22 19:42 Ian Stakenvicius
  0 siblings, 0 replies; 21+ messages in thread
From: Ian Stakenvicius @ 2016-11-22 19:42 UTC (permalink / raw
  To: gentoo-commits

commit:     a8e7efc128222f12c386b7d8e28ff75ae92dcb26
Author:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 22 19:42:29 2016 +0000
Commit:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
CommitDate: Tue Nov 22 19:42:29 2016 +0000
URL:        https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=a8e7efc1

generate-langpacks.sh: strip '_pre*' from the search tag used against the L10N repos, to improve likeliness of a match

 scripts/generate_langpacks.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/generate_langpacks.sh b/scripts/generate_langpacks.sh
index e0552cb..ad9f7cf 100755
--- a/scripts/generate_langpacks.sh
+++ b/scripts/generate_langpacks.sh
@@ -52,6 +52,7 @@ if [[ ${uctarget/_BETA/} != ${uctarget} ]]; then
   l10nrepo="mozilla-beta"
   uctarget=${uctarget/_BETA/b}
 fi
+uctarget=${uctarget%_PRE*}
 
 l10n_releasedir="${LANGPACK_DESTDIR%/}/l10n-${target}"
 


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [gentoo-commits] proj/mozilla:master commit in: scripts/
@ 2017-10-06 17:17 Ian Stakenvicius
  0 siblings, 0 replies; 21+ messages in thread
From: Ian Stakenvicius @ 2017-10-06 17:17 UTC (permalink / raw
  To: gentoo-commits

commit:     31d3ae8bbdb30450b1658dbf864c194d0ffcf2de
Author:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
AuthorDate: Fri Oct  6 17:15:18 2017 +0000
Commit:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
CommitDate: Fri Oct  6 17:15:18 2017 +0000
URL:        https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=31d3ae8b

scripts/generate_langpacks.sh: kill script of mercurial is not found

 scripts/generate_langpacks.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/scripts/generate_langpacks.sh b/scripts/generate_langpacks.sh
index ad9f7cf..c80a326 100755
--- a/scripts/generate_langpacks.sh
+++ b/scripts/generate_langpacks.sh
@@ -21,6 +21,11 @@ fi
 
 ebuild=${1}
 
+if ! hg --version &>/dev/null; then
+	echo "$0 needs mercurial -- aborting"
+	exit 1
+fi
+
 if [[ ${ebuild/.ebuild/} == ${ebuild} ]] || [[ ! -e ${ebuild} ]]; then
   echo "Must specify the full path to the ebuild as arg.1"
 fi


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [gentoo-commits] proj/mozilla:master commit in: scripts/
@ 2017-11-16 20:44 Ian Stakenvicius
  0 siblings, 0 replies; 21+ messages in thread
From: Ian Stakenvicius @ 2017-11-16 20:44 UTC (permalink / raw
  To: gentoo-commits

commit:     5a05a2d2432451e61d59009ba77c5af617317859
Author:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 16 20:44:00 2017 +0000
Commit:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
CommitDate: Thu Nov 16 20:44:11 2017 +0000
URL:        https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=5a05a2d2

verify_distfiles.sh: fix ESR identification (again)

 scripts/verify_distfiles.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/verify_distfiles.sh b/scripts/verify_distfiles.sh
index 9d56cfe..8679b7f 100755
--- a/scripts/verify_distfiles.sh
+++ b/scripts/verify_distfiles.sh
@@ -9,7 +9,7 @@ check_distfiles() {
 	local myver myname tmp
 	myname=$(qatom $1 |awk '{print $2}')
         mybasename=${myname/-bin/}
-	if grep -e 'MOZ_ESR=""' -e 'MOZ_ESR="0"' $1 &>/dev/null || [[ -n $(grep -L MOZ_ESR $1) ]] ; then
+	if grep -e 'MOZ_ESR=""' -e 'MOZ_ESR="0"' $1 &>/dev/null || [[ -n $(grep -L '^MOZ_ESR' $1) ]] ; then
 		myver=$(qatom $1 |awk '{print $3}')
 	else
 		myver=$(qatom $1 |awk '{print $3 "esr"}')


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [gentoo-commits] proj/mozilla:master commit in: scripts/
@ 2019-07-09 20:02 Jory Pratt
  0 siblings, 0 replies; 21+ messages in thread
From: Jory Pratt @ 2019-07-09 20:02 UTC (permalink / raw
  To: gentoo-commits

commit:     09124fbe287f4c2717fea6faef8dcc2562d811ed
Author:     Jory Pratt <anarchy <AT> gentoo <DOT> org>
AuthorDate: Tue Jul  9 18:22:10 2019 +0000
Commit:     Jory Pratt <anarchy <AT> gentoo <DOT> org>
CommitDate: Tue Jul  9 18:22:10 2019 +0000
URL:        https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=09124fbe

get_langs.sh use /bin/bash instead of /bin/sh for compatibility issues

 scripts/get_langs.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/get_langs.sh b/scripts/get_langs.sh
index 50adba4..7098da6 100755
--- a/scripts/get_langs.sh
+++ b/scripts/get_langs.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 # vim: set sts=2 sw=2 et tw=0 :
 
 if test -z "${2}"; then


^ permalink raw reply related	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2019-07-09 20:02 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-05 14:45 [gentoo-commits] proj/mozilla:master commit in: scripts/ Ian Stakenvicius
  -- strict thread matches above, loose matches on Subject: below --
2019-07-09 20:02 Jory Pratt
2017-11-16 20:44 Ian Stakenvicius
2017-10-06 17:17 Ian Stakenvicius
2016-11-22 19:42 Ian Stakenvicius
2016-06-02 15:19 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox