File: lhs2TeXpre

package info (click to toggle)
lhs2tex 1.9-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,544 kB
  • ctags: 28
  • sloc: haskell: 3,364; sh: 2,773; makefile: 349
file content (18 lines) | stat: -rwxr-xr-x 310 bytes parent folder | download | duplicates (18)
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