LoginSignup
5
1

More than 3 years have passed since last update.

Elixir 標準modulesの追加

Posted at

はじめに

資料

作業

  • MacBook Pro (13-inch, 2017, Two Thunderbolt 3 ports)を使用
  • Homebrewでelixir 1.9.1がインストールされていた
  • その他にもXCodeとかがインストールされていたのでコンパイルに必要なものはあらかじめ揃っていたようにおもう
$ git clone https://github.com/elixir-lang/elixir.git
$ git checkout -b feature/awesome v1.9.1

変更したソースコード

VERSION
1.9.1-awesome
  • ↑↑↑ ルートディレクトリに VERSION というファイルがあるので書き換え
lib/elixir/lib/awesome.ex
defmodule Awesome do
  def greet() do
    "Although I am not not not the most important, My name is Awesome.\nYou call me Osamu.\n@torifukukaiou is my Twitter account.\nYes, I was born to love Elixir!!!\nHow wonderful life is while Elixir is in the world!!!"
  end
end
  • ↑↑↑ ファイルを追加
  • 追加しただけ!

ビルド

$ make
  • 私は事前に make test していたせいか? なんかエラーがでたので make clean しました

実行

スクリーンショット 2019-09-29 15.09.49.png

  • バージョンかわったし、Awesomeというmoduleを追加できました!
5
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
1