diff --git a/ffmpeg-android-maker.sh b/ffmpeg-android-maker.sh index 9b0ed69..19b2780 100755 --- a/ffmpeg-android-maker.sh +++ b/ffmpeg-android-maker.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + # Defining essential directories # The root of the project diff --git a/scripts/export-build-variables.sh b/scripts/export-build-variables.sh index 276b942..f18b5fc 100755 --- a/scripts/export-build-variables.sh +++ b/scripts/export-build-variables.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + function max() { [ $1 -ge $2 ] && echo "$1" || echo "$2" } diff --git a/scripts/export-host-variables.sh b/scripts/export-host-variables.sh index 0efb927..1ce6575 100755 --- a/scripts/export-host-variables.sh +++ b/scripts/export-host-variables.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + # Defining a toolchain directory's name according to the current OS. # Assume that proper version of NDK is installed # and is referenced by ANDROID_NDK_HOME environment variable diff --git a/scripts/ffmpeg/build.sh b/scripts/ffmpeg/build.sh index f721bc8..603d79c 100755 --- a/scripts/ffmpeg/build.sh +++ b/scripts/ffmpeg/build.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + case $ANDROID_ABI in armeabi-v7a) EXTRA_BUILD_CONFIGURATION_FLAGS=--enable-thumb diff --git a/scripts/ffmpeg/download.sh b/scripts/ffmpeg/download.sh index 554baa4..bdb5819 100755 --- a/scripts/ffmpeg/download.sh +++ b/scripts/ffmpeg/download.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + # Script to download FFmpeg's source code # Relies on FFMPEG_SOURCE_TYPE and FFMPEG_SOURCE_VALUE variables # to choose the valid origin and version diff --git a/scripts/libaom/build.sh b/scripts/libaom/build.sh index 9552fd4..723e3c2 100755 --- a/scripts/libaom/build.sh +++ b/scripts/libaom/build.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + # libaom doesn't support building while being in its root directory CMAKE_BUILD_DIR=aom_build_${ANDROID_ABI} rm -rf ${CMAKE_BUILD_DIR} diff --git a/scripts/libaom/download.sh b/scripts/libaom/download.sh index deab913..4229dea 100755 --- a/scripts/libaom/download.sh +++ b/scripts/libaom/download.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + # Script to download AV1 Codec Library's source code # Exports SOURCES_DIR_libaom - path where actual sources are stored diff --git a/scripts/libdav1d/build.sh b/scripts/libdav1d/build.sh index 7d90f64..9bc00a5 100755 --- a/scripts/libdav1d/build.sh +++ b/scripts/libdav1d/build.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + CROSS_FILE_NAME=crossfile-${ANDROID_ABI}.meson rm ${CROSS_FILE_NAME} diff --git a/scripts/libdav1d/download.sh b/scripts/libdav1d/download.sh index 2174867..fbc7655 100755 --- a/scripts/libdav1d/download.sh +++ b/scripts/libdav1d/download.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + # Script to download Dav1d's source code # Exports SOURCES_DIR_libdav1d - path where actual sources are stored diff --git a/scripts/libmp3lame/build.sh b/scripts/libmp3lame/build.sh index c8f64f8..1c2d0e3 100755 --- a/scripts/libmp3lame/build.sh +++ b/scripts/libmp3lame/build.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + ./configure \ --prefix=${INSTALL_DIR} \ --target=${TARGET} \ diff --git a/scripts/libmp3lame/download.sh b/scripts/libmp3lame/download.sh index cff983c..46cf5d6 100755 --- a/scripts/libmp3lame/download.sh +++ b/scripts/libmp3lame/download.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + # Script to download Lame's source code # Exports SOURCES_DIR_libmp3lame - path where actual sources are stored diff --git a/scripts/parse-arguments.sh b/scripts/parse-arguments.sh index 6404933..a77be3c 100755 --- a/scripts/parse-arguments.sh +++ b/scripts/parse-arguments.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + # This script parses arguments that were passed to ffmpeg-android-maker.sh # and exports a bunch of varables that are used elsewhere.