changeset 32:c49c78d9bb5a

scripts/mk-component.sh: fix for cl470's auto-lowercasing of filenames only implemented in cfile_plain so far, str2ind case remains to be handled
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 29 Sep 2016 17:00:31 +0000
parents 9c43952eae1a
children a514d3bd20c4
files scripts/mk-component.sh
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/mk-component.sh	Thu Sep 29 16:32:12 2016 +0000
+++ b/scripts/mk-component.sh	Thu Sep 29 17:00:31 2016 +0000
@@ -59,6 +59,13 @@
 	helpers/makeline dep $objname "$1" >> $BUILD_DIR/$LIBNAME/Makefile
 	helpers/makeline cmd ../../toolwrap/cl470 -q -c ${CFLAGS} ${CPPFLAGS} \
 		"$1" >> $BUILD_DIR/$LIBNAME/Makefile
+	case "$objname" in
+		*[A-Z]*)
+			objname_lc=`echo $objname | tr A-Z a-z`
+			helpers/makeline cmd mv $objname_lc $objname \
+				>> $BUILD_DIR/$LIBNAME/Makefile
+			;;
+	esac
 	echo >> $BUILD_DIR/$LIBNAME/Makefile
 	OBJS="$OBJS $objname"
 }