From 3696478e3e6c4d0f31083b63de8f6dd94811006a Mon Sep 17 00:00:00 2001 From: Antonin Hildebrand Date: Wed, 30 Jun 2010 15:44:54 +0200 Subject: [PATCH] do not compile nibs, but copy them from production version --- dev.sh | 5 +++-- restart.sh | 6 ++++-- undev.sh | 6 +++--- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/dev.sh b/dev.sh index 1dfedec3..c9ca0f14 100755 --- a/dev.sh +++ b/dev.sh @@ -19,5 +19,6 @@ if [ -L "$TOTALFINDER_RESOURCES" ]; then # is is a symlink? fi # ok, we should be safe to do the replacement -mv "$TOTALFINDER_RESOURCES" "$TOTALFINDER_RESOURCES_BACKUP" -ln -s "$ROOT/plugin/Resources" "$TOTALFINDER_RESOURCES" \ No newline at end of file +sudo mv "$TOTALFINDER_RESOURCES" "$TOTALFINDER_RESOURCES_BACKUP" +sudo ln -s "$ROOT/plugin/Resources" "$TOTALFINDER_RESOURCES" +sudo cp "$TOTALFINDER_RESOURCES_BACKUP/"*.nib "$TOTALFINDER_RESOURCES" # steal compiled nibs from production \ No newline at end of file diff --git a/restart.sh b/restart.sh index c5bd70b2..cc2fd8cb 100755 --- a/restart.sh +++ b/restart.sh @@ -3,8 +3,10 @@ # quit Finder osascript -e "tell application \"Finder\" to quit" -# compile xibs -./compile.sh +# compile xibs - skip this for now +# it depends on custom plugin I had +# Failure Reason: Could not determine the location of the plug-in with the identifier net.wafflesoftware.ShortcutRecorder.IB.Leopard +# ./compile.sh # start TotalFinder agan open /Applications/TotalFinder.app \ No newline at end of file diff --git a/undev.sh b/undev.sh index ad57c17f..64d9e96d 100755 --- a/undev.sh +++ b/undev.sh @@ -2,10 +2,10 @@ TOTALFINDER_RESOURCES='/Applications/TotalFinder.app/Contents/Resources/TotalFinder.bundle/Contents/Resources' TOTALFINDER_RESOURCES_BACKUP='/Applications/TotalFinder.app/Contents/Resources/TotalFinder.bundle/Contents/ResourcesOrig' -if [ ! -d "$TOTALFINDER_RESOURCES" ]; then # is it a folder? +if [ -d "$TOTALFINDER_RESOURCES" ]; then # is it a folder? if [ -L "$TOTALFINDER_RESOURCES" ]; then # is is a symlink? - rm "$TOTALFINDER_RESOURCES" - mv "$TOTALFINDER_RESOURCES_BACKUP" "$TOTALFINDER_RESOURCES" + sudo rm "$TOTALFINDER_RESOURCES" + sudo mv "$TOTALFINDER_RESOURCES_BACKUP" "$TOTALFINDER_RESOURCES" exit fi fi