Browse Source

* improved patterns for not including development files we do not need

at runtime
legacy/multilib
Christian Wiese 17 years ago
parent
commit
075eee4cd1
1 changed files with 14 additions and 4 deletions
  1. +14
    -4
      parse-config

+ 14
- 4
parse-config

@ -2,7 +2,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: target/mnemosyne/parse-config
# Copyright (C) 2006 The OpenSDE Project
# Copyright (C) 2006 - 2007 The OpenSDE Project
# Copyright (C) 2002 - 2006 Alejandro Mery
#
# More information can be found in the files COPYING and README.
@ -56,7 +56,17 @@ mnemosyne_postinstall() {
if [ "$SDECFG_TRG_MNEMOSYNE_DEVELOPMENT" != 1 ]; then
echo_status "No developent files will be flisted"
mnemosyne_flist_no_devel() {
sed -i -e '/\.\(h\|a\|la\|pc\)$/d;' $builddir/flist.txt
}
hook_add postflist 5 "mnemosyne_flist_no_devel"
sed -i -e '/\.\(c\|h\|hpp\|hxx\|a\|la\|m4\|pc\)$/d;' \
$builddir/flist.txt
case "$pkg" in
gcc)
sed -i -e '/^usr\/\(bin\|include\|libexec\|lib\/gcc\|share\)/d;' -e '/lib\/cpp/d;' $builddir/flist.txt
;;
glibc)
sed -i -e '/^usr\/include/d;' $builddir/flist.txt
;;
esac
}
hook_add postflist 5 "mnemosyne_flist_no_devel"
fi

Loading…
Cancel
Save