install-macos.command.in
来自「FreeFem++可以生成高质量的有限元网格。可以用于流体力学」· IN 代码 · 共 49 行
IN
49 行
#!/bin/shappl=/Applicationscd `dirname $0`echo "Installtion of Freefem++ " if [ -f OtherMacOsLib.tgz ]; thenfor i in `tar ztf OtherMacOsLib.tgz`; do if [ ! -f "/$i" ]; then echo " the Libary '/$i' don't exist => install (need of admin password)" sudo tar zxvf OtherMacOsLib.tgz -C / $i else echo " the Libary '/$i' exist " fidone # verif .... for i in `tar ztf OtherMacOsLib.tgz`; do if [ ! -f "/$i" ]; then echo " the Libary '/$i' don't exist FreeFEM cannot run (call you adminisator sorry)" echo "Sorry" exit 1; fidonefiecho " copy FreeFem++.app in "$appl" "if [ -d FreeFem++.app ] ; then rsync -avHE --delete FreeFem++.app/ "$appl"/FreeFem++.appfilbin=`cd "$appl"/FreeFem++.app/Contents/bin/; echo *`echo " install $lbin commands in /usr/local/bin (need of admin password)"sudo mkdir -p /usr/local/binsudo ln -s "$appl"/FreeFem++.app/Contents/bin/* /usr/local/binsudo rm /usr/local/bin/ff-c++sudo sed <"$appl"/FreeFem++.app/Contents/bin/ff-c++ >/usr/local/bin/ff-c++ \ -e 's;FFAPPLI_INC;$app/FreeFem++.app/Contents/include;' chmod a+rx /usr/local/bin/ff-c++if [ -d "@ff_prefix_dir@" ] ; then echo Warning "@ff_prefix_dir@" is a dirctory keep this.else rm -f "@ff_prefix_dir@" ln -s "$appl//FreeFem++.app/Contents" "@ff_prefix_dir@" echo link "@ff_prefix_dir@ -> $appl/FreeFem++.app/Contents/ "fiecho "++ FreeFem++ is correctly install in $appl directory."echo " install in /usr/local/bin: $lbin "echo " Thanks for using FreeFem++ v3 "
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?