Fix shebang for termux.
Termux doesn't have a /bin/sh. So we needto use $SHELL. Keep /bin/sh as much as possible.
This commit is contained in:
parent
1073ddb120
commit
a827807a13
60 changed files with 69 additions and 59 deletions
10
configure.ac
10
configure.ac
|
@ -459,6 +459,16 @@ case "$build_os" in
|
||||||
esac
|
esac
|
||||||
AC_SUBST(BUILD_EXEEXT)
|
AC_SUBST(BUILD_EXEEXT)
|
||||||
|
|
||||||
|
# In some build environments like termux /bin/sh is not a valid
|
||||||
|
# shebang. Use $SHELL instead if it's executable and /bin/sh isn't
|
||||||
|
BUILD_SHEBANG=/bin/sh
|
||||||
|
for she in /bin/sh "$SHELL"; do
|
||||||
|
if test -x "$she" ; then
|
||||||
|
BUILD_SHEBANG="$she"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
AC_SUBST(BUILD_SHEBANG)
|
||||||
|
|
||||||
# For gnulib.
|
# For gnulib.
|
||||||
gl_INIT
|
gl_INIT
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Copyright (C) 2010 Free Software Foundation, Inc.
|
# Copyright (C) 2010 Free Software Foundation, Inc.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Copyright (C) 2010 Free Software Foundation, Inc.
|
# Copyright (C) 2010 Free Software Foundation, Inc.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!@BUILD_SHEBANG@
|
||||||
|
|
||||||
# User-controllable options
|
# User-controllable options
|
||||||
grub_modinfo_target_cpu=@target_cpu@
|
grub_modinfo_target_cpu=@target_cpu@
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
# Copyright (C) 2013 Free Software Foundation, Inc.
|
# Copyright (C) 2013 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# GRUB is free software: you can redistribute it and/or modify
|
# GRUB is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!@BUILD_SHEBANG@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
# Copyright (C) 2013 Free Software Foundation, Inc.
|
# Copyright (C) 2013 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# GRUB is free software: you can redistribute it and/or modify
|
# GRUB is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
# Copyright (C) 2013 Free Software Foundation, Inc.
|
# Copyright (C) 2013 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# GRUB is free software: you can redistribute it and/or modify
|
# GRUB is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!@BUILD_SHEBANG@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
# Copyright (C) 2013 Free Software Foundation, Inc.
|
# Copyright (C) 2013 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# GRUB is free software: you can redistribute it and/or modify
|
# GRUB is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!@BUILD_SHEBANG@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
true
|
true
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!@BUILD_SHEBANG@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!@BUILD_SHEBANG@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!@BUILD_SHEBANG@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
# Copyright (C) 2013 Free Software Foundation, Inc.
|
# Copyright (C) 2013 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# GRUB is free software: you can redistribute it and/or modify
|
# GRUB is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
# Copyright (C) 2014 Free Software Foundation, Inc.
|
# Copyright (C) 2014 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# GRUB is free software: you can redistribute it and/or modify
|
# GRUB is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!@BUILD_SHEBANG@
|
||||||
|
|
||||||
cd '@srcdir@'
|
cd '@srcdir@'
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
. "@builddir@/grub-core/modinfo.sh"
|
. "@builddir@/grub-core/modinfo.sh"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Run GRUB script in a Qemu instance
|
# Run GRUB script in a Qemu instance
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
. "@builddir@/grub-core/modinfo.sh"
|
. "@builddir@/grub-core/modinfo.sh"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
. "@builddir@/grub-core/modinfo.sh"
|
. "@builddir@/grub-core/modinfo.sh"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
|
|
||||||
# create a randome file
|
# create a randome file
|
||||||
empty="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 1
|
empty="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 1
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh -e
|
#! @BUILD_SHEBANG@ -e
|
||||||
|
|
||||||
# Run GRUB script in a Qemu instance
|
# Run GRUB script in a Qemu instance
|
||||||
# Copyright (C) 2010 Free Software Foundation, Inc.
|
# Copyright (C) 2010 Free Software Foundation, Inc.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
. "@builddir@/grub-core/modinfo.sh"
|
. "@builddir@/grub-core/modinfo.sh"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
@builddir@/grub-script-check <<EOF
|
@builddir@/grub-script-check <<EOF
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
|
|
||||||
# Run GRUB script in a Qemu instance
|
# Run GRUB script in a Qemu instance
|
||||||
# Copyright (C) 2010 Free Software Foundation, Inc.
|
# Copyright (C) 2010 Free Software Foundation, Inc.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
@builddir@/grub-script-check << EOF
|
@builddir@/grub-script-check << EOF
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Run GRUB script in a Qemu instance
|
# Run GRUB script in a Qemu instance
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
@builddir@/grub-script-check <<EOF
|
@builddir@/grub-script-check <<EOF
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# grub-script-check refuses to pass a file with no commands; this usually
|
# grub-script-check refuses to pass a file with no commands; this usually
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
# Copyright (C) 2013 Free Software Foundation, Inc.
|
# Copyright (C) 2013 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# GRUB is free software: you can redistribute it and/or modify
|
# GRUB is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
# Copyright (C) 2013 Free Software Foundation, Inc.
|
# Copyright (C) 2013 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# GRUB is free software: you can redistribute it and/or modify
|
# GRUB is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
. "@builddir@/grub-core/modinfo.sh"
|
. "@builddir@/grub-core/modinfo.sh"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!@BUILD_SHEBANG@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!@BUILD_SHEBANG@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!@BUILD_SHEBANG@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!@BUILD_SHEBANG@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
# Copyright (C) 2013 Free Software Foundation, Inc.
|
# Copyright (C) 2013 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# GRUB is free software: you can redistribute it and/or modify
|
# GRUB is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!@BUILD_SHEBANG@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
# Copyright (C) 2013 Free Software Foundation, Inc.
|
# Copyright (C) 2013 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# GRUB is free software: you can redistribute it and/or modify
|
# GRUB is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!@BUILD_SHEBANG@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!@BUILD_SHEBANG@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
# Copyright (C) 2013 Free Software Foundation, Inc.
|
# Copyright (C) 2013 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# GRUB is free software: you can redistribute it and/or modify
|
# GRUB is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Copyright (C) 2010 Free Software Foundation, Inc.
|
# Copyright (C) 2010 Free Software Foundation, Inc.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
# Copyright (C) 2013 Free Software Foundation, Inc.
|
# Copyright (C) 2013 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# GRUB is free software: you can redistribute it and/or modify
|
# GRUB is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
# Copyright (C) 2013 Free Software Foundation, Inc.
|
# Copyright (C) 2013 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# GRUB is free software: you can redistribute it and/or modify
|
# GRUB is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!@BUILD_SHEBANG@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!@BUILD_SHEBANG@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!@BUILD_SHEBANG@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!@BUILD_SHEBANG@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!@BUILD_SHEBANG@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
|
|
||||||
# create a randome file
|
# create a randome file
|
||||||
file="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 1
|
file="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 1
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!@BUILD_SHEBANG@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
# Copyright (C) 2013 Free Software Foundation, Inc.
|
# Copyright (C) 2013 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# GRUB is free software: you can redistribute it and/or modify
|
# GRUB is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!@BUILD_SHEBANG@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Compares GRUB script output with BASH output.
|
# Compares GRUB script output with BASH output.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Run GRUB script in a Qemu instance
|
# Run GRUB script in a Qemu instance
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!@BUILD_SHEBANG@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/sh
|
#! @BUILD_SHEBANG@
|
||||||
# Copyright (C) 2013 Free Software Foundation, Inc.
|
# Copyright (C) 2013 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# GRUB is free software: you can redistribute it and/or modify
|
# GRUB is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!@BUILD_SHEBANG@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue