mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
create-pkg-config.sh: Add versions to requires directives in package-config
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
6398de69b4
commit
91f2c4505e
1 changed files with 19 additions and 2 deletions
|
|
@ -8,6 +8,23 @@ try_assign_sec()
|
|||
[ -n "$val" ] && eval $3=\"$val\"
|
||||
}
|
||||
|
||||
cleanup_requires()
|
||||
{
|
||||
# echo $@ | sed -e '
|
||||
# s/\([a-zA-Z0-9.-]\+\) *\([a-zA-Z0-9.-]\+\) */\1, \2 /g
|
||||
# #s/\([a-zA-Z-]\+\) *\([<>=]*\) *\([a-zA-Z0-9\.-]*\)/\1 \2 \3,/g
|
||||
# #s/,,/,/g
|
||||
# #s/,$//
|
||||
# '
|
||||
echo $@ | sed -e '
|
||||
s/^ //g
|
||||
s/\([ ]\|$\)\+/, /g
|
||||
s/, $//
|
||||
s/, $//
|
||||
s/ *,* *\([<>=]\+\) *,* */ \1 /g
|
||||
'
|
||||
}
|
||||
|
||||
usage()
|
||||
{
|
||||
cat <<- EOT | sed 's/^ *|//'
|
||||
|
|
@ -110,8 +127,8 @@ Version: $version
|
|||
EOT
|
||||
[ "$cflags" ] && echo "Cflags: $cflags"
|
||||
[ "$libflags" ] && echo "Libs: $libflags"
|
||||
[ "$requires_run" ] && echo "Requires: $requires_run"
|
||||
[ "$requires_build" ] && echo "Requires.private: $requires_build"
|
||||
[ "$requires_run" ] && echo "Requires: `cleanup_requires $requires_run`"
|
||||
[ "$requires_build" ] && echo "Requires.private: `cleanup_requires $requires_build`"
|
||||
# [ "$requires_devel" ] && ?? # not sure what to do with this
|
||||
|
||||
exit 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue