mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2025-02-28 08:21:52 -05:00
Migrating plugins not in 2.1
This commit is contained in:
parent
23a72abbf9
commit
d5e43b501f
@ -86,8 +86,6 @@ begin
|
||||
f.write(deploy_configs.to_yaml)
|
||||
end
|
||||
|
||||
# migrate plugins
|
||||
|
||||
# migrate custom themes
|
||||
custom_themes = Dir.glob(old_octo_dir('.themes', '*')).delete_if { |theme| theme =~ /\.themes\/classic/ }
|
||||
FileUtils.cp_r custom_themes, new_octo_dir('.themes')
|
||||
@ -96,7 +94,9 @@ begin
|
||||
FileUtils.mv old_octo_dir("Rakefile"), new_octo_dir("Rakefile-old")
|
||||
|
||||
# migrate updated plugins (but leave deprecated ones)
|
||||
FileUtils.cp_r new_octo_dir("plugins"), old_octo_dir("plugins")
|
||||
octopress_plugins = Dir.glob(new_octo_dir('plugins', '*')).map { |path| path.match(/([\w]*\/[\w]*.rb)$/)[1] }
|
||||
custom_plugins = Dir.glob(old_octo_dir('plugins', '*')).map { |path| path.match(/([\w]*\/[\w]*.rb)$/)[1] } - octopress_plugins
|
||||
FileUtils.cp_r custom_plugins.map { |rel_path| old_octo_dir(rel_path) }, new_octo_dir('plugins')
|
||||
|
||||
# move new to old's location
|
||||
FileUtils.rm_rf old_octo_dir
|
||||
|
Loading…
x
Reference in New Issue
Block a user