From 2f4dd4187f70b8505f7757f4a1c42567e034f2a5 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Wed, 28 Mar 2012 16:26:58 -0400 Subject: Reformat for use with Effuse --- update.rb | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100755 update.rb (limited to 'update.rb') diff --git a/update.rb b/update.rb deleted file mode 100755 index 9f1c67dd..00000000 --- a/update.rb +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby - -require 'fileutils' - -dotfiles = {} - -dirs = ['.'] -dirs.each do |dir| - Dir.foreach(dir) do |file| - next if file[0] == '.' - file = File.join(dir, file) - if File.directory? file - dirs << file - next - end - dotfiles[file] = file.sub('.', '~').sub('_', '.') if %r{/_} =~ file - end -end - -dotfiles.each do |a, b| - a, b = File.expand_path(a), File.expand_path(b) - FileUtils.cp(b, a) - puts "#{b} -> #{a}" -end - -system('git diff') -system('git add .') -system('git commit') -system('git push') -- cgit 1.4.1