summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2021-08-20 11:10:30 +0300
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2021-08-20 12:32:22 +0200
commitac586d1caecaa5be4bce05b073ce4c7bda10f13e (patch)
tree0f8edfa7e9bf7ad5c5be49cd168c20dc9e16d1a1 /bin
parent080e4550257a90597c241f83fd766b99c83ba6e8 (diff)
Make some scripts more portable
Change-Id: Ia89059eea51ca396a7c74143625ac9a6706de198 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120773 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/check-elf-dynamic-objects2
-rwxr-xr-xbin/find-undocumented-classes2
-rwxr-xr-xbin/fixincludeguards.sh2
-rwxr-xr-xbin/gen-boost-headers2
-rwxr-xr-xbin/gen-iwyu-dummy-lib2
-rwxr-xr-xbin/merge-app-bundles2
-rwxr-xr-xbin/moveglobalheaders.sh2
-rwxr-xr-xbin/oss-fuzz-build.sh4
-rwxr-xr-xbin/sanitize-image-links2
-rwxr-xr-xbin/ui-translatable.sh2
-rw-r--r--bin/update/common.sh2
-rwxr-xr-xbin/update/make_full_update.sh2
-rwxr-xr-xbin/update/make_incremental_update.sh2
13 files changed, 15 insertions, 13 deletions
diff --git a/bin/check-elf-dynamic-objects b/bin/check-elf-dynamic-objects
index 9b823ff7d843..523a892e4259 100755
--- a/bin/check-elf-dynamic-objects
+++ b/bin/check-elf-dynamic-objects
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# This file is part of the LibreOffice project.
#
diff --git a/bin/find-undocumented-classes b/bin/find-undocumented-classes
index 8bab72bc977c..3476596c0039 100755
--- a/bin/find-undocumented-classes
+++ b/bin/find-undocumented-classes
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# finds undocumented classes in the current directory (recursive)
diff --git a/bin/fixincludeguards.sh b/bin/fixincludeguards.sh
index 2655534aa416..5e05e944205f 100755
--- a/bin/fixincludeguards.sh
+++ b/bin/fixincludeguards.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
diff --git a/bin/gen-boost-headers b/bin/gen-boost-headers
index efcb712c832a..cf633532ae75 100755
--- a/bin/gen-boost-headers
+++ b/bin/gen-boost-headers
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# This file is part of the LibreOffice project.
#
diff --git a/bin/gen-iwyu-dummy-lib b/bin/gen-iwyu-dummy-lib
index c7d64817db49..3de15f95c31e 100755
--- a/bin/gen-iwyu-dummy-lib
+++ b/bin/gen-iwyu-dummy-lib
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# This file is part of the LibreOffice project.
#
diff --git a/bin/merge-app-bundles b/bin/merge-app-bundles
index 10c6e1d7b836..2a2200f1c44d 100755
--- a/bin/merge-app-bundles
+++ b/bin/merge-app-bundles
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# This file is part of the LibreOffice project.
#
diff --git a/bin/moveglobalheaders.sh b/bin/moveglobalheaders.sh
index ca202832bd6a..0de4cf5fc705 100755
--- a/bin/moveglobalheaders.sh
+++ b/bin/moveglobalheaders.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
diff --git a/bin/oss-fuzz-build.sh b/bin/oss-fuzz-build.sh
index 36390015dbc2..906cadd500d4 100755
--- a/bin/oss-fuzz-build.sh
+++ b/bin/oss-fuzz-build.sh
@@ -1,4 +1,6 @@
-#!/bin/bash -e
+#!/usr/bin/env bash
+
+set -e
if [ -z "${OUT}" ] || [ -z "${SRC}" ] || [ -z "${WORK}" ]; then
echo "OUT, SRC or WORK not set - script expects to be called inside oss-fuzz build env"
diff --git a/bin/sanitize-image-links b/bin/sanitize-image-links
index 6b5a2ec485b0..143eeec3ce55 100755
--- a/bin/sanitize-image-links
+++ b/bin/sanitize-image-links
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# This file is part of the LibreOffice project.
#
diff --git a/bin/ui-translatable.sh b/bin/ui-translatable.sh
index d8188778b10a..e3240826b22c 100755
--- a/bin/ui-translatable.sh
+++ b/bin/ui-translatable.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
diff --git a/bin/update/common.sh b/bin/update/common.sh
index 5bba576c702c..dcdbea8bb815 100644
--- a/bin/update/common.sh
+++ b/bin/update/common.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
diff --git a/bin/update/make_full_update.sh b/bin/update/make_full_update.sh
index cb7de49b23d4..4140ecae6d14 100755
--- a/bin/update/make_full_update.sh
+++ b/bin/update/make_full_update.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
diff --git a/bin/update/make_incremental_update.sh b/bin/update/make_incremental_update.sh
index e76f2159fe2a..31bddabdb082 100755
--- a/bin/update/make_incremental_update.sh
+++ b/bin/update/make_incremental_update.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.