freebsd-ports/textproc/sml-fxp/files/patch-fxp.sh.in
Thomas Abthorpe 7542e5c15d fxp is a validating XML parser written completely in the functional
programming language SML. fxp can validate both XML 1.0 and XML 1.1
documents. It has a programming interface allowing for production of XML
applications based on fxp. It is installed with four example applications.

WWW: http://www2.informatik.tu-muenchen.de/~berlea/Fxp

PR:		ports/116572
Submitted by:	Timothy Bourke <timbob at bigpond.com>
2007-10-04 03:02:59 +00:00

19 lines
543 B
Bash

--- fxp.sh.in.orig Sat Jun 26 02:43:02 2004
+++ fxp.sh.in Sun Sep 16 15:36:34 2007
@@ -1,13 +1,7 @@
-ARCH_N_OPSYS=`${SML_BINDIR}/.arch-n-opsys`
-if [ "$?" != "0" ]; then
- echo "$CMD: unable to determine architecture/operating system"
- exit 1
-fi
-eval ${ARCH_N_OPSYS}
-
PROG=`basename $0`
HEAP=${FXP_LIBDIR}/_${PROG}
-RUN=${SML_BINDIR}/.run/run.${ARCH}-${OPSYS}
-exec ${RUN} @SMLcmdname=$0 @SMLdebug=/dev/null @SMLload=${HEAP} "$@"
+SMLNJ=yes exec ${SML_BINDIR}/sml @SMLcmdname=$0 @SMLdebug=/dev/null \
+ @SMLload=${HEAP} "$@"
+