diff --git a/ci@gen b/ci@gen index 01aa76a..686a443 100644 --- a/ci@gen +++ b/ci@gen @@ -12,6 +12,9 @@ CHECK=Series if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (Title of the series the book is part of.) :" @@ -30,6 +33,9 @@ CHECK=LocalizedSeries if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (English Series Title) :" @@ -48,6 +54,9 @@ CHECK=SeriesSort if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (Sorting Order Title) :" @@ -66,6 +75,9 @@ CHECK=Count if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (The total number of books in the series. @@ -85,6 +97,9 @@ CHECK=Writer if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (Person or organization responsible for creating the scenario.) :" @@ -103,6 +118,9 @@ CHECK=Penciller if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (Person or organization responsible for drawing the art.) :" @@ -121,6 +139,9 @@ CHECK=Inker if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (Person or organization responsible for inking the pencil art.) :" @@ -139,6 +160,9 @@ CHECK=Colorist if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (Person or organization responsible for applying color to drawings.) :" @@ -157,6 +181,9 @@ CHECK=Letterer if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (Person or organization responsible for drawing text and speech bubbles.) :" @@ -175,6 +202,9 @@ CHECK=CoverArtist if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (Person or organization responsible for drawing the cover art.) :" @@ -193,6 +223,9 @@ CHECK=Editor if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (A person or organization contributing to a resource by revising or elucidating the content, e.g., adding an introduction, notes, or other critical matter. An editor may also prepare a resource for production, publication, or distribution.) :" @@ -211,6 +244,9 @@ CHECK=Translator if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (A person or organization who renders a text from one language into another, or from an older form of a language into the modern form. @@ -230,6 +266,9 @@ CHECK=Publisher if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (A person or organization responsible for publishing, releasing, or issuing a resource.) :" @@ -248,6 +287,9 @@ CHECK=Imprint if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (An imprint is a group of publications under the umbrella of a larger imprint or a Publisher. For example, Vertigo is an Imprint of DC Comics.) :" @@ -266,6 +308,9 @@ CHECK=Characters if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (Characters present in the book. @@ -285,6 +330,9 @@ CHECK=Teams if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (Teams present in the book. Usually refer to super-hero teams (e.g. Avengers). @@ -304,6 +352,9 @@ CHECK=Locations if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (Locations mentioned in the book. @@ -323,6 +374,9 @@ CHECK=MainCharacterOrTeam if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (Main character or team mentioned in the book. @@ -342,6 +396,9 @@ CHECK=Other if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK:" read VAR @@ -359,6 +416,9 @@ CHECK=Genre if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (Genre of the book or series. For example, Science-Fiction or Shonen. @@ -378,6 +438,9 @@ CHECK=AgeRating if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (Age rating of the book.) :" @@ -396,6 +459,9 @@ CHECK=SeriesGroup if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (A group or collection the series belongs to. @@ -415,6 +481,9 @@ CHECK=AlternateSeries if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (Quite specific to US comics, some books can be part of cross-over story arcs. Those fields can be used to specify an alternate series, its number and count of books.) :" @@ -433,6 +502,9 @@ CHECK=StoryArc if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (The story arc that books belong to. @@ -452,6 +524,9 @@ CHECK=StoryArcNumber if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK ( While StoryArc was originally designed to store the arc within a series, it was often used to indicate that a book was part of a reading order, composed of books from multiple series. Mylar for instance was using the field as such. @@ -473,6 +548,9 @@ CHECK=AlternateCount if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (Quite specific to US comics, some books can be part of cross-over story arcs. Those fields can be used to specify an alternate series, its number and count of books.) :" @@ -491,6 +569,9 @@ CHECK=AlternateNumber if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (Quite specific to US comics, some books can be part of cross-over story arcs. Those fields can be used to specify an alternate series, its number and count of books.) :" @@ -509,6 +590,9 @@ CHECK=Title if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (Title of the book.) :" @@ -527,10 +611,15 @@ CHECK=Summary if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (A description or summary of the book.) :" -read VAR +nano $CONF/$CHECK +VAR=$(cat $CONF/$CHECK) +#read VAR fi if [ -z "$VAR" ] then @@ -545,6 +634,9 @@ CHECK=Review if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (Review of the book.) :" @@ -563,6 +655,9 @@ CHECK=Tags if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (Tags of the book or series. For example, ninja or school life.) :" @@ -581,6 +676,9 @@ CHECK=Web if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (A URL pointing to a reference website for the book.) :" @@ -599,6 +697,9 @@ CHECK=Number if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (Number of the book in the series.) :" @@ -617,6 +718,9 @@ CHECK=Volume if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (Volume containing the book. Volume is a notion that is specific to US Comics, where the same series can have multiple volumes. Volumes can be referenced by numer 1, 2, 3… or by year 2018, 2020….) :" @@ -635,6 +739,9 @@ CHECK=Format if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (The original publication's binding format for scanned physical books or presentation format for digital sources. @@ -654,6 +761,9 @@ CHECK=Manga if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (Whether the book is a manga. This also defines the reading direction as right-to-left when set to YesAndRightToLeft. Yes/No/YesAndRightToLeft) :" @@ -672,6 +782,9 @@ CHECK=Year if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (Usually contains the release date of the book.) :" @@ -690,6 +803,9 @@ CHECK=Month if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (Usually contains the release date of the book.) :" @@ -708,6 +824,9 @@ CHECK=Day if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (Usually contains the release date of the book.) :" @@ -726,6 +845,9 @@ CHECK=LanguageISO if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (A language code describing the language of the book. @@ -745,6 +867,9 @@ CHECK=Notes if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (A free text field, usually used to store information about the application that created the ComicInfo.xml file.) :" @@ -763,6 +888,9 @@ CHECK=CommunityRating if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (Community rating of the book, from 0.0 to 5.0.) :" @@ -781,6 +909,9 @@ CHECK=BlackAndWhite if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (Whether the book is in black and white. Yes/No) :" @@ -799,6 +930,9 @@ CHECK=ScanInformation if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (A free text field, usually used to store information about who scanned the book.) :" @@ -817,6 +951,9 @@ CHECK=GTIN if [ -f $CONF/$CHECK ] then VAR=$(cat $CONF/$CHECK) +elif [ "$1" = "-f" ] +then +VAR= else echo "$CHECK (A Global Trade Item Number identifying the book. GTIN incorporates other standards like ISBN, ISSN, EAN, or JAN.) :" @@ -832,7 +969,7 @@ fi ############################################################################################################################################################ ## END ############################################################################################################################################################ -mv "$ABSOLUTE_FILE $PWD/$FILE" +mv $ABSOLUTE_FILE "$PWD/$FILE" echo "############################################################################################################################################################" cat "$PWD/$FILE" echo "############################################################################################################################################################"