Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F871877
D393.id959.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, May 8, 4:40 AM
Size
1 KB
Mime Type
text/x-diff
Expires
Fri, May 9, 4:40 AM (19 h, 34 m)
Engine
blob
Format
Raw Data
Handle
617718
Attached To
D393: INP-1795 - Invoke language pack comparison tool upon deploy using AppleScript
D393.id959.diff
View Options
Index: tools/araxis_merge.scpt
===================================================================
--- /dev/null
+++ tools/araxis_merge.scpt
@@ -0,0 +1,28 @@
+on run argv
+ set first_file to item 1 of argv
+ set second_file to item 2 of argv
+
+ tell application "Araxis Merge"
+ -- Start/connect to Merge without displaying any UI
+ launch
+
+ try
+ -- Use an empty document if available
+ set _document to the first empty text document
+ on error
+ -- Create a text comparison document
+ set _document to make text document at end of documents
+ end try
+
+ tell _document
+ -- Tell the document which files to compare
+ set the (first compared file's path) to first_file
+ set the (second compared file's path) to second_file
+
+ -- Compare the files
+ compare items
+ end tell
+
+ activate
+ end tell
+end run
Index: tools/synchronize.sh
===================================================================
--- tools/synchronize.sh
+++ tools/synchronize.sh
@@ -1,4 +1,7 @@
#!/bin/sh
MAPPED_PATH=`dirname $0`
+PROJECT_ROOT_PATH=`dirname ${MAPPED_PATH}`
-open $MAPPED_PATH/../system/export/Custom.textcomparison
+if [[ "$OSTYPE" == "darwin"* ]]; then
+ osascript ${MAPPED_PATH}/araxis_merge.scpt "${PROJECT_ROOT_PATH}/system/export/Custom.lang" "${PROJECT_ROOT_PATH}/modules/custom/install/english.lang"
+fi
Event Timeline
Log In to Comment