Advertisement
h-collector

php

Oct 29th, 2011
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.37 KB | None | 0 0
  1. flag=""
  2. arg=$1
  3. case $arg in
  4. -dv=*)  arg=${arg/-dv=/}
  5.     VER=(${arg//-/ })
  6.     XARG=
  7.     if [ -n "${VER[0]}" ]; then XARG="${XARG} -m${VER[0]}"; fi
  8.     if [ -n "${VER[1]}" ]; then XARG="${XARG} -v${VER[1]}"; fi
  9.     if [ -n "${VER[2]}" ]; then XARG="${XARG} -t${VER[2]}"; fi
  10.     setphp ${XARG} 1>/dev/null
  11.     flag=true
  12.     esac
  13.   if [ -z "$flag" ]; then php.exe "$@"; else php.exe "${@:2}"; fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement