Permalink
Browse files

update scripts for previous dir structure reorganization

  • Loading branch information...
1 parent 6aa1859 commit 20e7e08f9415a49dc062e0cf3ea203293abf9501 @darwin darwin committed Jun 11, 2011
Showing with 7 additions and 5 deletions.
  1. +1 −1 compile.sh
  2. +1 −1 dev.sh
  3. +3 −3 rakefile
  4. +2 −0 restart.sh
View
@@ -1,4 +1,4 @@
#!/bin/bash
# xib -> nib
-for xib in `ls -d plugin/Resources/*.xib`; do echo "Compiling $xib ..."; ibtool --errors --warnings --notices --output-format human-readable-text --compile "`echo $xib | cut -d'.' -f1`.nib" "$xib"; done
+for xib in `ls -d plugin/*.xib`; do echo "Compiling $xib ..."; ibtool --errors --warnings --notices --output-format human-readable-text --compile "`echo $xib | cut -d'.' -f1`.nib" "$xib"; done
View
2 dev.sh
@@ -20,5 +20,5 @@ fi
# ok, we should be safe to do the replacement
sudo mv "$TOTALFINDER_RESOURCES" "$TOTALFINDER_RESOURCES_BACKUP"
-sudo ln -s "$ROOT/plugin/Resources" "$TOTALFINDER_RESOURCES"
+sudo ln -s "$ROOT/plugin" "$TOTALFINDER_RESOURCES"
sudo cp "$TOTALFINDER_RESOURCES_BACKUP/"*.nib "$TOTALFINDER_RESOURCES" # steal compiled nibs from production
View
@@ -6,7 +6,7 @@ require 'rake'
ROOT_DIR = File.expand_path('.')
FINDER_DIR = '/System/Library/CoreServices/Finder.app'
FINDER_RESOURCES_DIR = File.join(FINDER_DIR, 'Contents/Resources')
-PLUGIN_RESOURCES_DIR = File.join(ROOT_DIR, 'plugin', 'Resources')
+PLUGIN_RESOURCES_DIR = File.join(ROOT_DIR, 'plugin')
INSTALLER_RESOURCES_DIR = File.join(ROOT_DIR, 'installer')
ENGLISH_LPROJ = File.join(PLUGIN_RESOURCES_DIR, 'English.lproj')
TOTALFINDER_PLUGIN_SOURCES = File.join(ROOT_DIR, '..', '..', 'totalfinder-plugin', 'plugin')
@@ -444,7 +444,7 @@ end
desc "normalize Finder.app so it contains all our language folders (run with sudo)"
task :normalize do
- lprojs = File.join(ROOT_DIR, 'plugin', 'Resources', '*.lproj')
+ lprojs = File.join(PLUGIN_RESOURCES_DIR, '*.lproj')
Dir.glob(lprojs) do |folder|
dir = File.join(FINDER_RESOURCES_DIR, File.basename(folder))
if File.exists? dir then
@@ -493,7 +493,7 @@ task :propagate do
propagate_from_english_to_other_lprojs
end
-desc "make stub lproj folders for installer, creates all which exist in plugin/Resources"
+desc "make stub lproj folders for installer, creates all which exist in plugin"
task :stub do
stub_installer_lprojs
end
View
@@ -3,6 +3,8 @@
# quit Finder
osascript -e "tell application \"Finder\" to quit"
+killall -SIGINT TotalFinderCrashWatcher
+
# 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

0 comments on commit 20e7e08

Please sign in to comment.