-
Notifications
You must be signed in to change notification settings - Fork 2
/
install.sh
executable file
·25 lines (21 loc) · 974 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
cd "$(dirname "$0")" || exit 1
if [ -n "$(which cmake)" ]; then
cmake -P CMakeBBLM.cmake
elif [ -x /Applications/CMake.app/Contents/bin/cmake ]; then
/Applications/CMake.app/Contents/bin/cmake -P CMakeBBLM.cmake
else
echo "CMake is not installed." >&2
exit 1
fi
if [ -d ~/Library/CloudStorage/Dropbox/Application\ Support/BBEdit ]; then
mkdir -v -p ~/Library/CloudStorage/Dropbox/Application\ Support/BBEdit/Language\ Modules
cp -f -v cmake.plist ~/Library/CloudStorage/Dropbox/Application\ Support/BBEdit/Language\ Modules
elif [ -d ~/Dropbox/Application\ Support/BBEdit ]; then
mkdir -v -p ~/Dropbox/Application\ Support/BBEdit/Language\ Modules
cp -f -v cmake.plist ~/Dropbox/Application\ Support/BBEdit/Language\ Modules
else
mkdir -v -p ~/Library/Application\ Support/BBEdit/Language\ Modules
cp -f -v cmake.plist ~/Library/Application\ Support/BBEdit/Language\ Modules
fi
echo "CMake BBEdit language module installed. Please restart BBEdit."