Mercurial > hg > toybox
comparison scripts/make.sh @ 264:4b4a6979d228
Remove some commented out code.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 23 Feb 2008 14:59:22 -0600 |
parents | 085395c1471d |
children | 6baa13382880 |
comparison
equal
deleted
inserted
replaced
263:7c53152a483b | 264:4b4a6979d228 |
---|---|
68 -e 's/^CONFIG_\(.*\)=y.*/\1/' -e 't isset' -e 'd' -e ':isset' \ | 68 -e 's/^CONFIG_\(.*\)=y.*/\1/' -e 't isset' -e 'd' -e ':isset' \ |
69 -e 'h' -e 's/.*/#define CFG_& 1/p' \ | 69 -e 'h' -e 's/.*/#define CFG_& 1/p' \ |
70 -e 'g' -e 's/.*/#define USE_&(...) __VA_ARGS__/p' .config > \ | 70 -e 'g' -e 's/.*/#define USE_&(...) __VA_ARGS__/p' .config > \ |
71 generated/config.h || exit 1 | 71 generated/config.h || exit 1 |
72 | 72 |
73 #for i in $(echo toys/*.c | sort) | |
74 #do | |
75 # Grab the function command names | |
76 # NAME=$(echo $i | sed -e 's@toys/@@' -e 's@\.c@@') | |
77 #sed -n '/struct '$NAME'_command {/,/};/p' $i \ | |
78 # >> generated/globals_big.h | |
79 # echo "struct ${NAME}_command;" >> generated/globals.h | |
80 #done | |
81 | |
82 # Extract a list of toys/*.c files to compile from the data in ".config" with | 73 # Extract a list of toys/*.c files to compile from the data in ".config" with |
83 # sed, sort, and tr: | 74 # sed, sort, and tr: |
84 | 75 |
85 # 1) Grab the XXX part of all CONFIG_XXX entries, removing everything after the | 76 # 1) Grab the XXX part of all CONFIG_XXX entries, removing everything after the |
86 # second underline | 77 # second underline |