1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/math/mprime/files/wrapper.sh.in
Alexey Dokuchaev ddebd27959 - Resurrect `math/mprime' and unbreak (stagify)
- Update to version 26.6, the latest for the i386 binary
- Do not mangle version with `0.0.'-prefix, use official one
- Add missing LIB_DEPENDS against `misc/compat9x'
- Define DOCS option and use target helper target to install
- Make installation commands vocal (unmute them)
- Update and tidy up port description text while here
- Drop deprecated @dirrm entry from pkg-plist

TIMESTAMP (mprime266-FreeBSD.tar.gz) = 1302303090
2017-03-29 05:18:30 +00:00

24 lines
492 B
Bash

#!/bin/sh
PREFIX="%%PREFIX%%"
PROGRAM="${0}"
DIRNAME=${HOME}/.mprime
if [ ! -d ${DIRNAME} ]
then
mkdir -p ${DIRNAME}
fi
if [ ! -h ${DIRNAME}/${PROGRAM##*/} ]
then
ln -sf ${PREFIX}/bin/${PROGRAM##*/}-real ${DIRNAME}/${PROGRAM##*/}
fi
echo " ${*} " | grep " \-createdironly " ||
{
cd ${DIRNAME} &&
echo Running under ${DIRNAME} &&
exec ./${PROGRAM##*/} "${@}" ||
echo PROBLEM. Cannot create directory ${DIRNAME}, make sure you have the proper permissions to create it and try again
}