1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/tex4ht/tex4ht.conf
3 # Copyright (C) 2004 - 2022 The T2 SDE Project
4 # Copyright (C) 1998 - 2003 ROCK Linux Project
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
14 unzip `match_source_file -p tex4ht`
16 echo "Compiling and installing binaries ..."
17 gcc -o t4ht temp/t4ht.c \
18 -DENVFILE=\"/$prefix/share/texmf/tex4ht/tex4ht.env\"
19 gcc -o tex4ht temp/tex4ht.c \
20 -DENVFILE=\"/usr/share/texmf/tex4ht/tex4ht.env\" -DHAVE_DIRENT_H
21 cp -fv t4ht tex4ht $bindir/
23 echo "Installing support scripts ..."
24 cp -fv bin/unix/* $bindir/
26 # correct double-path and unwanted files before cp ...
27 mv -v texmf/tex4ht/ht-fonts/ht-fonts/* texmf/tex4ht/ht-fonts/
28 rmdir texmf/tex4ht/ht-fonts/ht-fonts
29 rm -rf texmf/tex4ht/base
31 cp -rv texmf/* $root/$prefix/share/texmf/
33 # install our own corrected env file ...
34 sde_substitute $confdir/tex4ht.env > \
35 $root/$prefix/share/texmf/tex4ht/tex4ht.env
41 hook_add postmake 5 "tex4ht_main"