Browse Source
Add Rakefile, eruby and html updates
Add Rakefile, eruby and html updates
- Rakefile eases installation and updates - eruby: refactor link_to and nav elements - html: refactor repeating <li> elements and nav menu <ul> Include html5 snippets: header, section, aside, and nav - Also setup html5shiv for misbehaving browsersmaster
jimi
14 years ago
3 changed files with 65 additions and 13 deletions
@ -0,0 +1,22 @@ |
|||
HOME = ENV['HOME'] |
|||
DEST = "#{HOME}/.vim/personal" |
|||
SRC = "ftplugin" |
|||
|
|||
directory DEST |
|||
|
|||
task :default => :install |
|||
|
|||
desc "Hardlink snippets into the ~/.vim/personal directory" |
|||
task :install => DEST do |
|||
run "cp -avl #{SRC} #{DEST}/" |
|||
end |
|||
|
|||
desc "Remove obsolete from and copy new snippets to ~/.vim/personal" |
|||
task :sync => :install do |
|||
run "rsync -ri --delete #{SRC} #{DEST}/" |
|||
end |
|||
|
|||
def run(cmd) |
|||
puts cmd |
|||
system cmd |
|||
end |
Reference in new issue