Changeset 1962
- Timestamp:
- 03/25/07 12:07:22 (2 years ago)
- Files:
-
- trunk/lib/install-dmd.sh (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/install-dmd.sh
r1912 r1962 14 14 # 1. The origin of this software must not be misrepresented; you must not claim 15 15 # that you wrote the original software. If you use this software in a 16 # product, an acknowledgment in the product documentation would be 16 # product, an acknowledgment in the product documentation would be 17 17 # appreciated but is not required. 18 18 # … … 251 251 cd ../ 252 252 fi 253 253 254 254 if [ -f "${PREFIX}/lib/libphobos.a" ] 255 255 then … … 304 304 rm -rf tango || die 1 "Error while cleaning up." 305 305 } 306 306 307 307 cleanup_dmd() { 308 308 echo "Cleaning up tango/trunk/dmd/..." … … 338 338 ## TO BE DONE ## 339 339 #uninstall_tango() { 340 340 341 341 #} 342 342 … … 360 360 fi 361 361 362 if [ -z `"echo ${PREFIX} | grep '^/'"`]362 if [ -z "`echo ${PREFIX} | grep '^/'`" ] 363 363 then 364 364 PREFIX="`pwd`${PREFIX}" … … 366 366 367 367 # Check for flags 368 for i in $*; 368 for i in $*; 369 369 do 370 370 case "$i" in … … 400 400 --version=*) 401 401 # This version is /not/ 1.0 ready (only supporting 0.123 thingies) 402 VERSION=`echo -n "${i}" | sed -n 's/^--version=[0-9]\?\.\?\([0-9]\{3\}\)/\1/p'` 402 VERSION=`echo -n "${i}" | sed -n 's/^--version=[0-9]\?\.\?\([0-9]\{3\}\)/\1/p'` 403 403 404 404 # Don't use this one yet - it isn't tested... 405 405 #VERSION=`echo -n "${i}" | sed -n 's/^--version=\(\([1-9]\{1\}\)\.\{1\}\([0-9]\{1,3\}\)|\([0-9]\?\.\?\([0-9]\{3\}\)\)\)/\1/p'` 406 406 407 407 if [ -n "${VERSION}" ] 408 408 then












