Skip to content

Commit

Permalink
[CHANGE] Xmo'd: add .h human+machine header files to project (in addi…
Browse files Browse the repository at this point in the history
…tion to current .m + .mm files). Closes rentzsch#1.
  • Loading branch information
rentzsch committed Nov 2, 2009
1 parent 7d01950 commit d73b03f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Xmod/Xmod.applescript
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d73b03f

Please sign in to comment.