diff options
author | HUANG Wei | 2018-03-26 10:46:07 +0800 |
---|---|---|
committer | HUANG Wei | 2018-03-26 10:46:07 +0800 |
commit | cbf25c6e8a70e0941ebe223edc6e4796f3e6a07d (patch) | |
tree | b726fd9ba6bf452e88f324a5372ed9ee57757574 | |
parent | f2cc453b5d318f99d995462dbbd7600ac9e47ba4 (diff) | |
download | aur-cbf25c6e8a70e0941ebe223edc6e4796f3e6a07d.tar.gz |
Tweak auto script
-rw-r--r-- | auto.ex | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,8 +1,8 @@ defmodule Auto do use Tesla - @pkg "../PKGBUILD" - @srcinfo "../.SRCINFO" + @pkg "PKGBUILD" + @srcinfo ".SRCINFO" @map %{ "Linux Binaries (32-bit)" => ["i686"], @@ -78,9 +78,11 @@ package() { end def process(content) do + IO.puts "Working directory #{System.cwd!()}" File.write!(@pkg, content) - System.cmd("makepkg", ["--printsrcinfo", ">", "#{@srcinfo}"]) + {output, _code} = System.cmd("makepkg", ["--printsrcinfo"]) + File.write(@srcinfo, output) end def run() do |