简体   繁体   中英

What to build `git` from source without `git-svn`?

Is it possible to build git from source without git-svn ?

I know how to build git in general, but I could not find any way to disable building git-svn in ./configure --help .

Currently, I am using the following command to build git without the SVN tests which take to long:

NO_SVN_TESTS=1 make -j4 profile all doc info

git-svn is internally running a perl script git-svn.perl .

You should be able to disable git-svn by commenting this line SCRIPT_PERL += git-svn.perl in the MakeFile .

Note:

  • If NO_PERL is set, then git will be built without support for the perl scripts which include functionalities like git-add--interactive , git-archimport , git-cvsexportcommit , git-cvsimport , git-cvsserver , git-send-email and git-svn (this list is as per git v2.26.2 , you can find the list of perl scripts by running make build-perl-script )

  • If only some perl scripts are required (in this case all scripts other than git-svn ), you can set SCRIPT_PERL to all scripts other than git-svn.perl

    SCRIPT_PERL="git-add--interactive.perl git-archimport.perl git-cvsexportcommit.perl git-cvsimport.perl git-cvsserver.perl git-send-email.perl"

    List of perl scripts can be obtained as noted in point 1.

    The make commands will look like this:

     make SCRIPT_PERL="git-add--interactive.perl git-archimport.perl git-cvsexportcommit.perl git-cvsimport.perl git-cvsserver.perl git-send-email.perl" make SCRIPT_PERL="git-add--interactive.perl git-archimport.perl git-cvsexportcommit.perl git-cvsimport.perl git-cvsserver.perl git-send-email.perl" install

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM