From ce4a2e6a4a4ee63ae3fe3d5886b33d9283f3887c Mon Sep 17 00:00:00 2001 From: Nat! Date: Wed, 3 Nov 2021 01:42:33 +0100 Subject: [PATCH] remove some files --- .gdb_history | 21 -------- mulle-strip-whitespace | 114 ----------------------------------------- 2 files changed, 135 deletions(-) delete mode 100644 .gdb_history delete mode 100755 mulle-strip-whitespace diff --git a/.gdb_history b/.gdb_history deleted file mode 100644 index 72f4277..0000000 --- a/.gdb_history +++ /dev/null @@ -1,21 +0,0 @@ -b emit_flush -run < x -p *e -q -run -p $'\t'$'\t' -l 24 -b emit_init -run -p $'\t'$'\t' -l 24 -q -b emit_init -run -p $'\t'$'\t' -l 24 -n -n -display/s text_length -display text_length -n -n -p visible_cut -n -p e->start -p e->end -q diff --git a/mulle-strip-whitespace b/mulle-strip-whitespace deleted file mode 100755 index 827e429..0000000 --- a/mulle-strip-whitespace +++ /dev/null @@ -1,114 +0,0 @@ -#! /bin/sh -# -# Copyright (c) 2021 Nat! - Mulle kybernetiK -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# Redistributions of source code must retain the above copyright notice, this -# list of conditions and the following disclaimer. -# -# Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# Neither the name of Mulle kybernetiK nor the names of its contributors -# may be used to endorse or promote products derived from this software -# without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# -[ "${TRACE}" = 'YES' ] && set -x && : "$0" "$@" - - - -#### -# -# Prelude to be placed at top of each script. Rerun this script either in -# bash or zsh, if not already running in either (which can happen!) -# Allows script to run on systems that either have bash (linux) or -# zsh (macOS) only by default. - -if [ "$1" != --no-auto-shell ] -then - if [ -z "${BASH_VERSION}" -a -z "${ZSH_VERSION}" ] - then - exe_shell="`command -v "bash" `" - exe_shell="${exe_shell:-`command -v "zsh" `}" - - script="$0" - - # - # Quote incoming arguments for shell expansion - # - args="" - for arg in "$@" - do - # True bourne sh doesn't know ${a//b/c} and <<< - case "${arg}" in - *\'*) - # Use cat instead of echo to avoid possible echo -n - # problems. Escape single quotes in string. - arg="`cat < as $0, convenient! - # - - exec "${exe_shell:-bash}" -c ". ${script} --no-auto-shell ${args}" "${script}" - fi - if [ ! -z "${BASH_VERSION}" ] - then - set +o posix - fi -else - shift # get rid of --no-auto-shell -fi - - - -# https://stackoverflow.com/questions/369758/how-to-trim-whitespace-from-a-bash-variable -r_trim_whitespace() -{ - RVAL="$*" - RVAL="${RVAL#"${RVAL%%[![:space:]]*}"}" - RVAL="${RVAL%"${RVAL##*[![:space:]]}"}" -} - -# -# This script merely strips off leading and trailing spaces from -# the input. It may add an additional linefeed at the end if the input has -# none. -# -text="`cat "$@"`" - -IFS=$'\n' -while read -r line -do - r_trim_whitespace "${line}" - printf "%s\n" "${RVAL}" -done <<< "${text}" -