使文件在Linux上运行 - 如何忽略大小写敏感? [英] make file running on Linux - how to ignore case sensitive?

查看:2226
本文介绍了使文件在Linux上运行 - 如何忽略大小写敏感?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个庞大的系统工程,整个C语言写的,我有一个用于编译一个make文件。该项目的C文件包含大量利用问题,在它的头文件,这意味着是那名小姐拼写中大量的C文件头文件的音调。
问题是我需要迁移该项目编译的Linux机器上,并且因为Linux是大小写敏感的我得到了错误的色调。

I have a huge project, whole written in C language and I have a single make file that is used to compile it. The project C files contains lots of capitalize problems in it's header files, meaning there are tones of header files that were miss-spelled in lots of C files. The problem is I need to migrate this project to compile on Linux machine and since Linux is case sensitive I got tones of errors.

有没有我可以运行make文件在Linux中,告诉他忽略大小写敏感的一种优雅的方式?
任何其他解决方案将受到欢迎,以及。

Is there an elegant way which I can run make file in Linux and tell him to ignore case sensitive? Any other solution will be welcome as well.

非常感谢。
Motti。

Thanks a lot. Motti.

推荐答案

您必须解决手工一切,重命名每个文件或修复的#include与每一个地方。即使你有一个庞大的工程(与Linux内核相媲美),它应该有可能一两小时内做到这一点。自动化是可能的,但手工方式应该会更好 - 因为脚本将无法猜出哪个名称是正确的 - 文件名,或者#包括所使用的名称

You'll have to fix everything by hand and rename every file or fix every place with #include. Even if you have a huge project (comparable with linux kernel), it should be possible to do this during a hour or two. Automation may be possible, but manual way should be better - because script won't be able to guess which name is right - filename, or the name used in #include.

此外,这种情况是原来的项目开发商的过错。如果他/她是不是草率和命名每一个正确的#include每一个标题,这不会发生。从技术上讲,这是类似的语法错误code问题。对付它的唯一正确途径是解决它。

Besides, this situation is a fault of original project developer. If he/she wasn't sloppy and named every header in every #include correctly, this wouldn't happen. Technically, this is a code problem similar to syntax error. The only right way to deal with it is to fix it.

这篇关于使文件在Linux上运行 - 如何忽略大小写敏感?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆