From 2e90e286b5bbb948c3c292121aad5250e30692b5 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Sun, 4 Sep 2011 23:08:38 -0400 Subject: Renamed pull to update --- pull.rb | 28 ---------------------------- update.rb | 28 ++++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 28 deletions(-) delete mode 100755 pull.rb create mode 100755 update.rb diff --git a/pull.rb b/pull.rb deleted file mode 100755 index 538e0bd2..00000000 --- a/pull.rb +++ /dev/null @@ -1,28 +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 add .') -system('git commit') -system('git push') diff --git a/update.rb b/update.rb new file mode 100755 index 00000000..538e0bd2 --- /dev/null +++ b/update.rb @@ -0,0 +1,28 @@ +#!/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 add .') +system('git commit') +system('git push') -- cgit 1.4.1