summaryrefslogtreecommitdiffstats
path: root/abuild
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-01-11 22:10:56 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-01-11 22:10:56 +0000
commite81ebe1981baf91de1dbacd33f685371063aa0aa (patch)
tree2f282f900d6f855eae365ecb868da154029a22ba /abuild
parent3a201f6600f75b84916eaf6d4fdc74addb32a6ac (diff)
downloadabuild-e81ebe1981baf91de1dbacd33f685371063aa0aa.tar.bz2
abuild-e81ebe1981baf91de1dbacd33f685371063aa0aa.tar.xz
abuild: consider all subdirs named 'include' belong to -dev
Diffstat (limited to 'abuild')
-rwxr-xr-xabuild8
1 files changed, 5 insertions, 3 deletions
diff --git a/abuild b/abuild
index cdfe931..b9dc3c3 100755
--- a/abuild
+++ b/abuild
@@ -346,9 +346,11 @@ mod() {
dev() {
depends="$pkgname $depends_dev"
cd "$pkgdir" || return 0
- for i in cd $(find usr/ -name '*.[acho]' -o -name '*.la' 2>/dev/null)\
- usr/include usr/lib/pkgconfig usr/share/aclocal \
- usr/share/gettext usr/bin/*-config ; do
+ for i in usr/include usr/lib/pkgconfig usr/share/aclocal\
+ usr/share/gettext usr/bin/*-config \
+ $(find -name include -type d) \
+ $(find usr/ -name '*.[acho]' -o -name '*.la' \
+ 2>/dev/null); do
if [ -e "$pkgdir/$i" ] || [ -L "$pkgdir/$i" ]; then
d="$subpkgdir/${i%/*}" # dirname $i
mkdir -p "$d"