Mercurial > projects > ldc
comparison bin/ldmd @ 1060:599e3d6d0dbd
Remove a dead variable from ldmd.
(It used to be used to pass an extra -help to ldc when no files were
specified, but we handle that in ldc itself now)
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Sun, 08 Mar 2009 09:57:20 +0100 |
parents | a8cb25d478c4 |
children | e40c65bd8c5d |
comparison
equal
deleted
inserted
replaced
1059:7f0e5ae75fcc | 1060:599e3d6d0dbd |
---|---|
12 exit 1 | 12 exit 1 |
13 fi | 13 fi |
14 fi | 14 fi |
15 | 15 |
16 declare -a ARGS | 16 declare -a ARGS |
17 SeenFile=0 | |
18 IDX=0 | 17 IDX=0 |
19 for arg; do | 18 for arg; do |
20 case "$arg" in | 19 case "$arg" in |
21 -debug|-debug=*|-version=*) | 20 -debug|-debug=*|-version=*) |
22 arg="-d$arg" | 21 arg="-d$arg" |
27 --a|--b|--c|--f|--r|--w|--x|--y) | 26 --a|--b|--c|--f|--r|--w|--x|--y) |
28 # "Hidden debug switches" | 27 # "Hidden debug switches" |
29 # Are these ever used? | 28 # Are these ever used? |
30 arg="-hidden-debug${arg:1}" | 29 arg="-hidden-debug${arg:1}" |
31 ;; | 30 ;; |
32 -*) | |
33 ;; | |
34 *) | |
35 SeenFile=1 | |
36 ;; | |
37 esac | 31 esac |
38 ARGS[IDX++]="$arg" | 32 ARGS[IDX++]="$arg" |
39 done | 33 done |
40 | 34 |
41 exec "$LDC" "${ARGS[@]}" | 35 exec "$LDC" "${ARGS[@]}" |