-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathMakefile
12 lines (11 loc) · 811 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
install:
[ -d /usr/local/bin ] || ( [ ! -d /usr/local/bin/ ] && mkdir -p /usr/local/bin )
cp ./Contents/MacOS/startupRAMDiskandCacheMover.sh /usr/local/bin/
cp ./OSXRamDisk.plist ~/Library/LaunchAgents/
[ -f ~/Library/LaunchAgents/OSXRamDisk.plist ] && launchctl load -w ~/Library/LaunchAgents/OSXRamDisk.plist
uninstall:
[ -f ~/Library/LaunchAgents/OSXRamDisk.plist ] && launchctl unload -w ~/Library/LaunchAgents/OSXRamDisk.plist
[ -f /usr/local/bin/startupRAMDiskandCacheMover.sh ] && rm -f /usr/local/bin/startupRAMDiskandCacheMover.sh
[ -f ~/Library/LaunchAgents/OSXRamDisk.plist ] && rm -f ~/Library/LaunchAgents/OSXRamDisk.plist
[ -h ~/Library/Caches/Google/Chrome/Default ] && bash -c "rm -f ~/Library/Caches/Google/Chrome/Default; mkdir ~/Library/Caches/Google/Chrome/Default"
./uninstall.sh