commit b42934cce3ea3565b3ce388601ea8f93c821d481
parent 304d436bd9da16c3ea9da94e0a8011e068682153
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date: Sun, 29 Mar 2015 23:29:32 +0200
Documentation update + copyright bump
Diffstat:
4 files changed, 19 insertions(+), 10 deletions(-)
diff --git a/LICENSE b/LICENSE
@@ -1,4 +1,4 @@
-Copyright (c) 2012-2014, Frederic Cambus
+Copyright (c) 2012-2015, Frederic Cambus
All rights reserved.
Redistribution and use in source and binary forms, with or without
diff --git a/README.md b/README.md
@@ -21,11 +21,15 @@ Build and install with the `go` tool :
go build ansigo
go install ansigo
-Alternatively, you can download pre-built binaries (32-bit or 64-bit), check
-the directory corresponding to your operating system. Currently, only Windows
-binaries are available.
+Alternatively, you can easily cross-compile binaries for other systems. See the `Cross-compiling AnsiGo binaries` section for instructions.
-## Cross-compiling AnsiGo binaries for Windows
+## Usage
+
+AnsiGo takes the input file as parameter :
+
+ ansigo inputfile
+
+## Cross-compiling AnsiGo binaries
Building Go for the required platform :
@@ -33,6 +37,11 @@ Building Go for the required platform :
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 ./make.bash
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 ./make.bash
+Building Linux binaries :
+
+ CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o linux/amd64/ansigo ansigo
+ CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -o linux/i386/ansigo ansigo
+
Building Windows binaries :
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o windows/amd64/ansigo.exe ansigo
diff --git a/ansi.go b/ansi.go
@@ -1,8 +1,8 @@
-// AnsiGo 1.00 (c) by Frederic Cambus 2012-2014
+// AnsiGo 1.00 (c) by Frederic Cambus 2012-2015
// http://www.github.com/fcambus/ansigo
//
// Created: 2012/02/14
-// Last Updated: 2014/12/11
+// Last Updated: 2015/03/29
//
// AnsiGo is released under the BSD 3-Clause license.
// See LICENSE file for details.
diff --git a/ansigo.go b/ansigo.go
@@ -1,8 +1,8 @@
-// AnsiGo 1.00 (c) by Frederic Cambus 2012-2014
+// AnsiGo 1.00 (c) by Frederic Cambus 2012-2015
// http://www.github.com/fcambus/ansigo
//
// Created: 2012/02/14
-// Last Updated: 2014/12/11
+// Last Updated: 2015/03/29
//
// AnsiGo is released under the BSD 3-Clause license.
// See LICENSE file for details.
@@ -21,7 +21,7 @@ import (
func main() {
- fmt.Println("-------------------------------------------------------------------------------\n AnsiGo 1.00 (c) by Frederic CAMBUS 2012-2014\n-------------------------------------------------------------------------------\n")
+ fmt.Println("-------------------------------------------------------------------------------\n AnsiGo 1.00 (c) by Frederic CAMBUS 2012-2015\n-------------------------------------------------------------------------------\n")
// Check input parameters and show usage
if len(os.Args) != 2 {