Unverified Commit 10c03061 authored by Emily's avatar Emily Committed by GitHub
Browse files

treewide: remove some unused shell scripts / hooks (#356254)

parents 2867f69e db3eb485
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
addRepDLLoadPath () {
    addToSearchPath REP_DL_LOAD_PATH $1/lib/rep
}

addEnvHooks "$hostOffset" addRepDLLoadPath
+0 −4
Original line number Diff line number Diff line
# set -e

source ./utils.sh
addEnvHooks "$hostOffset" addToLuaPath
+0 −17
Original line number Diff line number Diff line
# Setup hook for writing octave packages that are run-time dependencies for
# another package to a nix-support file.
# `echo`s the full path name to the package derivation that is required.
echo "Sourcing octave-write-required-octave-packages-hook.sh"

octaveWriteRequiredOctavePackagesPhase() {
    echo "Executing octaveWriteRequiredOctavePackagesPhase"

    mkdir -p $out/nix-support
    echo ${requiredOctavePackages} > $out/nix-support/required-octave-packages
}

# Yes its a bit long...
if [ -z "${dontWriteRequiredOctavePackagesPhase-}" ]; then
    echo "Using octaveWriteRequiredOctavePackagesPhase"
    appendToVar preDistPhases octaveWriteRequiredOctavePackagesPhase
fi
+0 −5
Original line number Diff line number Diff line
addXdgData() {
    addToSearchPath XDG_DATA_DIRS "$1/share"
}

addEnvHooks "$targetOffset" addXdgData
+0 −24
Original line number Diff line number Diff line
if [ -e "$NIX_ATTRS_SH_FILE" ]; then . "$NIX_ATTRS_SH_FILE"; elif [ -f .attrs.sh ]; then . .attrs.sh; fi
source $stdenv/setup

tar zxvf $src
cd antlr-*
cd lib

mkdir -p $out/lib/antlr
mkdir -p $out/bin

cp *.jar $out/lib/antlr

classpath=""
for jar in $out/lib/antlr/*.jar; do
  classpath="$classpath:$jar"
done

cat > $out/bin/antlr <<EOF
#! $SHELL

$jre/bin/java -cp $classpath -Xms200M -Xmx400M org.antlr.Tool \$*
EOF

chmod u+x $out/bin/antlr
Loading