Skip to content

Instantly share code, notes, and snippets.

@skiold
Created July 14, 2010 09:06
Show Gist options
  • Save skiold/475206 to your computer and use it in GitHub Desktop.
Save skiold/475206 to your computer and use it in GitHub Desktop.
task :synctopbuilder do
tmp_freedhcp_index="tmp/freedhcp-server-index"
rm_rf freedhcpsrc + '/' + tmp_freedhcp_index
sh "git --work-tree=#{freedhcpsrc} --git-dir=#{freedhcpsrc}/.git " +
"checkout-index -a -f --prefix=#{tmp_freedhcp_index}/"
sh "rsync --delete -r #{freedhcpsrc}/#{tmp_freedhcp_index} #{srcforpbuilder}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment