easy-cloud.net - generic server node
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.

40 lines
1.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: target/ecn-node/parse-config
  5. # Copyright (C) 2012 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; version 2 of the License. A copy of the
  12. # GNU General Public License can be found in the file COPYING.
  13. # --- SDE-COPYRIGHT-NOTE-END ---
  14. ecn_apply_pkg_conf() {
  15. [ ! -f "$1"/pkg_conf/$pkg.conf ] || . "$1"/pkg_conf/$pkg.conf
  16. }
  17. # append target specific patch files
  18. ecn_append_patchfiles() {
  19. for x in "$1"/pkg_patch/$pkg/*.patch
  20. do
  21. [ ! -f $x ] || var_append patchfiles ' ' $x
  22. done
  23. }
  24. ecndir=$base/target/$SDECFG_TRG_ECN
  25. ecn_apply_pkg_conf "$ecndir"
  26. ecn_append_patchfiles "$ecndir"
  27. unset ecndir
  28. echo_status "Just minimal documentation files will be flisted"
  29. ecn_flist_just_minimal_docs() {
  30. sed -i -e '/\.\(html\|pdf\|ps\|tex\)$/d;' \
  31. -e '/\.\(gif\|jpg\|png\)$/d;' \
  32. -e "/.*\/share\/\(doc\|gtk-doc\).*\/html\/.*/d;" \
  33. $builddir/flist.txt
  34. }
  35. hook_add postflist 5 "ecn_flist_just_minimal_docs"