Version 0.9.0 + update nikiroo-utils
authorNiki Roo <niki@nikiroo.be>
Sun, 12 Feb 2017 15:42:18 +0000 (16:42 +0100)
committerNiki Roo <niki@nikiroo.be>
Sun, 12 Feb 2017 15:42:18 +0000 (16:42 +0100)
Introduced a VERSION file in configure/make

Makefile.base
README.md
VERSION [new file with mode: 0644]
configure.sh
libs/nikiroo-utils-0.9.2-sources.jar [deleted file]
libs/nikiroo-utils-0.9.3-sources.jar [new file with mode: 0644]
src/be/nikiroo/fanfix/reader/BasicReader.java

index 86050e6d3e9e7db7da1bcc2015895c0da8364a75..939658815593b027f05dd2a522a26fdf186327c1 100644 (file)
@@ -6,6 +6,7 @@
 #PREFIX = usually /usr/local (where to install the program)
 #TEST = path to main test source to compile
 #JAR_FLAGS += a list of things to pack, each usually prefixed with "-C bin/"
+#SJAR_FLAGS += a list of things to pack, each usually prefixed with "-C src/", for *-sources.jar files
 
 JAVAC = javac
 JAVAC_FLAGS += -encoding UTF-8 -d ./bin/ -cp ./src/ -Xdiags:verbose
@@ -76,6 +77,9 @@ mrproper: mrpropre
 
 mrpropre: clean
        rm -f $(NAME).jar
+       rm -f $(NAME)-sources.jar
+       [ ! -e VERSION ] || rm -f "$(NAME)-`cat VERSION`.jar"
+       [ ! -e VERSION ] || rm -f "$(NAME)-`cat VERSION`-sources.jar"
 
 love:
        @echo " ...not war."
@@ -102,10 +106,15 @@ $(NAME).jar: resources
        @[ -e bin/$(MAIN).class ] || echo You need to build the sources
        @[ -e bin/$(MAIN).class ]
        @echo Making JAR file...
+       @echo > bin/manifest
+       @[ "$(SJAR_FLAGS)" = "" ] || echo Creating $(NAME)-sources.jar...
+       @[ "$(SJAR_FLAGS)" = "" ] || $(JAR) cfm $(NAME)-sources.jar bin/manifest $(SJAR_FLAGS)
+       @[ "$(SJAR_FLAGS)" = "" ] || [ ! -e VERSION ] || echo Copying to "$(NAME)-`cat VERSION`-sources.jar"...
+       @[ "$(SJAR_FLAGS)" = "" ] || [ ! -e VERSION ] || cp $(NAME)-sources.jar "$(NAME)-`cat VERSION`-sources.jar"
        @echo "Main-Class: `echo "$(MAIN)" | sed 's:/:.:g'`" > bin/manifest
        @echo >> bin/manifest
        $(JAR) cfm $(NAME).jar bin/manifest $(JAR_FLAGS)
-       @[ ! -e VERSION ] || echo Copying to "$(NAME)-`cat VERSION`.jar"
+       @[ ! -e VERSION ] || echo Copying to "$(NAME)-`cat VERSION`.jar"...
        @[ ! -e VERSION ] || cp $(NAME).jar "$(NAME)-`cat VERSION`.jar"
 
 run: 
index cc25a7b3bd3f3bfa85eb72d091b8423cc7a3fe3b..37865b7a1a2961f36b4f1efadb4fe5fa6f51a170 100644 (file)
--- a/README.md
+++ b/README.md
@@ -82,7 +82,6 @@ Note that calling ```make libs``` will export the libraries into the src/ direct
 
 Currently missing, but either in progress or planned:
 - A GUI (work in progress)
-- A binary JAR release (and thus, version 1)
 - Some readers other than CLI (TUI, GUI)
 - Check if it can work on Android
 - French translation
diff --git a/VERSION b/VERSION
new file mode 100644 (file)
index 0000000..ac39a10
--- /dev/null
+++ b/VERSION
@@ -0,0 +1 @@
+0.9.0
index 76697d995a9f48a6c7d498e762d6762ad4e89123..2954620ed4927ab5954729caf8fc558694f55cdc 100755 (executable)
@@ -36,7 +36,8 @@ done
 echo "MAIN = be/nikiroo/fanfix/Main" > Makefile
 echo "NAME = fanfix" >> Makefile
 echo "PREFIX = $PREFIX" >> Makefile
-echo "JAR_FLAGS += -C bin/ org -C bin/ be -C ./ src" >> Makefile
+echo "JAR_FLAGS += -C bin/ org -C bin/ be -C ./ 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-0.9.2-sources.jar b/libs/nikiroo-utils-0.9.2-sources.jar
deleted file mode 100644 (file)
index 82863ab..0000000
Binary files a/libs/nikiroo-utils-0.9.2-sources.jar and /dev/null differ
diff --git a/libs/nikiroo-utils-0.9.3-sources.jar b/libs/nikiroo-utils-0.9.3-sources.jar
new file mode 100644 (file)
index 0000000..668e2b8
Binary files /dev/null and b/libs/nikiroo-utils-0.9.3-sources.jar differ
index 13e1599849128f28187c477c09c5fb673f886140..3403f872a2fbbfc12fe17f646b6792d768fb4513 100644 (file)
@@ -11,9 +11,9 @@ import be.nikiroo.fanfix.supported.BasicSupport;
 import be.nikiroo.fanfix.supported.BasicSupport.SupportType;
 
 /**
- * Command line {@link Story} reader.
+ * The class that handles the different {@link Story} readers you can use.
  * <p>
- * Will output stories to the console.
+ * All the readers should be accessed via {@link BasicReader#getReader()}.
  * 
  * @author niki
  */
@@ -159,8 +159,8 @@ public abstract class BasicReader {
        public static BasicReader getReader() {
                if (defaultType != null) {
                        switch (defaultType) {
-                       //case LOCAL:
-                               //return new LocalReader().setType(ReaderType.LOCAL);
+                       // case LOCAL:
+                       // return new LocalReader().setType(ReaderType.LOCAL);
                        case CLI:
                                return new CliReader().setType(ReaderType.CLI);
                        }