File: lhs2TeXpre

package info (click to toggle)
lhs2tex 1.24-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,976 kB
  • sloc: haskell: 4,408; makefile: 314; sh: 221
file content (18 lines) | stat: -rwxr-xr-x 309 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /bin/sh

# wrapper for use with GHC/GHCi
# -pgmF lhs2TeXpre -F

LHSHOME=..

if [ "$1" = "$2" ]; then
  cp "$2" "$3"
else
  if grep -q "^%include" "$1"; then
    TARGET=$3
    # echo Calling with TARGET=${TARGET}
    ${LHSHOME}/lhs2TeX --newcode -P${LHSHOME}: $1 > ${TARGET}
  else
    cp "$2" "$3"
  fi
fi