how do i restore lower case filenames in a source code package?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
how do i restore lower case filenames in a source code package?
i downloaded a source code package for an old multi-platform game. unfortunately, the author, when he created the .zip archive of the source code, zipped it in DOS, and so all of the file names are in all caps. when i run the configure script, it errors out, not being able to find any of the files (which originally were in lower case.
so, other than the extremely tedious process of renaming each file, one by one, is there any way to fix this so it will build properly? this game was written in 1996, so i don't think i'm the first person to bump into this problem.
actually i found it... it was in the /unix/readme file:
Code:
How to install the sources from a xxxx.zip file:
1) unzip -La xxxx.zip
On older 'unzip' use:
unzip -xa xxxx.zip
Will create a directory 'fly' with all the stuff underneath. The '-a'
is needed since it was packed on MSDOS. If you do not have 'unzip'
then get it, it compiles nicely on most systems.
Ark unzipped it with all uppercase, but when i did it with unzip -La it unzipped correctly with lower case file names
FLY8 by Eyal Lebidinsky. i originally got it as a DOS game, but he originally wrote it for DEC, then ported it to unix, linux, sparc, dos and windows. i've got the dos and windows versions, which run ok in dosbox and wine (wine seems to have difficulty with the screen colors, but it otherwise works ok). the linux binary refuses to run, so i figured i'd install it from source, but because it was written for an older version of gcc, i'm having problems with it. i'm not really too well versed in C. i once wrote a test pattern program for SVGA monitors, but that was a dos EXE compiled from Basic, and 14 years ago (i'm an analog hardware engineer, not much of a programmer). http://samba.org/ftp/eyal/fly8/released/index.html
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.