Skip to content

Commit

Permalink
configure cwrsync for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pjknowles committed Feb 25, 2024
1 parent f1481a3 commit ffee632
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,6 @@ if (WIN32)
install(DIRECTORY ${cwrsync_SOURCE_DIR}/ DESTINATION etc/cwrsync PATTERN .git EXCLUDE)
file(WRITE rsync.bat "@set PATH=%~dp0\\..\\etc\\cwrsync\\bin;%PATH%\n")
file(APPEND rsync.bat "@%~dp0\\..\\etc\\cwrsync\\bin\\rsync.exe %*\n")
install(FILES rsync.bat DESTINATION bin)
file(WRITE sync.sh "#!/bin/sh\nexport PATH=$(dirname \"$0\")/../etc/cwrsync/bin:\"$PATH\"\nexec rsync.exe $@")
install(FILES rsync.bat rsync.sh DESTINATION bin)
endif ()

0 comments on commit ffee632

Please sign in to comment.