aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-01-02 17:27:38 -0300
committerEuAndreh <eu@euandre.org>2024-01-02 17:27:38 -0300
commit46ab8cfff358fbccbdeee3a6f211f8dc74e73aac (patch)
tree18f7f6faad837d02c64cc9a8cb74b3c6c3b07f82
parentInline "INSTALL" into "README" (diff)
downloadgrovel-46ab8cfff358fbccbdeee3a6f211f8dc74e73aac.tar.gz
grovel-46ab8cfff358fbccbdeee3a6f211f8dc74e73aac.tar.xz
tools/: Remove unused files
-rwxr-xr-xtools/install.sh64
-rw-r--r--tools/ld.musl-clang.in51
-rw-r--r--tools/musl-clang.in35
-rw-r--r--tools/musl-gcc.specs.sh37
-rw-r--r--tools/version.sh12
5 files changed, 0 insertions, 199 deletions
diff --git a/tools/install.sh b/tools/install.sh
deleted file mode 100755
index d913b60b..00000000
--- a/tools/install.sh
+++ /dev/null
@@ -1,64 +0,0 @@
-#!/bin/sh
-#
-# This is an actually-safe install command which installs the new
-# file atomically in the new location, rather than overwriting
-# existing files.
-#
-
-usage() {
-printf "usage: %s [-D] [-l] [-m mode] src dest\n" "$0" 1>&2
-exit 1
-}
-
-mkdirp=
-symlink=
-mode=755
-
-while getopts Dlm: name ; do
-case "$name" in
-D) mkdirp=yes ;;
-l) symlink=yes ;;
-m) mode=$OPTARG ;;
-?) usage ;;
-esac
-done
-shift $(($OPTIND - 1))
-
-test "$#" -eq 2 || usage
-src=$1
-dst=$2
-tmp="$dst.tmp.$$"
-
-case "$dst" in
-*/) printf "%s: %s ends in /\n", "$0" "$dst" 1>&2 ; exit 1 ;;
-esac
-
-set -C
-set -e
-
-if test "$mkdirp" ; then
-umask 022
-case "$2" in
-*/*) mkdir -p "${dst%/*}" ;;
-esac
-fi
-
-trap 'rm -f "$tmp"' EXIT INT QUIT TERM HUP
-
-umask 077
-
-if test "$symlink" ; then
-ln -s "$1" "$tmp"
-else
-cat < "$1" > "$tmp"
-chmod "$mode" "$tmp"
-fi
-
-mv -f "$tmp" "$2"
-test -d "$2" && {
-rm -f "$2/$tmp"
-printf "%s: %s is a directory\n" "$0" "$dst" 1>&2
-exit 1
-}
-
-exit 0
diff --git a/tools/ld.musl-clang.in b/tools/ld.musl-clang.in
deleted file mode 100644
index 93763d6b..00000000
--- a/tools/ld.musl-clang.in
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/sh
-cc="@CC@"
-libc_lib="@LIBDIR@"
-ldso="@LDSO@"
-cleared=
-shared=
-userlinkdir=
-userlink=
-
-for x ; do
- test "$cleared" || set -- ; cleared=1
-
- case "$x" in
- -L-user-start)
- userlinkdir=1
- ;;
- -L-user-end)
- userlinkdir=
- ;;
- -L*)
- test "$userlinkdir" && set -- "$@" "$x"
- ;;
- -l-user-start)
- userlink=1
- ;;
- -l-user-end)
- userlink=
- ;;
- crtbegin*.o|crtend*.o)
- set -- "$@" $($cc -print-file-name=$x)
- ;;
- -lgcc|-lgcc_eh)
- file=lib${x#-l}.a
- set -- "$@" $($cc -print-file-name=$file)
- ;;
- -l*)
- test "$userlink" && set -- "$@" "$x"
- ;;
- -shared)
- shared=1
- set -- "$@" -shared
- ;;
- -sysroot=*|--sysroot=*)
- ;;
- *)
- set -- "$@" "$x"
- ;;
- esac
-done
-
-exec $($cc -print-prog-name=ld) -nostdlib "$@" -lc -dynamic-linker "$ldso"
diff --git a/tools/musl-clang.in b/tools/musl-clang.in
deleted file mode 100644
index 623de6f6..00000000
--- a/tools/musl-clang.in
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/sh
-cc="@CC@"
-libc="@PREFIX@"
-libc_inc="@INCDIR@"
-libc_lib="@LIBDIR@"
-thisdir="`cd "$(dirname "$0")"; pwd`"
-
-# prevent clang from running the linker (and erroring) on no input.
-sflags=
-eflags=
-for x ; do
- case "$x" in
- -l*) input=1 ;;
- *) input= ;;
- esac
- if test "$input" ; then
- sflags="-l-user-start"
- eflags="-l-user-end"
- break
- fi
-done
-
-exec $cc \
- -B"$thisdir" \
- -fuse-ld=musl-clang \
- -static-libgcc \
- -nostdinc \
- --sysroot "$libc" \
- -isystem "$libc_inc" \
- -L-user-start \
- $sflags \
- "$@" \
- $eflags \
- -L"$libc_lib" \
- -L-user-end
diff --git a/tools/musl-gcc.specs.sh b/tools/musl-gcc.specs.sh
deleted file mode 100644
index 30492574..00000000
--- a/tools/musl-gcc.specs.sh
+++ /dev/null
@@ -1,37 +0,0 @@
-incdir=$1
-libdir=$2
-ldso=$3
-cat <<EOF
-%rename cpp_options old_cpp_options
-
-*cpp_options:
--nostdinc -isystem $incdir -isystem include%s %(old_cpp_options)
-
-*cc1:
-%(cc1_cpu) -nostdinc -isystem $incdir -isystem include%s
-
-*link_libgcc:
--L$libdir -L .%s
-
-*libgcc:
-libgcc.a%s %:if-exists(libgcc_eh.a%s)
-
-*startfile:
-%{!shared: $libdir/Scrt1.o} $libdir/crti.o crtbeginS.o%s
-
-*endfile:
-crtendS.o%s $libdir/crtn.o
-
-*link:
--dynamic-linker $ldso -nostdlib %{shared:-shared} %{static:-static} %{rdynamic:-export-dynamic}
-
-*esp_link:
-
-
-*esp_options:
-
-
-*esp_cpp_options:
-
-
-EOF
diff --git a/tools/version.sh b/tools/version.sh
deleted file mode 100644
index f1cc5948..00000000
--- a/tools/version.sh
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-
-if test -d .git ; then
-if type git >/dev/null 2>&1 ; then
-git describe --tags --match 'v[0-9]*' 2>/dev/null \
-| sed -e 's/^v//' -e 's/-/-git-/'
-else
-sed 's/$/-git/' < VERSION
-fi
-else
-cat VERSION
-fi