File: msp430mcu-config.in

package info (click to toggle)
msp430mcu 20120406-2
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 66,788 kB
  • ctags: 627,664
  • sloc: ansic: 605,160; python: 838; sh: 165; makefile: 37; sed: 2
file content (44 lines) | stat: -rw-r--r-- 859 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/sh
#
# Copyright (c) 2011, Peter A. Bigot, licensed under New BSD (see COPYING)
# This file is part of msp430mcu (http://sourceforge.net/projects/mspgcc/)

usage () {
      cat <<EOText
Usage: msp430mcu-config [OPTIONS]
Options:
	--prefix : root of mspgcc/msp430mcu installation
	--version : version of msp430mcu
	--upstream-version : version of TI headers used in msp430mcu
	--scriptpath : absolute path to ldscripts directory
	--incpath : absolute path to include files
EOText
      exit 1
}

if [ $# -eq 0 ] ; then
  usage
fi

for a in "${@}" ; do
  case "${a}"
  in
    --prefix)
      echo @PREFIX@
      ;;
    --scriptpath)
      echo @SCRIPTPATH@
      ;;
    --incpath)
      echo @INCPATH@
      ;;
    --version)
      echo @VERSION@
      ;;
    --upstream-version)
      echo @UPSTREAM_VERSION@
      ;;
    --help|*)
      ;;
  esac
done