Quellcode durchsuchen

Updated README some more, added 64-bit pre-compiled binary

Taddeus Kroes vor 11 Jahren
Ursprung
Commit
675f641463
3 geänderte Dateien mit 23 neuen und 3 gelöschten Zeilen
  1. 8 1
      Makefile
  2. 15 2
      README.md
  3. BIN
      dist/mincss

+ 8 - 1
Makefile

@@ -1,4 +1,5 @@
 RESULT    := mincss
+DIST      := dist/mincss
 PRE_TGTS  := types
 MODULES   := color_names util stringify parser lexer parse selector simple \
              shorthand duplicates main
@@ -11,11 +12,17 @@ OCAMLLDLIBS  := str.cmxa
 OCAMLLEX  := ocamllex
 OCAMLYACC := menhir --infer --explain --dump
 
-.PHONY: all clean
+.PHONY: all dist clean
 .PRECIOUS: $(addprefix .cmi,$(ALL_NAMES))
 
 all: $(RESULT)
 
+dist: $(DIST)
+
+$(DIST): $(RESULT)
+	@mkdir -p $(@D)
+	cp $< $@
+
 %.ml: %.mll
 	$(OCAMLLEX) -o $@ $<
 

+ 15 - 2
README.md

@@ -7,8 +7,16 @@ with the official CSS specification and a traversal utility function for use in
 transformation passes.
 
 
-Optimizations
-=============
+Installation
+============
+
+For now, there is no easy installation option for mincss (yet). A pre-built
+64-bit ELF binary is available for download [here](dist/mincss). You can also
+build the binary from source (see *Building mincss* below).
+
+
+Features
+========
 
 Whitespace compression
 ----------------------
@@ -38,6 +46,11 @@ counterparts, after which the last value is used for shorthand generation:
     font: normal 12px/15px sans-serif;  |  font: bold 12px/15px sans-serif;
     font-weight: bold;                  |
 
+Sorting declarations
+--------------------
+The `--sort` command-line option sorts declarations alphabetically. This option
+is disabled by default since it does not affect file size.
+
 
 Command-line interface
 ======================

BIN
dist/mincss