head	1.2;
access;
symbols
	RELEASE_7_4_0:1.1
	RELEASE_8_2_0:1.1
	RELEASE_6_EOL:1.1
	RELEASE_8_1_0:1.1;
locks; strict;
comment	@# @;


1.2
date	2011.06.02.20.41.14;	author pav;	state dead;
branches;
next	1.1;

1.1
date	2010.05.02.08.30.09;	author miwi;	state Exp;
branches;
next	;


desc
@@


1.2
log
@- Update to 4.4
- Transfer maintainership to the submitter

PR:		ports/156885
Submitted by:	geoffroy desvernay <dgeo@@centrale-marseille.fr>
Approved by:	Thomas Sandford <freebsduser@@paradisegreen.co.uk> (maintainer)
@
text
@--- drush.orig	2010-04-29 21:25:16.000000000 +0100
+++ drush	2010-04-29 21:32:18.000000000 +0100
@@@@ -1,51 +1,16 @@@@
-#!/usr/bin/env sh
+#!/bin/sh
 # $Id: drush,v 1.17 2010/04/14 22:29:33 weitzman Exp $
 #
 # This script is a simple wrapper that will run Drush with the most appropriate
 # php executable it can find.
 #
 
-# Get the absolute path of this executable
-ORIGDIR=$(pwd)
-SELF_PATH=$(cd -P -- "$(dirname -- "$0")" && pwd -P) && SELF_PATH=$SELF_PATH/$(basename -- "$0")
-
-# Resolve symlinks - this is the equivalent of "readlink -f", but also works with non-standard OS X readlink.
-while [ -h $SELF_PATH ]; do
-    # 1) cd to directory of the symlink
-    # 2) cd to the directory of where the symlink points
-    # 3) Get the pwd
-    # 4) Append the basename
-    DIR=$(dirname -- "$SELF_PATH")
-    SYM=$(readlink $SELF_PATH)
-    SELF_PATH=$(cd $DIR && cd $(dirname -- "$SYM") && pwd)/$(basename -- "$SYM")
-done
-cd "$ORIGDIR"
-
 # Build the path to drush.php.
-SCRIPT_PATH=$(dirname $SELF_PATH)/drush.php
-case $(uname -a) in
-  CYGWIN*)
-    SCRIPT_PATH=$(cygpath -w -a -- "$SCRIPT_PATH") ;;
-esac
+SCRIPT_PATH=XXXDATADIRXXX/drush.php
 
 # If not exported and term is set determine and export the number of columns.
 if [ -z $COLUMNS ] && [ -n "$TERM" ]; then
   export COLUMNS=$(tput cols)
 fi
 
-# Special case for *AMP installers, since they normally don't set themselves as the default cli php out of the box.
-for php in /Applications/MAMP/bin/php5/bin/php /opt/lampp/bin/php /Applications/xampp/xamppfiles/bin/php /Applications/acquia-drupal/php/bin/php; do 
-  if [ -x $php ]; then
-    exec $php $SCRIPT_PATH --php="$php" "$@@"
-  fi
-done
-
-# We check for a command line (cli) version of php, and if found use that.
-which php-cli >/dev/null 2>&1
-if [ "$?" = 0 ] ; then
-  exec php-cli $SCRIPT_PATH --php="php-cli" "$@@"
-else
-  # Alternatively we run with straight php, which works on most other systems.
-  # The --php=`which php` is for Dreamhost, which behaves oddly.  See http://drupal.org/node/662926
-  exec php $SCRIPT_PATH --php=`which php` "$@@"
-fi
+exec php $SCRIPT_PATH --php=`which php` "$@@"
@


1.1
log
@Drush is a command line shell and Unix scripting interface for the Drupal CMS
and is designed to make life easier for those who spend some of their working
hours hacking away at the command prompt.

WWW: http://drupal.org/project/drush

PR:		ports/146185
Submitted by:	Thomas Sandford <freebsduser at paradisegreen.co.uk>
@
text
@@

