2014-07-09 14:45:53 +04:00
|
|
|
#!/bin/sh
|
2014-12-08 19:54:32 +03:00
|
|
|
# osascript $HOME/owncloud.com/client/shell_integration/MacOSX/unload.scpt
|
2014-07-09 14:45:53 +04:00
|
|
|
|
2014-10-23 14:19:19 +04:00
|
|
|
sudo rm -rf /Library/ScriptingAdditions/SyncStateFinder.osax
|
2014-08-18 14:09:24 +04:00
|
|
|
# Klaas' machine
|
2014-10-23 14:19:19 +04:00
|
|
|
OSAXDIR=$HOME/Library/Developer/Xcode/DerivedData/OwnCloud-*/Build/Products/Debug/SyncStateFinder.osax
|
|
|
|
[ -d $OSAXDIR ] ||OSAXDIR=$HOME/Library/Developer/Xcode/DerivedData/OwnCloud-*/Build/Intermediates/ArchiveIntermediates/SyncStateFinder.osax/IntermediateBuildFilesPath/UninstalledProducts/SyncStateFinder.osax
|
2014-08-18 14:09:24 +04:00
|
|
|
|
|
|
|
# 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
|
2014-12-08 19:54:32 +03:00
|
|
|
osascript $HOME/owncloud.com/client/shell_integration/MacOSX/load.scpt
|
|
|
|
osascript $HOME/owncloud.com/client/shell_integration/MacOSX/check.scpt
|
2014-07-09 14:45:53 +04:00
|
|
|
|