Skip to content

Conversation

@k-takata
Copy link
Member

No need to extract whole Ruby source to create config.h.
Extract only required files.

Also add some error checking and reduce some log messages.

Currently we use git clone to get the Ruby source code. However it
extracts all the source code. Actually we need only a few files to
create config.h.
Download the source code in a zip package, then extract only necessary
files by using 7-Zip.

Note that we need to use `^^` to escape `!` because we enable delayed
expansion.
Also add some error checking.
@chrisbra
Copy link
Member

I think looks good, although I scratched my head around the 7z syntax. I suppose this worked in your local fork?

@k-takata
Copy link
Member Author

Yes, this is tested:
https://ci.appveyor.com/project/k-takata/vim-win32-installer/build/job/t5bm8hwpkvm5sopu#L69
(It stopped at another reason, though.)

We only need the following files for creating config.h:

./bin/*
./common.mk
./enc/Makefile.in
./include/ruby/version.h
./version.h
./win32/* (except *.c, *.h and README.*)

@chrisbra
Copy link
Member

okay good. How about adding a part of your commit message as comment "Note that we need to use ^^ to escape ! because we enable delayed expansion."

@k-takata
Copy link
Member Author

Done.

@chrisbra
Copy link
Member

thanks!

@chrisbra chrisbra merged commit f446463 into vim:master Sep 19, 2018
@k-takata k-takata deleted the reduce-time-for-config_h branch September 19, 2018 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants