Skip to content

Instantly share code, notes, and snippets.

@yaronuliel
yaronuliel / svn2ftp.sh
Last active June 28, 2016 14:40
This is a script for extracting the files that was changed in the most recent svn commit into a separate directory for upload to server (using FTP/SSH/whatever)
#!/usr/bin/env bash
#set temp dir (from second arguments). defaults to __toupload
dest=${2:-__toupload}
dest=${dest%/}/
to=$(svn info --show-item revision)
# get start revision from first argument (default to -1)
from=${1:--1}