FreeCalypso > hg > fc-selenite
comparison scripts/mk-component.sh @ 19:294b440431fe
scripts/mk-component.sh: no more component flavors
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 15 Jul 2018 22:08:52 +0000 |
parents | f10cbd8a51c4 |
children | 889745bf8615 |
comparison
equal
deleted
inserted
replaced
18:f23ae941a18b | 19:294b440431fe |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 if [ $# -lt 1 -o $# -gt 2 ] | 3 if [ $# != 1 ] |
4 then | 4 then |
5 echo "usage: $0 component-lib [flavor]" 1>&2 | 5 echo "usage: $0 component-lib" 1>&2 |
6 exit 1 | 6 exit 1 |
7 fi | 7 fi |
8 | 8 |
9 LIBNAME="$1" | 9 LIBNAME="$1" |
10 | 10 recipe_file="components/$1" |
11 if [ -n "$2" ] | |
12 then | |
13 recipe_file="components/$1-$2" | |
14 else | |
15 recipe_file="components/$1" | |
16 fi | |
17 | 11 |
18 if [ ! -f "$recipe_file" ] | 12 if [ ! -f "$recipe_file" ] |
19 then | 13 then |
20 echo "Error: $recipe_file not found" 1>&2 | 14 echo "Error: $recipe_file not found" 1>&2 |
21 exit 1 | 15 exit 1 |