1 |
#!/bin/sh |
#!/bin/sh |
2 |
############################################################################### |
############################################################################### |
3 |
# |
# |
4 |
# Copyright (C) 2005 Anders Gavare. All rights reserved. |
# Copyright (C) 2005-2007 Anders Gavare. All rights reserved. |
5 |
# |
# |
6 |
# Redistribution and use in source and binary forms, with or without |
# Redistribution and use in source and binary forms, with or without |
7 |
# modification, are permitted provided that the following conditions are met: |
# modification, are permitted provided that the following conditions are met: |
27 |
# SUCH DAMAGE. |
# SUCH DAMAGE. |
28 |
# |
# |
29 |
# |
# |
30 |
# $Id: makeautodev.sh,v 1.6 2006/02/09 20:02:59 debug Exp $ |
# $Id: makeautodev.sh,v 1.8 2007/06/15 18:13:04 debug Exp $ |
31 |
|
|
32 |
|
|
33 |
printf "Generating autodev.c... " |
printf "Generating autodev.c... " |
38 |
|
|
39 |
cat autodev_head.c >> autodev.c |
cat autodev_head.c >> autodev.c |
40 |
|
|
41 |
|
printf "5" |
42 |
|
rm -f .index |
43 |
|
for a in *.c; do |
44 |
|
B=`grep COMMENT $a` |
45 |
|
if [ z"$B" != z ]; then |
46 |
|
printf "$a " >> .index |
47 |
|
echo "$B"|cut -d : -f 2- >> .index |
48 |
|
fi |
49 |
|
done |
50 |
|
|
51 |
printf "4" |
printf "4" |
52 |
for a in dev_*.c; do |
for a in dev_*.c; do |
53 |
B=`grep DEVINIT $a` |
B=`grep DEVINIT $a` |