Advertisement
Guest User

Untitled

a guest
Feb 28th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. :: GIN client local setup for Windows
  2. ::
  3. :: This file should be part of the gin client Windows bundle The purpose of the
  4. :: file is to set up the environment and client configuration so that the
  5. :: command line client can be used out of the box, without the need to install
  6. :: or configure any packages.
  7. ::
  8. :: The following actions are taken:
  9. ::
  10. :: - The gin configuration file (config.yml) is created and the binary paths
  11. :: for git, git-annex, and ssh are set.
  12. :: - The configuration file is copied to its intended location.
  13. :: - The location of gin.exe is appended to the PATH variable to it can be
  14. :: used from the shell.
  15. :: - A shell is started in the user's home directory.
  16.  
  17. set gitcmd=%CD%\git\bin\git.exe
  18. set sshcmd=%CD%\git\usr\bin\ssh.exe
  19. set gitannexcmd=%CD%\git\usr\bin\git-annex.exe
  20.  
  21. set configloc=%HOMEPATH%\.config\git\
  22.  
  23. set configtext=bin:^
  24. git: %gitcmd%^
  25. ssh: %sshcmd%^
  26. gitannex: %gitannexcmd%^
  27.  
  28.  
  29. echo %configtext% > config.yml
  30. setlocal enableextensions
  31. md %configloc%
  32. move config.yml %configloc%
  33.  
  34. path %path%;%CD%
  35.  
  36. cmd /k
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement