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 create-pkg-config.sh (mostly a stub)
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
d744247b53
commit
d840d9ae36
1 changed files with 21 additions and 0 deletions
21
scripts/create-pkg-config.sh
Normal file
21
scripts/create-pkg-config.sh
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
# ytools_config_files="$1"
|
||||
. ytools-functions.sh
|
||||
descr=`_ytools_cat_section "$1" description`
|
||||
|
||||
cat <<-EOT
|
||||
prefix=/usr
|
||||
exec_prefix=${prefix}
|
||||
includedir=${prefix}/include
|
||||
libdir=${exec_prefix}/lib
|
||||
|
||||
Name: foo
|
||||
Description: $descr
|
||||
Version: 1.0.0
|
||||
Cflags: -I${includedir}/foo
|
||||
Libs: -L${libdir} -lfoo
|
||||
EOT
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue