# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/tex4ht/tex4ht.conf # Copyright (C) 2004 - 2022 The T2 SDE Project # Copyright (C) 1998 - 2003 ROCK Linux Project # # This Copyright note is generated by scripts/Create-CopyPatch, # 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 version 2. # --- T2-COPYRIGHT-NOTE-END --- tex4ht_main() { unzip `match_source_file -p tex4ht` echo "Compiling and installing binaries ..." gcc -o t4ht temp/t4ht.c \ -DENVFILE=\"/$prefix/share/texmf/tex4ht/tex4ht.env\" gcc -o tex4ht temp/tex4ht.c \ -DENVFILE=\"/usr/share/texmf/tex4ht/tex4ht.env\" -DHAVE_DIRENT_H cp -fv t4ht tex4ht $bindir/ echo "Installing support scripts ..." cp -fv bin/unix/* $bindir/ # correct double-path and unwanted files before cp ... mv -v texmf/tex4ht/ht-fonts/ht-fonts/* texmf/tex4ht/ht-fonts/ rmdir texmf/tex4ht/ht-fonts/ht-fonts rm -rf texmf/tex4ht/base cp -rv texmf/* $root/$prefix/share/texmf/ # install our own corrected env file ... sde_substitute $confdir/tex4ht.env > \ $root/$prefix/share/texmf/tex4ht/tex4ht.env } autoextract=0 makeopt= makeinstopt= hook_add postmake 5 "tex4ht_main"