Permalink
Browse files

[CHANGE] Xmo'd: add .h human+machine header files to project (in addi…

…tion to current .m + .mm files). Closes #1.
  • Loading branch information...
1 parent cc3a51d commit 5c88445e366b15d4a4700b7f9a10a6915ff6b20b @rentzsch rentzsch committed Nov 2, 2009
Showing with 6 additions and 3 deletions.
  1. +6 −3 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

0 comments on commit 5c88445

Please sign in to comment.