Skip to content

Commit 82bad21

Browse files
committed
MacOS installer: add coq-env.sh file
1 parent ae5f0ba commit 82bad21

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

macos/coq-env.sh.template

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
if [ -f "/Applications/Coq-Platform@@VERSION@@.app/Contents/Resources/bin/coqc" ]
4+
then
5+
echo "export PATH='/Applications/Coq-Platform@@VERSION@@.app/Contents/Resources/bin':"'"$PATH"'
6+
echo "export COQLIB='/Applications/Coq-Platform@@VERSION@@.app/Contents/Resources/lib/coq'"
7+
fi

macos/create_installer_macos.sh

+5
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,11 @@ ln -sf /Applications _dmg/Applications
400400
sed "s/@@VERSION@@/${COQ_PLATFORM_PACKAGE_PICK_POSTFIX}/" ../macos/coq-shell.command.template > _dmg/coq-shell${COQ_PLATFORM_PACKAGE_PICK_POSTFIX}.command
401401
chmod u+x _dmg/coq-shell${COQ_PLATFORM_PACKAGE_PICK_POSTFIX}.command
402402

403+
##### coq-env.sh #####
404+
405+
sed "s/@@VERSION@@/${COQ_PLATFORM_PACKAGE_PICK_POSTFIX}/" ../macos/coq-env.sh.template > ${BIN_ABSDIR}/coq-env.sh
406+
chmod u+x ${BIN_ABSDIR}/coq-env.sh
407+
403408
##### Installation.html #####
404409

405410
sed "s/@@VERSION@@/${COQ_PLATFORM_PACKAGE_PICK_POSTFIX}/" ../macos/Installation.html.template > _dmg/Installation.html

0 commit comments

Comments
 (0)