diff options
author | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-08-01 11:56:57 +0800 |
---|---|---|
committer | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-08-01 11:56:57 +0800 |
commit | 5e8e096d0d8101d3aa25bc737d9adbeb54fb2557 (patch) | |
tree | 056f998156adef4272de408bba26ba63e90e9799 /java/jdk13/scripts | |
parent | 9b5f741c5c4966e8faa9fda04d913fda39e0da93 (diff) | |
download | marcuscom-ports-5e8e096d0d8101d3aa25bc737d9adbeb54fb2557.tar marcuscom-ports-5e8e096d0d8101d3aa25bc737d9adbeb54fb2557.tar.gz marcuscom-ports-5e8e096d0d8101d3aa25bc737d9adbeb54fb2557.tar.bz2 marcuscom-ports-5e8e096d0d8101d3aa25bc737d9adbeb54fb2557.tar.lz marcuscom-ports-5e8e096d0d8101d3aa25bc737d9adbeb54fb2557.tar.xz marcuscom-ports-5e8e096d0d8101d3aa25bc737d9adbeb54fb2557.tar.zst marcuscom-ports-5e8e096d0d8101d3aa25bc737d9adbeb54fb2557.zip |
X11BASE -> LOCALBASE, gtk12 and mozilla live in LOCALBASE. Bump the
PORTREVISION.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6907 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'java/jdk13/scripts')
-rwxr-xr-x | java/jdk13/scripts/check_wrkdir_links.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/java/jdk13/scripts/check_wrkdir_links.sh b/java/jdk13/scripts/check_wrkdir_links.sh new file mode 100755 index 000000000..bf39f3ec7 --- /dev/null +++ b/java/jdk13/scripts/check_wrkdir_links.sh @@ -0,0 +1,29 @@ +#!/bin/sh +# $FreeBSD: ports/java/jdk13/scripts/check_wrkdir_links.sh,v 1.1 2003/08/22 17:07:08 glewis Exp $ + +WRKDIRPREFIX=$1 +LINUXBASE=$2 + +if [ "x${WRKDIRPREFIX}" = "x" -o "x${LINUXBASE}" = "x" ]; then + exit 0 +fi + +LINUXWRKDIRPREFIX="${LINUXBASE}/${WRKDIRPREFIX}" + +while [ "x${LINUXWRKDIRPREFIX}" != "x" ]; do + if [ -L "${LINUXWRKDIRPREFIX}" -a \ + x`ls -ld "${LINUXWRKDIRPREFIX}" 2>/dev/null | \ + awk '/->/{print $NF;exit 0}END{exit 1}'` = \ + x"${WRKDIRPREFIX}" ]; then + echo "link" + exit 1 + fi + if [ -L "${LINUXWRKDIRPREFIX}" ]; then + LINUXWRKDIRPREFIX=`ls -ld "${LINUXWRKDIRPREFIX}" 2>/dev/null | \ + awk '/->/{print $NF;exit 0}END{exit 1}'` + else + break + fi +done + +exit 0 |