2014-07-09 14:45:53 +04:00
|
|
|
#!/bin/sh
|
|
|
|
# osascript $HOME/owncloud.com/mirall/shell_integration/MacOSX/unload.scpt
|
|
|
|
|
2014-08-18 14:09:24 +04:00
|
|
|
sudo rm -rf /Library/ScriptingAdditions/OwnCloudFinder.osax
|
|
|
|
# Klaas' machine
|
|
|
|
OSAXDIR=$HOME/Library/Developer/Xcode/DerivedData/OwnCloud-*/Build/Products/Debug/OwnCloudFinder.osax
|
|
|
|
[ -d $OSAXDIR ] ||OSAXDIR=$HOME/Library/Developer/Xcode/DerivedData/OwnCloud-*/Build/Intermediates/ArchiveIntermediates/OwnCloudFinder.osax/IntermediateBuildFilesPath/UninstalledProducts/OwnCloudFinder.osax
|
|
|
|
|
|
|
|
# Markus' machine
|
|
|
|
[ -d $OSAXDIR ] || echo "OSAX does not exist"
|
|
|
|
[ -d $OSAXDIR ] && sudo cp -rv $OSAXDIR /Library/ScriptingAdditions/
|
2014-07-09 14:45:53 +04:00
|
|
|
|
|
|
|
sudo killall Finder
|
|
|
|
sleep 1
|
|
|
|
osascript $HOME/owncloud.com/mirall/shell_integration/MacOSX/load.scpt
|
|
|
|
osascript $HOME/owncloud.com/mirall/shell_integration/MacOSX/check.scpt
|
|
|
|
|