File: prepare-parse-prms.bash

package info (click to toggle)
grandorgue 3.17.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 37,928 kB
  • sloc: xml: 63,791; cpp: 53,876; sh: 601; makefile: 8
file content (28 lines) | stat: -rwxr-xr-x 437 bytes parent folder | download | duplicates (2)
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/bash

INSTALL_TESTS=notests
TARGET_CPU=auto
WX_VER=auto

# parse parameters
while [[ $# -gt 0 ]]; do
  if [[ -n "$1" ]]; then
    case $1 in
      amd64 | armhf | arm64)
	TARGET_CPU=$1
	;;
      tests | notests)
	INSTALL_TESTS=$1
	;;
      wx30 | wx32)
	WX_VER=$1
	;;
      *)
	echo "Unknown parameter $1" >&2
	echo "Usage: $(basename $0) [wx30 | wx32] [tests | notests]"
	exit 1
	;;
    esac
  fi
  shift # past a parameter
done