OpenSDE Packages Database (without history before r20070)
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.

46 lines
1.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../asciidoc/asciidoc.conf
  5. # Copyright (C) 2007 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. makeopt=
  15. makeinstopt=
  16. sysconfdir=$sysconfdir/asciidoc
  17. vim_confdir=
  18. if pkginstalled vim; then
  19. pkgprefix -t vim
  20. vim_ver=$(pkgprefix ver vim | cut -d. -f'1,2' | tr -d '.' )
  21. vim_confdir=$root$(pkgprefix datadir vim)/vim/vim$vim_ver
  22. fi
  23. hook_add preconf 5 'asciidoc_prepare'
  24. asciidoc_prepare() {
  25. sed -i -e "s,^BINDIR=.*,BINDIR=$root$bindir," \
  26. -e "s,^MANDIR=.*,MANDIR=$root$mandir," \
  27. -e "s,^CONFDIR=.*,CONFDIR=$root$sysconfdir," \
  28. -e "s,^VIM_CONFDIR=.*,VIM_CONFDIR=$vim_confdir," \
  29. install.sh
  30. }
  31. hook_add postmake 5 './install.sh'
  32. hook_add postmake 7 'asciidoc_doc'
  33. asciidoc_doc() {
  34. cp -av examples doc $root$docdir
  35. rm $root$docdir/doc/{images,docbook-xsl.css}
  36. ln -snf $sysconfdir/images $root$docdir/doc
  37. ln -snf $sysconfdir/docbook-xsl.css $root$docdir/doc
  38. }