$OpenBSD$ - fix shebang - set path to standalone jar - use sha1(1) Index: bin/lein-pkg --- bin/lein-pkg.orig +++ bin/lein-pkg @@ -1,4 +1,4 @@ -#!/bin/bash +#!${LOCALBASE}/bin/bash # This variant of the lein script is meant for downstream packagers. # It has all the cross-platform stuff stripped out as well as the @@ -43,7 +43,7 @@ LEIN_JVM_OPTS="${LEIN_JVM_OPTS:-'-Xms64m -Xmx512m'}" # If you're not using an uberjar you'll need to list each dependency # and add them individually to the classpath/bootclasspath as well. -LEIN_JAR=/usr/share/java/leiningen-$LEIN_VERSION-standalone.jar +LEIN_JAR=${LOCALBASE}/share/java/leiningen-$LEIN_VERSION-standalone.jar # Do not use installed leiningen jar during self-compilation if ! { [ "$1" = "compile" ] && @@ -88,12 +88,10 @@ fi if [ "$LEIN_FAST_TRAMPOLINE" != "" ] && [ -r project.clj ]; then INPUTS="$* $(cat project.clj) $(test -f "$LEIN_HOME/profiles.clj" && cat "$LEIN_HOME/profiles.clj")" - if command -v shasum >/dev/null 2>&1; then - SUM="shasum" - elif command -v sha1sum >/dev/null 2>&1; then - SUM="sha1sum" + if command -v sha1 >/dev/null 2>&1; then + SUM="sha1" else - command_not_found "sha1sum or shasum" + command_not_found "sha1" fi INPUT_CHECKSUM=$(echo "$INPUTS" | $SUM | cut -f 1 -d " ")