1 |
commit: 470f7cb82169d76ea8d463c212aa08e866dad3fb |
2 |
Author: Ian Stakenvicius <axs <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 5 03:02:53 2016 +0000 |
4 |
Commit: Ian Stakenvicius <axs <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 5 03:02:53 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=470f7cb8 |
7 |
|
8 |
minor adjustments to two scripts |
9 |
|
10 |
Added logic to abort if the ebuild specified as argument to generate_langpacks.sh |
11 |
doesn't exist (typo in the path, etc) |
12 |
|
13 |
Added another case to the MOZ_ESR check in verify_distfiles.sh to match properly in |
14 |
older thunderbird-bin ebuilds |
15 |
|
16 |
scripts/generate_langpacks.sh | 2 +- |
17 |
scripts/verify_distfiles.sh | 2 +- |
18 |
2 files changed, 2 insertions(+), 2 deletions(-) |
19 |
|
20 |
diff --git a/scripts/generate_langpacks.sh b/scripts/generate_langpacks.sh |
21 |
index 5032cdd..bbeb745 100755 |
22 |
--- a/scripts/generate_langpacks.sh |
23 |
+++ b/scripts/generate_langpacks.sh |
24 |
@@ -21,7 +21,7 @@ fi |
25 |
|
26 |
ebuild=${1} |
27 |
|
28 |
-if [[ ${ebuild/.ebuild/} == ${ebuild} ]]; then |
29 |
+if [[ ${ebuild/.ebuild/} == ${ebuild} ]] || [[ ! -e ${ebuild} ]]; then |
30 |
echo "Must specify the full path to the ebuild as arg.1" |
31 |
fi |
32 |
|
33 |
|
34 |
diff --git a/scripts/verify_distfiles.sh b/scripts/verify_distfiles.sh |
35 |
index 0cf2d68..d7fe77d 100755 |
36 |
--- a/scripts/verify_distfiles.sh |
37 |
+++ b/scripts/verify_distfiles.sh |
38 |
@@ -9,7 +9,7 @@ check_distfiles() { |
39 |
local myver myname tmp |
40 |
myname=$(qatom $1 |awk '{print $2}') |
41 |
mybasename=${myname/-bin/} |
42 |
- if grep 'MOZ_ESR=""' $1 &>/dev/null || [[ -n $(grep -L MOZ_ESR $1) ]] ; then |
43 |
+ if grep -e 'MOZ_ESR=""' -e 'MOZ_ESR="0"' $1 &>/dev/null || [[ -n $(grep -L MOZ_ESR $1) ]] ; then |
44 |
myver=$(qatom $1 |awk '{print $3}') |
45 |
else |
46 |
myver=$(qatom $1 |awk '{print $3 "esr"}') |