p7zip icon indicating copy to clipboard operation
p7zip copied to clipboard

P7zip22.00

Open jinfeihan57 opened this issue 3 years ago • 3 comments

Update 7zip core to 7zip22.00

jinfeihan57 avatar Jul 10 '22 14:07 jinfeihan57

I noticed, that in .gitattributes you set *.sln, *.vcxproj, *.vcproj, *.rc to CRLF line endings. Neither .lsn nor .vc(x)proj don't need to have dos line endings. Not even .rc files don't. You can see it yourself - even microsoft is using unig LF in their own examples.

There are some extensions that do though - it's .dsp and .dsw in 7zip source tree. I have tried that and with unix LF they fail to be read by IDE. These should have been set up with CRLF line endings. @tansy I noticed, but there are too many files to modify. Is there any good way to achieve batch modification?

jinfeihan57 avatar Jul 31 '22 08:07 jinfeihan57

I noticed, but there are too many files to modify. Is there any good way to achieve batch modification?

According to git documentation on gitattributes it should respect .gitattributes file in that directory then `.gitattributes' in higher/est directory, then `$GIT_DIR/info/attributes', which is most likely `.git/info/attributes' in main repository directory. Here is something about that as well. I made a test repository to see how it works.

So try to put `.gitattributes' in main repository and main branch directory; it should work top->down. If it won't help then `.git/info/attributes' in main repository directory.

If by batch you mean to "convert" them, then I have script - I have to find it and can put in paste or something.

tansy avatar Aug 05 '22 13:08 tansy

@tansy It would be very helpful if you could provide the script.

jinfeihan57 avatar Aug 11 '22 12:08 jinfeihan57

Sorry, I forgot about that, then I couldn't find this thread but I found it and put it here. It's not perfect, just partisan script but keeps timestamps. If you have binaries, and want to copy them to destination directory as well, then copy directory as a whole first, then:

$ ./d2u-dir-1.sh <dir~> <dir>

I hope that's what you meant.

tansy avatar Aug 16 '22 23:08 tansy

Sorry, I forgot about that, then I couldn't find this thread but I found it and put it here. It's not perfect, just partisan script but keeps timestamps. If you have binaries, and want to copy them to destination directory as well, then copy directory as a whole first, then:

$ ./d2u-dir-1.sh <dir~> <dir>

I hope that's what you meant.

Could not open this link.

jinfeihan57 avatar Aug 21 '22 07:08 jinfeihan57

Could not open this link.

It's public gist. It has to work.

d2u-dir-1.sh

tansy avatar Aug 23 '22 12:08 tansy