|
|
|
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
|
|
#
|
|
|
|
# Filename: package/.../tex4ht/tex4ht.conf
|
|
|
|
# Copyright (C) 2004 - 2006 The T2 SDE Project
|
|
|
|
# Copyright (C) 1998 - 2003 Clifford Wolf
|
|
|
|
#
|
|
|
|
# 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 ---
|
|
|
|
|
|
|
|
|
|
|
|
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 ...
|
|
|
|
rock_substitute $confdir/tex4ht.env > \
|
|
|
|
$root/$prefix/share/texmf/tex4ht/tex4ht.env
|
|
|
|
}
|
|
|
|
|
|
|
|
autoextract=0
|
|
|
|
custmain="tex4ht_main"
|
|
|
|
|