Commits

Shlomi Fish committed d0e79a0

Extract a common variable.

Comments (0)

Files changed (3)

 lib/screenplay-xml/txt/Humanity-Movie.txt
 lib/screenplay-xml/txt/selina-mandrake-the-slayer.txt
 lib/screenplay-xml/txt/Star-Trek--We-the-Living-Dead.txt
+lib/screenplay-xml/txt/Star-Trek--We-the-Living-Dead-hebrew.txt
 lib/screenplay-xml/txt/Summerschool-at-the-NSA.txt
 lib/screenplay-xml/txt/TOW_Fountainhead_1.txt
 lib/screenplay-xml/txt/TOW_Fountainhead_2.txt
 	sussman-interview \
 	humanity-excerpt-for-X-G-Screenplay-demo \
 
-SCREENPLAY_DOCS = \
-	$(SCREENPLAY_DOCS_ADDITIONS) \
-	Blue-Rabbit-Log-Part-1 \
-	Humanity-Movie \
-	Humanity-Movie-hebrew \
-	hitchhikers-guide-to-star-trek-tng-hand-tweaked \
-	Star-Trek--We-the-Living-Dead \
-	Summerschool-at-the-NSA \
-	selina-mandrake-the-slayer \
-	TOW_Fountainhead_1  \
-	TOW_Fountainhead_2
+SCREENPLAY_DOCS = $(SCREENPLAY_DOCS_ADDITIONS) $(SCREENPLAY_DOCS_FROM_GEN)
 
 FICTION_DOCS = \
     fiction-text-example-for-X-G-Fiction-demo \

bin/gen-docbook-make-helpers.pl

 my $screenplay_vcs_base_dir = 'lib/screenplay-xml/from-vcs';
 
 my @screenplay_git_checkouts;
+my @screenplay_docs_basenames;
 
 sub _calc_screenplay_doc_makefile_lines
 {
         my $doc_base = $doc->{base};
         my $suf = $doc->{suffix};
 
+        push @screenplay_docs_basenames, $doc_base;
+
         my $src_varname = "${b}_${suf}_SCREENPLAY_XML_SOURCE";
         my $dest_varname = "${b}_${suf}_TXT_FROM_VCS";
 
         },
     ];
 
-    io->file("lib/make/docbook/sf-screenplays.mak")->print(
-        map { @{ _calc_screenplay_doc_makefile_lines($_) } }
-        @$screenplays_data,
-    );
+    {
+        my @o =
+        (
+            map { @{ _calc_screenplay_doc_makefile_lines($_) } }
+            @$screenplays_data,
+        );
+        io->file("lib/make/docbook/sf-screenplays.mak")->print(
+            @o,
+            "\n\nSCREENPLAY_DOCS_FROM_GEN = \\\n",
+            (map { "\t$_ \\\n" } @screenplay_docs_basenames),
+            "\n\n"
+        );
+    }
 
     foreach my $github_repo (@screenplay_git_checkouts)
     {