projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
23c6cea
)
mix.exs: GNU sed doesn't into proper getopt()
author
Haelwenn (lanodan) Monnier
<contact@hacktivis.me>
Sat, 16 Jan 2021 01:12:41 +0000
(
02:12
+0100)
committer
Haelwenn (lanodan) Monnier
<contact@hacktivis.me>
Sat, 16 Jan 2021 01:42:52 +0000
(
02:42
+0100)
mix.exs
patch
|
blob
|
history
diff --git
a/mix.exs
b/mix.exs
index 281cca6433fbd3deaec616c7b2fe4c26ab3752d3..5404a5c11fe46a6f14a20f61c643c1e8f73780f4 100644
(file)
--- a/
mix.exs
+++ b/
mix.exs
@@
-346,7
+346,7
@@
defmodule Pleroma.Mixfile do
find = "find lib test priv -type f \\( -name '*.ex' -or -name '*.exs' \\) -exec "
grep = "grep -L '# Copyright' {} \\; |"
find = "find lib test priv -type f \\( -name '*.ex' -or -name '*.exs' \\) -exec "
grep = "grep -L '# Copyright' {} \\; |"
- xargs = "xargs -n1 sed -i
'' '1s;^;#{template};'"
+ xargs = "xargs -n1 sed -i'' '1s;^;#{template};'"
:os.cmd(String.to_charlist("#{find}#{grep}#{xargs}"))
end
:os.cmd(String.to_charlist("#{find}#{grep}#{xargs}"))
end
@@
-355,7
+355,7
@@
defmodule Pleroma.Mixfile do
year = NaiveDateTime.utc_now().year
find = "find lib test priv -type f \\( -name '*.ex' -or -name '*.exs' \\) |"
year = NaiveDateTime.utc_now().year
find = "find lib test priv -type f \\( -name '*.ex' -or -name '*.exs' \\) |"
- xargs = "xargs sed -i
'' 's/# Copyright © 2017-20[0-9][0-9]/# Copyright © 2017-#{year}/'"
+ xargs = "xargs sed -i'' 's/# Copyright © 2017-20[0-9][0-9]/# Copyright © 2017-#{year}/'"
:os.cmd(String.to_charlist("#{find}#{xargs}"))
end
:os.cmd(String.to_charlist("#{find}#{xargs}"))
end