actually fix all uses of properties.sh
This commit is contained in:
parent
addcfff316
commit
69028bfb72
|
@ -1,6 +1,7 @@
|
|||
#!/bin/sh
|
||||
# check-pie.sh - script to detect non-PIE binaries (which does not work on Android)
|
||||
|
||||
: "${TERMUX_SCRIPTDIR:="$(realpath "$(dirname "$(readlink -f "$0")")/../..")"}"
|
||||
. $(dirname "$(realpath "$0")")/properties.sh
|
||||
|
||||
cd ${TERMUX_PREFIX}/bin
|
||||
|
|
|
@ -12,6 +12,7 @@ version=0.1.0
|
|||
|
||||
set -e
|
||||
|
||||
: "${TERMUX_SCRIPTDIR:="$(realpath "$(dirname "$(readlink -f "$0")")/..")"}"
|
||||
. $(dirname "$(realpath "$0")")/properties.sh
|
||||
|
||||
BOOTSTRAP_TMPDIR=$(mktemp -d "${TMPDIR:-/tmp}/bootstrap-tmp.XXXXXXXX")
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
set -e
|
||||
|
||||
: "${TERMUX_SCRIPTDIR:="$(realpath "$(dirname "$(readlink -f "$0")")/..")"}"
|
||||
. $(dirname "$(realpath "$0")")/properties.sh
|
||||
BOOTSTRAP_TMPDIR=$(mktemp -d "${TMPDIR:-/tmp}/bootstrap-tmp.XXXXXXXX")
|
||||
trap 'rm -rf $BOOTSTRAP_TMPDIR' EXIT
|
||||
|
|
|
@ -115,6 +115,7 @@ lint_package() {
|
|||
TERMUX_PKG_API_LEVEL=24
|
||||
|
||||
if [ -f "$REPO_DIR/scripts/properties.sh" ]; then
|
||||
: "${TERMUX_SCRIPTDIR:=$REPO_DIR}"
|
||||
. "$REPO_DIR/scripts/properties.sh"
|
||||
fi
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
SCRIPT_DIR=$(dirname "$(realpath "$0")")
|
||||
: "${TERMUX_SCRIPTDIR:="$(realpath "$SCRIPT_DIR/..")"}"
|
||||
. "$SCRIPT_DIR"/properties.sh
|
||||
|
||||
check_package() { # path
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
# coreutils and are clearly not a default part of most Linux installations,
|
||||
# or sourcing any other script in our build directories.
|
||||
|
||||
: "${TERMUX_SCRIPTDIR:?TERMUX_SCRIPTDIR not set for properties.sh}"
|
||||
|
||||
TERMUX_SDK_REVISION=9123335
|
||||
TERMUX_ANDROID_BUILD_TOOLS_VERSION=33.0.1
|
||||
# when changing the above:
|
||||
|
@ -18,8 +20,6 @@ TERMUX_NDK_VERSION=$TERMUX_NDK_VERSION_NUM$TERMUX_NDK_REVISION
|
|||
# and update SHA256 sums in scripts/setup-android-sdk.sh
|
||||
# check all packages build and run correctly and bump if needed
|
||||
|
||||
: "${TERMUX_SCRIPTDIR:=$(pwd)}"
|
||||
|
||||
: "${TERMUX_JAVA_HOME:=/usr/lib/jvm/java-8-openjdk-amd64}"
|
||||
export JAVA_HOME=${TERMUX_JAVA_HOME}
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
set -e -u
|
||||
|
||||
: "${TERMUX_PKG_TMPDIR:="/tmp"}"
|
||||
: "${TERMUX_SCRIPTDIR:="$(realpath "$(dirname "$(readlink -f "$0")")/..")"}"
|
||||
|
||||
# Install desired parts of the Android SDK:
|
||||
. $(cd "$(dirname "$0")"; pwd)/properties.sh
|
||||
|
|
|
@ -52,6 +52,7 @@ else
|
|||
fi
|
||||
$SUDO pacman -Syq --needed --noconfirm $PACKAGES
|
||||
|
||||
: "${TERMUX_SCRIPTDIR:="$(realpath "$(dirname "$(readlink -f "$0")")/..")"}"
|
||||
. $(dirname "$(realpath "$0")")/properties.sh
|
||||
$SUDO mkdir -p $TERMUX_PREFIX
|
||||
$SUDO chown -R $(whoami) /data
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
# setup CGCT - Cross Gnu Compiler for Termux
|
||||
# compile glibc-based binaries for Termux
|
||||
|
||||
: "${TERMUX_SCRIPTDIR:="$(realpath "$(dirname "$(readlink -f "$0")")/..")"}"
|
||||
. $(dirname "$(realpath "$0")")/properties.sh
|
||||
. $(dirname "$(realpath "$0")")/build/termux_download.sh
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
: "${TERMUX_SCRIPTDIR:="$(realpath "$(dirname "$(readlink -f "$0")")/..")"}"
|
||||
. $(dirname "$(realpath "$0")")/properties.sh
|
||||
source "$TERMUX_PREFIX/bin/termux-setup-package-manager" || true
|
||||
|
||||
|
|
|
@ -46,6 +46,7 @@ PACKAGES+=" xmlto" # Needed by git's manpage generation
|
|||
PACKAGES+=" zip"
|
||||
|
||||
# Definition of a package manager
|
||||
: "${TERMUX_SCRIPTDIR:="$(realpath "$(dirname "$(readlink -f "$0")")/..")"}"
|
||||
. $(dirname "$(realpath "$0")")/properties.sh
|
||||
source "$TERMUX_PREFIX/bin/termux-setup-package-manager" || true
|
||||
|
||||
|
|
|
@ -323,6 +323,7 @@ rm -f /tmp/py2-get-pip.py
|
|||
$SUDO locale-gen --purge en_US.UTF-8
|
||||
echo -e 'LANG="en_US.UTF-8"\nLANGUAGE="en_US:en"\n' | $SUDO tee -a /etc/default/locale
|
||||
|
||||
: "${TERMUX_SCRIPTDIR:="$(realpath "$(dirname "$(readlink -f "$0")")/..")"}"
|
||||
. $(dirname "$(realpath "$0")")/properties.sh
|
||||
$SUDO mkdir -p $TERMUX_PREFIX
|
||||
$SUDO chown -R $(whoami) /data
|
||||
|
|
Loading…
Reference in New Issue