Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Bob Tanner
packer-windows
Commits
85321034
Commit
85321034
authored
Aug 03, 2014
by
Stefan Scherer
Browse files
install rsync and symlink /vagrant
parent
24866782
Changes
1
Show whitespace changes
Inline
Side-by-side
scripts/rsync.bat
0 → 100644
View file @
85321034
rem install rsync
if
not
exist
"C:\Windows\Temp\7z920-x64.msi"
(
powershell
-Command
"(New-Object System.Net.WebClient).DownloadFile('http://downloads.sourceforge.net/sevenzip/7z920-x64.msi', 'C:\Windows\Temp\7z920-x64.msi')"
<
NUL
)
msiexec
/qb /i
C
:\Windows\Temp\7z920
-x
64
.msi
pushd
C
:\Windows\Temp
powershell
-Command
"(New-Object System.Net.WebClient).DownloadFile('http://mirrors.kernel.org/sourceware/cygwin/x86_64/release/rsync/rsync-3.1.0-1.tar.xz', 'C:\Windows\Temp\rsync-3.1.0-1.tar.xz')"
<
NUL
cmd
/c
""
C
:\Program
Files
\7
-Zip
\7z.exe
" x rsync-3.1.0-1.tar.xz"
cmd
/c
""
C
:\Program
Files
\7
-Zip
\7z.exe
" x rsync-3.1.0-1.tar"
copy
/Y
usr
\bin\rsync.exe
"C:\Program Files\OpenSSH\bin\rsync.exe"
rmdir
/s /q
usr
del
rsync
-
3
.1.0
-
1
.tar
popd
msiexec
/qb /x
C
:\Windows\Temp\7z920
-x
64
.msi
rem make symlink for c:/vagrant share
mklink
/D
"C:\Program Files\OpenSSH\vagrant"
"C:\vagrant"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment