Changeset 0c395c0 in rtems-libbsd for freebsd-to-rtems.py
- Timestamp:
- 04/07/15 12:00:07 (8 years ago)
- Branches:
- 4.11, 5, 5-freebsd-12, 6-freebsd-12, freebsd-9.3, master
- Children:
- 4f75a78
- Parents:
- da5e3a2
- git-author:
- Sebastian Huber <sebastian.huber@…> (04/07/15 12:00:07)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (04/08/15 05:57:05)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
freebsd-to-rtems.py
rda5e3a2 r0c395c0 2231 2231 def compose(self, path): 2232 2232 headerPath = path[:-2] + '.h' 2233 return 'LIB_GEN_FILES += ' + headerPath + '\n' \ 2234 + headerPath + ': ' + path + '\n' \ 2233 return headerPath + ': ' + path + '\n' \ 2235 2234 '\t rm -f $@\n' \ 2236 2235 '\t rpcgen -h -o $@ $<\n' … … 2242 2241 headerPath = path + '.h' 2243 2242 tmpPath = path + '.tmp' 2244 return 'LIB_GEN_FILES += ' + headerPath + '\n' \ 2245 + headerPath + ': ' + path + '\n' \ 2243 return headerPath + ': ' + path + '\n' \ 2246 2244 '\tsed -e \'/^#/d\' -e \'/^$$/d\' $< > ' + tmpPath + '\n' \ 2247 2245 '\tLC_ALL=C tr \'a-z\' \'A-Z\' < ' + tmpPath + ' | paste ' + tmpPath + ' - | \\\n' \ … … 2259 2257 src = path[:-2] + '.c' 2260 2258 dep = path[:path.rfind('/')] + '/' + self.dep 2261 return 'LIB_GEN_FILES += ' + src + '\n' \ 2262 'LIB_C_FILES += ' + src + '\n' \ 2259 return 'LIB_C_FILES += ' + src + '\n' \ 2263 2260 + src + ': ' + path + ' ' + dep + '\n' \ 2264 2261 '\t${LEX} -P ' + self.sym + ' -t $< | sed -e \'/YY_BUF_SIZE/s/16384/1024/\' > $@\n' … … 2272 2269 src = path[:-2] + '.c' 2273 2270 hdr = path[:path.rfind('/')] + '/' + self.header 2274 return 'LIB_GEN_FILES += ' + src + '\n' \ 2275 'LIB_C_FILES += ' + src + '\n' \ 2271 return 'LIB_C_FILES += ' + src + '\n' \ 2276 2272 + src + ': ' + path + '\n' \ 2277 2273 '\tyacc -b ' + self.sym + ' -d -p ' + self.sym + ' $<\n' \
Note: See TracChangeset
for help on using the changeset viewer.