Skip to content

Commit

Permalink
Update to elixir v0.12.4 and support v0.13.0-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmj committed Feb 23, 2014
1 parent ca3ca3d commit 342476e
Show file tree
Hide file tree
Showing 4 changed files with 348 additions and 313 deletions.
3 changes: 2 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ defmodule Decimal.Mixfile do
def project do
[ app: :decimal,
version: "0.0.1",
elixir: "~> 0.12.3",
elixir: "~> 0.12.4 or ~> 0.13.0-dev",
deps: deps(Mix.env),
build_per_environment: false,
name: "Decimal",
source_url: "https://github.com/ericmj/decimal",
docs: fn -> [
Expand Down
2 changes: 1 addition & 1 deletion mix.lock
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[ "ex_doc": {:git, "git://github.com/elixir-lang/ex_doc.git", "aecbe8cf755fc81d76e2924d69a33642b7945af9", []} ]
[ "ex_doc": {:git, "git://github.com/elixir-lang/ex_doc.git", "1419e7adc1c289cd75587d9f435c412c70c297d9", []} ]
34 changes: 34 additions & 0 deletions release_docs.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Run with mix run release_docs.exs

# Uncommited changes will not be included!

# Files that will be included in addition to the
# ex_doc generated files
additional_files = [
"README.html"
]

System.cmd "git stash -u"

Mix.Task.run "docs"
files = Path.wildcard("docs/**") |> Enum.map(&Path.relative_to(&1, "docs"))
files = files ++ additional_files

IO.puts System.cmd "git checkout gh-pages"

System.cmd "git reset"

old_files = System.cmd("git ls-files") |> String.split("\n")
old_files = old_files -- additional_files
IO.puts System.cmd "git rm " <> Enum.join(old_files, " ")

File.cp_r "docs/.", "./"
File.rm_rf! "docs"

IO.puts System.cmd "git add " <> Enum.join(files, " ")
IO.puts System.cmd "git commit -m \"Update docs\""
IO.puts System.cmd "git push"

Enum.each(files, &File.rm_rf!/1)
IO.puts System.cmd "git checkout master --force"
System.cmd "git stash pop"
Loading

0 comments on commit 342476e

Please sign in to comment.