FreeCalypso > hg > fc-magnetite
comparison scripts/mk-component.sh @ 133:87347425b11f
scripts/mk-component.sh: more filename case muck
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 08 Oct 2016 04:10:38 +0000 |
parents | feba9ffc2627 |
children | 41b6a18ffa0b |
comparison
equal
deleted
inserted
replaced
132:b8fc86826624 | 133:87347425b11f |
---|---|
77 echo "Error: cfile_plain takes 1 argument" 1>&2 | 77 echo "Error: cfile_plain takes 1 argument" 1>&2 |
78 exit 1 | 78 exit 1 |
79 fi | 79 fi |
80 objname=`basename "$1" .c`.obj | 80 objname=`basename "$1" .c`.obj |
81 helpers/makeline dep $objname "$1" >> $BUILD_DIR/$LIBNAME/Makefile | 81 helpers/makeline dep $objname "$1" >> $BUILD_DIR/$LIBNAME/Makefile |
82 case "$objname" in | |
83 *[A-Z]*) | |
84 helpers/makeline cmd rm -f '$@' \ | |
85 >> $BUILD_DIR/$LIBNAME/Makefile | |
86 ;; | |
87 esac | |
82 helpers/makeline cmd ../../toolwrap/cl470 -q -c ${CFLAGS} ${CPPFLAGS} \ | 88 helpers/makeline cmd ../../toolwrap/cl470 -q -c ${CFLAGS} ${CPPFLAGS} \ |
83 "$1" >> $BUILD_DIR/$LIBNAME/Makefile | 89 "$1" >> $BUILD_DIR/$LIBNAME/Makefile |
84 case "$objname" in | 90 case "$objname" in |
85 *[A-Z]*) | 91 *[A-Z]*) |
86 objname_lc=`echo $objname | tr A-Z a-z` | 92 objname_lc=`echo $objname | tr A-Z a-z` |
103 objname=`basename "$1" .c`.obj | 109 objname=`basename "$1" .c`.obj |
104 pp_name=`echo $1 | sed -e 's/\.c$/.pp/' | tr A-Z a-z` | 110 pp_name=`echo $1 | sed -e 's/\.c$/.pp/' | tr A-Z a-z` |
105 pp__name=`echo $1 | sed -e 's/\.c$/.pp_/' | tr A-Z a-z` | 111 pp__name=`echo $1 | sed -e 's/\.c$/.pp_/' | tr A-Z a-z` |
106 helpers/makeline dep $objname "$1" \ | 112 helpers/makeline dep $objname "$1" \ |
107 >> $BUILD_DIR/$LIBNAME/Makefile | 113 >> $BUILD_DIR/$LIBNAME/Makefile |
114 case "$objname" in | |
115 *[A-Z]*) | |
116 helpers/makeline cmd rm -f '$@' \ | |
117 >> $BUILD_DIR/$LIBNAME/Makefile | |
118 ;; | |
119 esac | |
108 helpers/makeline cmd ../../toolwrap/cl470 -q -po -p? -x \ | 120 helpers/makeline cmd ../../toolwrap/cl470 -q -po -p? -x \ |
109 ${CPPFLAGS} "$1" >> $BUILD_DIR/$LIBNAME/Makefile | 121 ${CPPFLAGS} "$1" >> $BUILD_DIR/$LIBNAME/Makefile |
110 helpers/makeline cmd ../../toolwrap/str2ind -a \ | 122 helpers/makeline cmd ../../toolwrap/str2ind -a \ |
111 -t ../str2ind.tab -l ../str2ind.log \ | 123 -t ../str2ind.tab -l ../str2ind.log \ |
112 -f "$pp_name" >> $BUILD_DIR/$LIBNAME/Makefile | 124 -f "$pp_name" >> $BUILD_DIR/$LIBNAME/Makefile |