mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
mkspec-wrappper.sh: Minor code beautification
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
559198f765
commit
0cb3f38258
1 changed files with 6 additions and 6 deletions
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh -x
|
||||
#!/bin/bash
|
||||
|
||||
MYNAME=`basename $0`
|
||||
ID=`whoami`
|
||||
|
|
@ -14,7 +14,7 @@ FILTER_DEVEL='/include/.*.h$\|devel\|make\|lib.*\.a$\|lib.*\.so$\|.*\.exp$\|.*\.
|
|||
|
||||
usage()
|
||||
{
|
||||
echo usage: $MYNAME /path/to/mkspec.sh -h [-N name] [-T topdir] [-V version] [-S source] [-R requires] [-P project]
|
||||
echo usage: $MYNAME /path/to/mkspec.sh -h [-N name] [-T topdir] [-V version] [-S source] [-R requires] [-P project] >&2
|
||||
[ "$1" ] && exit $1
|
||||
}
|
||||
|
||||
|
|
@ -37,25 +37,25 @@ case $1 in
|
|||
NAME="$2"
|
||||
shift;;
|
||||
-R)
|
||||
while [ "`echo $2 | cut -c1`" != "-" ]; do
|
||||
while [ "${2:0:1}" != - ]; do
|
||||
REQUIRES_RUN="$REQUIRES_RUN $2"
|
||||
shift
|
||||
done
|
||||
;;
|
||||
-X)
|
||||
while [ "`echo $2 | cut -c1`" != "-" ]; do
|
||||
while [ "${2:0:1}" != - ]; do
|
||||
CONFLICTS_RUN="$CONFLICTS_RUN $2"
|
||||
shift
|
||||
done
|
||||
;;
|
||||
-D)
|
||||
while [ "`echo $2 | cut -c1`" != "-" ]; do
|
||||
while [ "${2:0:1}" != - ]; do
|
||||
REQUIRES_DEVEL="$REQUIRES_DEVEL $2"
|
||||
shift
|
||||
done
|
||||
;;
|
||||
-Y)
|
||||
while [ "`echo $2 | cut -c1`" != "-" ]; do
|
||||
while [ "${2:0:1}" != - ]; do
|
||||
CONFLICTS_DEVEL="$CONFLICTS_DEVEL $2"
|
||||
shift
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue