1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/lang/ETHOberonV4/scripts/MakeStartV4
Steve Price 10111ded09 Initial import ETH Oberon v4.
ETH's Oberon language for Linux.

PR:		7271
Submitted by:	Jerry Hicks <jhicks@glenatl.glenayre.com>
1998-07-20 03:51:46 +00:00

13 lines
322 B
Bash

#!/bin/sh
cat <<EOF > /tmp/$$StartV4
#!/bin/sh
if [ X"\$DISPLAY" = X"" ] ; then
echo this script should be started from within X 1>&2
exit 1;
fi
OBERON=.:PREFIX/lib/ETHOberonV4 PREFIX/lib/ETHOberonV4/oberon &
EOF
sed -e "1,\$ s,PREFIX,$1,g" < /tmp/$$StartV4 > $1/bin/StartV4
rm -f /tmp/$$StartV4
chmod +x $1/bin/StartV4