lkml.org 
[lkml]   [1999]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Linux Makefile uses 'ls', causes problems with color-ls (PATCH)
On Tue, Mar 30, 1999 at 04:33:56PM -0500, Richard B. Johnson wrote:
root>
root> The main Makefile uses 'ls' to 'Make modules_install' If you have
root> color-ls installed, this will fail.
root>
root> Here is a patch that doesn't use 'ls'
root>
root> --- linux/Makefile.orig Tue Mar 30 16:12:21 1999
root> +++ linux/Makefile Tue Mar 30 16:27:49 1999
root> @@ -323,7 +323,8 @@
root> if [ -f FC4_MODULES ]; then inst_mod FC4_MODULES fc4; fi; \
root> if [ -f IRDA_MODULES ]; then inst_mod IRDA_MODULES net; fi; \
root> \
root> - ls *.o > $$MODLIB/.allmods; \
root> + rm -f $$MODLIB/.allmods; \
root> + for x in *.o; do echo $$x>>$$MODLIB/.allmods; done; \
root> echo $$MODULES | tr ' ' '\n' | sort | comm -23 $$MODLIB/.allmods - > $$MODLIB/.misc; \
root> if [ -s $$MODLIB/.misc ]; then inst_mod $$MODLIB/.misc misc; fi; \
root> rm -f $$MODLIB/.misc $$MODLIB/.allmods; \

faster/shorter :)

- ls *.o > $$MODLIB/.allmods; \
+ echo *.o | tr ' ' '\n' > $$MODLIB/.allmods; \


Catalin.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:51    [from the cache]
©2003-2011 Jasper Spaans