File: drive-apxs

package info (click to toggle)
ocamlnet 4.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 51,764 kB
  • ctags: 16,446
  • sloc: ml: 148,419; ansic: 10,989; sh: 1,885; makefile: 1,355
file content (28 lines) | stat: -rwxr-xr-x 532 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#! /bin/sh

# apxs is not fully compatible with the C compiler. In particular, -g
# does not work as intended

apxs="$1"
shift

options=""
while [ $# -gt 0 ]; do
    case "$1" in
        -c|-W*|-I*|-L*,-l*)
            options="$options $1"
            shift ;;
        -o)
            options="$options -o $2"
            shift 2 ;;
        -*)
            options="$options -Wc,$1"
            shift ;;
        *)
            options="$options $1"
            shift ;;
    esac
done

echo "+ $apxs $options"
exec "$apxs" $options