From d73b03f436d1e233add48a40cc4e6999675ee8e5 Mon Sep 17 00:00:00 2001 From: rentzsch Date: Mon, 2 Nov 2009 06:00:31 -0600 Subject: [PATCH] [CHANGE] Xmo'd: add .h human+machine header files to project (in addition to current .m + .mm files). Closes #1. --- Xmod/Xmod.applescript | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Xmod/Xmod.applescript b/Xmod/Xmod.applescript index 160b1599..731c77ae 100644 --- a/Xmod/Xmod.applescript +++ b/Xmod/Xmod.applescript @@ -31,9 +31,12 @@ on updateProjectXmod(_project) -- Build a list of resulting source files. tell application "System Events" - set humanFileList to (every file of (POSIX file modelSrcDir as alias) whose (name ends with ".m" or name ends with ".mm") and name does not start with "_") - set machineFileList to (every file of (POSIX file modelSrcDir as alias) whose (name ends with ".m" or name ends with ".mm") and name starts with "_") - set fileList to humanFileList & machineFileList + set modelSrcDirAlias to POSIX file modelSrcDir as alias + set humanHeaderFileList to (every file of modelSrcDirAlias whose name ends with ".h" and name does not start with "_") + set humanSourceFileList to (every file of modelSrcDirAlias whose (name ends with ".m" or name ends with ".mm") and name does not start with "_") + set machineHeaderFileList to (every file of modelSrcDirAlias whose name ends with ".h" and name starts with "_") + set machineSourceFileList to (every file of modelSrcDirAlias whose (name ends with ".m" or name ends with ".mm") and name starts with "_") + set fileList to humanHeaderFileList & humanSourceFileList & machineHeaderFileList & machineSourceFileList set pathList to {} repeat with fileItem in fileList set pathList to pathList & POSIX path of fileItem