Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aheissenberger/svn2ftp
bash script to incremental upload changes in subversion repositories to ftp server
https://github.com/aheissenberger/svn2ftp
Last synced: about 2 months ago
JSON representation
bash script to incremental upload changes in subversion repositories to ftp server
- Host: GitHub
- URL: https://github.com/aheissenberger/svn2ftp
- Owner: aheissenberger
- Created: 2012-10-03T16:21:25.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-10-09T10:27:03.000Z (over 12 years ago)
- Last Synced: 2024-04-29T21:22:34.909Z (9 months ago)
- Language: Shell
- Homepage:
- Size: 133 KB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
svn2ftp
=======bash script to incremental upload changes in subversion repositories to ftp/sftp server
How does it work
================The configurations for the script are stored as properties in the svn root directory. this includes the target ftp server, username and password. The script will request the svn revision id of the last ftp files from the ftp server. Alle files newer will than be copied to the ftp server and the revision status file updated with the current revision.
Installation
============Requires:
* curl for FTP upload
* bash
* svnOperating Systems supported:
* OSX (tested)
* UNIX/Bash (not tested)Make _svn2ftp_ executable:
chmod +x svn2ftp
Add _svn2ftp_ to your PATH in /usr/local/bincp svn2ftp /usr/local/bin
Setup
=====Add the target ftp server to your SVN repository
svn propset deploy 'ftp://:@/' .
Usage
=====start on commandline
svn2ftp
as a custom build setup in _sublime text 2_ projectname.sublime-project:{
"folders":
[
{
"path": ""
}
],
"build_systems":
[
{
"name": "svn2ftp",
"cmd": ["svn2ftp","$project_path"],
"path": "/Users/xx/bin/" // only relevant if _svn2ftp_ ist not in PATH
}
]
}Note
====To use the script with _sublime text 2_ the _bash_ needs to be called with this code to load the path to bin
#!/bin/bash --login
TODO
====* error handling
* copy all files if there is no /deploy/REVISION on the ftp server