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 #1.
  • Loading branch information
rentzsch committed Nov 2, 2009
1 parent cc3a51d commit 5c88445
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 5c88445

Please sign in to comment.