From 39c3c6896743a3b6e375d51499036bb32f752114 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Mon, 27 Feb 2017 08:24:08 +0100 Subject: [PATCH] Add --version and also display it in UI --- Makefile.base | 1 + configure.sh | 2 +- ...es.jar => nikiroo-utils-1.3.3-sources.jar} | Bin 46800 -> 49423 bytes src/be/nikiroo/fanfix/Instance.java | 4 ++-- src/be/nikiroo/fanfix/Main.java | 13 ++++++++++++- .../fanfix/bundles/resources.properties | 1 + .../fanfix/reader/LocalReaderFrame.java | 3 ++- 7 files changed, 19 insertions(+), 5 deletions(-) rename libs/{nikiroo-utils-1.2.2-sources.jar => nikiroo-utils-1.3.3-sources.jar} (69%) diff --git a/Makefile.base b/Makefile.base index 9901644..54dbf1a 100644 --- a/Makefile.base +++ b/Makefile.base @@ -94,6 +94,7 @@ resources: libs cp "$$ln" "../bin/$$ln" ; \ fi ; \ done + @cp VERSION bin/ test-resources: resources @echo Copying test resources into bin/... diff --git a/configure.sh b/configure.sh index ffdf498..42eed0d 100755 --- a/configure.sh +++ b/configure.sh @@ -48,7 +48,7 @@ echo "TEST = be/nikiroo/fanfix/test/Test" >> Makefile echo "TEST_PARAMS = $cols $ok $ko" >> Makefile echo "NAME = fanfix" >> Makefile echo "PREFIX = $PREFIX" >> Makefile -echo "JAR_FLAGS += -C bin/ org -C bin/ be -C ./ VERSION" >> Makefile +echo "JAR_FLAGS += -C bin/ org -C bin/ be -C bin/ VERSION" >> Makefile #echo "SJAR_FLAGS += -C src/ org -C src/ be -C ./ LICENSE -C ./ README.md -C ./ VERSION" >> Makefile cat Makefile.base >> Makefile diff --git a/libs/nikiroo-utils-1.2.2-sources.jar b/libs/nikiroo-utils-1.3.3-sources.jar similarity index 69% rename from libs/nikiroo-utils-1.2.2-sources.jar rename to libs/nikiroo-utils-1.3.3-sources.jar index 62e994f0d55053eaa7f4713b3963b5b4103c12cc..a7c9ff1ee16247db7dc91a0088ee1b5b11a15ca5 100644 GIT binary patch delta 13080 zcmZv@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W>h!8YG5-%~O=F@a><)ny+UFv0k{qzrsu{0mLlR@Y)R?Aq)UvL9 z%rinOC>q4u??C9l9qInc9PWPZ6Cm@A0sic9>Lm%}=%l@Bf7ZDla^l-?kgrp5 zIa_Q`WOOoZz}O-;2RIi0h(1miiC= z_05ekw0YR7w{9C2S+jJq&qUyJ5iTCPQWL!h#LK~h5@d5Ij3q4RGz@L?`g8a9X#vQ! zK{H#Bqi8TJOXI9v8Wvg62%{>Qf}5>dUqsv6adXp!$w!X-Uws{pJF>M^TqWKd2-6`^ zSkKZ-? zKj5(2XO|KXDDh)fX>sp$wj7rMF(73!WXmzozALHwB~5xZiEf+;GnwIII^q-42P2^o zqT4B2`5L!MXjo-ZxB+udQZwQR^8u{bHwq?i@r@EgHL@u~^=zGbwje5F75I}-(`HSO zq&umEMKY(clQbXwM|p@em^ZD*>|6?dV3b^8tKs*qv$aE|tr~7zpn_gYQ;SG672`dK z2Zq2txRK$Gpm=l9Jbq8{#OnF$O(v-JlC&w3*cwWp_orpL|5+HmStUrEBOtGnj!|_+9cj4Z{l7t;PehxAXi{jt6#Z zul%?Aj=EzI(nU?R`J%%I2rleE1ABCFpm>F9$^EZ1?tda`;Q2l%!vD!v0szE-|J^_? z;DKJue>0f7ZqQ)9UZj5o{wH?<0FeK0JYdW9zXHl0@ZhvwG_Xt$K9J4pU$$2dHOW6V z{7(cK0HFRq^5g#>=x7B4UhN?y`OggG{u@g}001ce4;aDkU#$Wltp8X>4-xq9$fs8t zBIrL9^S_q<*O9^l0EqsNaC+>&aPmHGAZ`j+v>ylT+D8YJ`~PH1A0LoD?O!fTKQAyU q_dg^P$$#81xtjmA2Veh>!m^@&6<+pZp?n2=1?--list ([type]): list the stories present in the library *
  • --set-reader [reader type]: set the reader type to CLI or LOCAL for * this command
  • + *
  • --version: get the version of the program
  • * * * @param args @@ -159,6 +161,8 @@ public class Main { case START: exitCode = 255; // not supposed to be selected by user break; + case VERSION: + exitCode = 255; // no arguments for this option } } @@ -212,6 +216,13 @@ public class Main { break; case SET_READER: break; + case VERSION: + System.out + .println(String.format("Fanfix version %s" + + "\nhttps://github.com/nikiroo/fanfix/" + + "\n\tWritten by Nikiroo", + Version.getCurrentVersion())); + break; case START: UIUtils.setLookAndFeel(); BasicReader.setDefaultReaderType(ReaderType.LOCAL); diff --git a/src/be/nikiroo/fanfix/bundles/resources.properties b/src/be/nikiroo/fanfix/bundles/resources.properties index 9b01475..a317eb1 100644 --- a/src/be/nikiroo/fanfix/bundles/resources.properties +++ b/src/be/nikiroo/fanfix/bundles/resources.properties @@ -18,6 +18,7 @@ HELP_SYNTAX = Valid options:\n\ \t--list: list the stories present in the library\n\ \t--set-reader [reader type]: set the reader type to CLI or LOCAL for this command\n\ \t--help: this help message\n\ +\t--version: return the version of the program\n\ \n\ Supported input types:\n\ %s\n\ diff --git a/src/be/nikiroo/fanfix/reader/LocalReaderFrame.java b/src/be/nikiroo/fanfix/reader/LocalReaderFrame.java index 0da3475..e15ee8d 100644 --- a/src/be/nikiroo/fanfix/reader/LocalReaderFrame.java +++ b/src/be/nikiroo/fanfix/reader/LocalReaderFrame.java @@ -38,6 +38,7 @@ import be.nikiroo.fanfix.data.Story; import be.nikiroo.fanfix.output.BasicOutput.OutputType; import be.nikiroo.fanfix.reader.LocalReaderBook.BookActionListener; import be.nikiroo.utils.Progress; +import be.nikiroo.utils.Version; import be.nikiroo.utils.ui.ProgressBar; import be.nikiroo.utils.ui.WrapLayout; @@ -71,7 +72,7 @@ class LocalReaderFrame extends JFrame { * the type of {@link Story} to load, or NULL for all types */ public LocalReaderFrame(LocalReader reader, String type) { - super("Fanfix Library"); + super(String.format("Fanfix %s Library", Version.getCurrentVersion())); this.reader = reader; -- 2.27.0