Mnemosyne is a abstract distribution originally designed for ROCKLinux, but currently only support the trunk of OpenSDE.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

35 lines
1.3 KiB

# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: target/mnemosyne/parse-config
# Copyright (C) 2006 - 2008 The OpenSDE Project
# Copyright (C) 2002 - 2006 Alejandro Mery
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
mnemosynedir=$base/target/$SDECFG_TRG_MNEMOSYNE
# tweak config
[ ! -f $mnemosynedir/pkg_conf/$pkg.conf ] || . $mnemosynedir/pkg_conf/$pkg.conf
# append patches
[ ! -f $mnemosynedir/pkg_patch/$pkg.patch ] || var_append patchfiles ' ' $mnemosynedir/pkg_patch/$pkg.patch
unset mnemosynedir
# check overlays
. target/$SDECFG_TRG_MNEMOSYNE/overlay.in
if [ "$SDECFG_TRG_MNEMOSYNE_DOC" == "minimal" ]; then
echo_status "Just minimal documentation files will be flisted"
mnemosyne_flist_just_minimal_docs() {
sed -i -e '/\.\(html\|pdf\|ps\|tex\)$/d;' \
-e '/\.\(gif\|jpg\|png\)$/d;' \
-e "/.*\/share\/\(doc\|gtk-doc\).*\/html\/.*/d;" \
$builddir/flist.txt
}
hook_add postflist 5 "mnemosyne_flist_just_minimal_docs"
fi