From 8833e1c9a822e415de6fd480cf9dcc31d999da06 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Thu, 6 Oct 2022 15:20:30 -0300 Subject: [PATCH] bin/json: call ./bin/json/insert-chapter-metadata from pull-* scripts. --- bin/json/pull-arabic | 6 ++++++ bin/json/pull-english | 6 ++++++ bin/json/pull-farsi | 6 ++++++ bin/json/pull-portuguese | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/bin/json/pull-arabic b/bin/json/pull-arabic index 8ff8b1f..8e6cfe1 100755 --- a/bin/json/pull-arabic +++ b/bin/json/pull-arabic @@ -62,3 +62,9 @@ end sleep(delay) end line.end.print(Paint["Done.", :bold]).end + +## +# Spawn bin/json/insert-chapter-metadata +Process.wait Process.spawn( + "./bin/json/insert-chapter-metadata", "ar" +) diff --git a/bin/json/pull-english b/bin/json/pull-english index 541848e..217889a 100755 --- a/bin/json/pull-english +++ b/bin/json/pull-english @@ -68,3 +68,9 @@ end line.end.print(Paint["Done.", :bold]) .end.end end + +## +# Spawn bin/json/insert-chapter-metadata +Process.wait Process.spawn( + "./bin/json/insert-chapter-metadata", "en" +) diff --git a/bin/json/pull-farsi b/bin/json/pull-farsi index 1a4d520..b198c33 100755 --- a/bin/json/pull-farsi +++ b/bin/json/pull-farsi @@ -18,3 +18,9 @@ Process.setproctitle("quran-pull (pull-farsi)") Process.wait Process.spawn( "./bin/json/private/al-quran", "fa", "farsi" ) + +## +# Spawn bin/json/insert-chapter-metadata +Process.wait Process.spawn( + "./bin/json/insert-chapter-metadata", "fa" +) diff --git a/bin/json/pull-portuguese b/bin/json/pull-portuguese index 62c14ce..684f246 100755 --- a/bin/json/pull-portuguese +++ b/bin/json/pull-portuguese @@ -18,3 +18,9 @@ Process.setproctitle("quran-pull (pull-portuguese)") Process.wait Process.spawn( "./bin/json/private/al-quran", "pt", "portuguese" ) + +## +# Spawn bin/json/insert-chapter-metadata +Process.wait Process.spawn( + "./bin/json/insert-chapter-metadata", "pt" +)