mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
9c1c89e83c
PR was for version 3.3.5 but several releases have come since then and the MASTER_SITES changed. The latest version required an update to the patch. PR: 201839 Submitted by: ports fury
67 lines
1.4 KiB
Plaintext
67 lines
1.4 KiB
Plaintext
--- liquibase.orig 2015-07-28 18:54:25 UTC
|
|
+++ liquibase
|
|
@@ -1,54 +1,14 @@
|
|
-#!/usr/bin/env bash
|
|
+#!/bin/sh
|
|
|
|
-if [ ! -n "${LIQUIBASE_HOME+x}" ]; then
|
|
- # echo "LIQUIBASE_HOME is not set."
|
|
+LIQUIBASE_HOME=`dirname $0`/../share/liquibase
|
|
|
|
- ## resolve links - $0 may be a symlink
|
|
- PRG="$0"
|
|
- while [ -h "$PRG" ] ; do
|
|
- ls=`ls -ld "$PRG"`
|
|
- link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
- if expr "$link" : '/.*' > /dev/null; then
|
|
- PRG="$link"
|
|
- else
|
|
- PRG=`dirname "$PRG"`"/$link"
|
|
- fi
|
|
- done
|
|
-
|
|
-
|
|
- LIQUIBASE_HOME=`dirname "$PRG"`
|
|
-
|
|
- # make it fully qualified
|
|
- LIQUIBASE_HOME=`cd "$LIQUIBASE_HOME" && pwd`
|
|
- # echo "Liquibase Home: $LIQUIBASE_HOME"
|
|
-fi
|
|
-
|
|
-
|
|
-# build classpath from all jars in lib
|
|
-if [ -f /usr/bin/cygpath ]; then
|
|
- CP=.
|
|
- for i in "$LIQUIBASE_HOME"/liquibase*.jar; do
|
|
- i=`cygpath --windows "$i"`
|
|
- CP="$CP;$i"
|
|
- done
|
|
- for i in "$LIQUIBASE_HOME"/lib/*.jar; do
|
|
- i=`cygpath --windows "$i"`
|
|
- CP="$CP;$i"
|
|
- done
|
|
-else
|
|
- if [[ $(uname) = MINGW* ]]; then
|
|
- CP_SEPARATOR=";"
|
|
- else
|
|
- CP_SEPARATOR=":"
|
|
- fi
|
|
- CP=.
|
|
- for i in "$LIQUIBASE_HOME"/liquibase*.jar; do
|
|
- CP="$CP""$CP_SEPARATOR""$i"
|
|
- done
|
|
- for i in "$LIQUIBASE_HOME"/lib/*.jar; do
|
|
- CP="$CP""$CP_SEPARATOR""$i"
|
|
- done
|
|
-fi
|
|
+CP=.
|
|
+for i in "$LIQUIBASE_HOME"/liquibase*.jar; do
|
|
+ CP="$CP":"$i"
|
|
+done
|
|
+for i in "$LIQUIBASE_HOME"/lib/*.jar; do
|
|
+ CP="$CP":"$i"
|
|
+done
|
|
|
|
# add any JVM options here
|
|
JAVA_OPTS="${JAVA_OPTS-}"
|