-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathRakefile.legacy
52 lines (49 loc) · 1.57 KB
/
Rakefile.legacy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
OSX_SCRIPTS = FileList['osx/**/*.sh']
# namespace :bundle do
# desc 'Install bundle'
# task install: 'Gemfile' do
# sh 'rbenv rehash'
# sh 'yes | gem update'
# File.delete('Gemfile.lock') if File.exist?('Gemfile.lock')
# sh 'gem install bundler && bundle install'
# end
#
# desc 'Uninstall bundle install gems'
# task uninstall: 'Gemfile' do
# sh 'rbenv rehash'
# sh 'gem uninstall --all --ignore-dependencies --executables --user-install --force'
# sh 'gem install bundler'
# File.delete('Gemfile.lock') if File.exist?('Gemfile.lock')
# end
# end
# namespace :osx do
# desc 'Setup OSX preferences'
# task setup: OSX_SCRIPTS do |t|
# t.prerequisites.each do |prereq|
# system 'bash', prereq
# end
#
# karabiner
# src = File.join(SRC_DIR, 'osx', 'karabiner', 'private.xml')
# dest = File.join(ENV['HOME'], 'Library', 'Application\ Support', 'Karabiner', 'private.xml')
# sh "ln -sfn #{src} #{dest}"
#
# BetterTouchTool
# src = File.join(ENV['HOME'], 'Dropbox', 'settings', 'BetterTouchTool')
# dest = File.join(ENV['HOME'], 'Library', 'Application\ Support', 'BetterTouchTool')
# sh "ln -sfn #{src} #{dest}"
#
# Witch
# src = File.join(ENV['HOME'], 'Dropbox', 'settings', 'Witch')
# dest = File.join(ENV['HOME'], 'Library', 'Application\ Support', 'Witch')
# sh "ln -sfn #{src} #{dest}"
# end
# end
# namespace :go do
# desc 'Install Go packages'
# task install: 'Gofile' do
# File.readlines('Gofile').map(&:chomp).each do |package|
# sh "go get #{package}"
# end
# end
# end