Modify ↓
#12037 closed defect (fixed)
"make clean" fails on OSX
Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Milestone: | 0.12.7 |
Component: | general | Version: | |
Severity: | normal | Keywords: | macosx, makefile |
Cc: | Branch: | ||
Release Notes: |
Fixed failure of |
||
API Changes: | |||
Internal Changes: |
Description
$ make clean find -name \*.py[co] -exec rm {} \; find: illegal option -- n usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression] find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression] make: *** [clean-bytecode] Error 1
I've only tested on the trunk so far, and I haven't tested the following proposed change on other platforms:
-
Makefile
diff --git a/Makefile b/Makefile index 8081f4b..7a25fe9 100644
a b Trac.egg-info: status 165 165 clean: clean-bytecode clean-figleaf clean-coverage clean-doc 166 166 167 167 clean-bytecode: 168 find -name \*.py[co] -exec rm {} \;168 find . -name \*.py[co] -exec rm {} \; 169 169 170 170 Makefile: ; 171 171 … … diff-%: 329 329 # *conflicts* for line change only. 330 330 331 331 clean-mo: 332 find trac/locale -name \*.mo -exec rm {} \;333 find trac/htdocs/js/messages -name \*.js -exec rm {} \;332 find . trac/locale -name \*.mo -exec rm {} \; 333 find . trac/htdocs/js/messages -name \*.js -exec rm {} \; 334 334 335 335 336 336 # ----------------------------------------------------------------------------
Attachments (0)
Change History (4)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Release Notes: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:3 by , 10 years ago
Owner: | set to |
---|
comment:4 by , 9 years ago
Keywords: | makefile added; make removed |
---|
Note:
See TracTickets
for help on using tickets.
The changes
clean-bytecode
task look good to me. I think no need to changeclean-mo
task becausetrac/locale
andtrac/htdocs/js/message
are given.According to http://pubs.opengroup.org/onlinepubs/007904975/utilities/find.html,
find
utility in POSIX requires a directory for search at least.According to
find(1)
in GNUfindutils
, it uses the current directory if no paths are given.