Commit Graph

  • d3feb9534c Removes unnecessary return in writeReleaseAsset. This satisfies the rules for go vet. Addresses issue #35 Jim Teeuwen 2014-06-09 12:31:18 +0200
  • 17800c65a0 Fixes formatting of various generated outputs to be more compatible with go fmt. This partially addresses issue #34 Jim Teeuwen 2014-05-28 14:43:02 +0200
  • 394d5b27c0 Merge pull request #32 from XenoPhex/master jimt 2014-05-16 20:22:52 +0200
  • f93f031745 Asset retrieval is independent of OS Path Anand Gaitonde and Michael Maximilien 2014-05-16 10:34:04 -0700
  • 4b70a41eb8 Merge pull request #31 from yosssi/fix-toc-footer jimt 2014-05-12 17:52:26 +0200
  • ff2ab748eb Remove the unnecessary line break of the TOC footer yosssi 2014-05-13 00:39:28 +0900
  • 8abc1cae37 Merge pull request #30 from yosssi/add-assetnames jimt 2014-05-12 12:34:24 +0200
  • e764a84fdf Fix the following things: yosssi 2014-05-12 18:15:42 +0900
  • 57a8ec74ce Add AssetNames function which returns the names of the assets. yosssi 2014-05-12 13:59:00 +0900
  • 6c168add63 Merge pull request #29 from yosssi/fix-contributing jimt 2014-05-10 20:00:37 +0200
  • ab3c8e2995 Merge pull request #28 from yosssi/fix-config-validate jimt 2014-05-10 19:59:02 +0200
  • cda5f335ae Fix a typo of CONTRIBUTING.md (Update from "chose" to "choose") yosssi 2014-05-11 02:55:35 +0900
  • ca7033b19a Fix *Config.validate method not to make a directory when the -o flag's path does not have a directory. yosssi 2014-05-11 02:42:25 +0900
  • 2ebf002fb5 Merge pull request #26 from ian-kent/master jimt 2014-04-30 01:41:00 +0200
  • 7f6fddddd0 Add support for -ignore Ian Kent 2014-04-29 23:42:13 +0100
  • 212d2a5cdc Fixes typo in flag description. Jim Teeuwen 2014-04-10 18:10:22 +0200
  • 3834e2fe48 Fixes some code comments. Jim Teeuwen 2014-03-07 22:13:34 +0100
  • 362b0784bb Merge pull request #20 from taichi/use_to_slash jimt 2014-02-28 19:34:45 +0100
  • eb1b26017a Use / in the name of the asset. Windows path separator is not / in \. SATO taichi 2014-02-28 20:33:10 +0900
  • 1c1928d3b6 Amends README with a note on how to access generated asset data. v3.0.5 Jim Teeuwen 2014-01-29 12:43:10 +0100
  • e87a807885 Avoid expensive fmt.Fprintf calls in StringWriter.Write inner loop. This addresses issue 14. v3.0.4 Jim Teeuwen 2014-01-29 11:34:37 +0100
  • ae22b84b7e Imlpement buffered output writer for increased performance. This addresses issue 14. Jim Teeuwen 2014-01-29 11:28:32 +0100
  • 436fd0c250 Fixes a typo in the README. Jim Teeuwen 2014-01-29 02:05:30 +0100
  • 7d4f92315c Amends README with a small installation note. Jim Teeuwen 2014-01-29 02:03:55 +0100
  • f628643380 Merge branch 'batchconvert' v3.0.3 Jim Teeuwen 2014-01-29 01:44:38 +0100
  • 658f2bddf4 Runs go fmt. Jim Teeuwen 2014-01-29 01:38:29 +0100
  • bb0b560542 Fixes bytewriter to format output. Jim Teeuwen 2014-01-29 01:37:15 +0100
  • 20077324b7 Removes debug print output. Jim Teeuwen 2014-01-28 23:32:50 +0100
  • 4bf44a02f1 Merge pull request #16 from pblaszczyk/exit_code 2.0.4 jimt 2014-01-07 09:40:16 -0800
  • 85c2b05609 In case of error, exit status should be different than 0. Paweł Błaszczyk 2014-01-07 17:41:09 +0100
  • 37aa0dc02e Merge pull request #15 from pblaszczyk/fix jimt 2014-01-03 12:11:32 -0800
  • 28919a6a56 Output files are not formatted in accordance with go fmt. Paweł Błaszczyk 2014-01-03 19:08:52 +0100
  • 7bd7bcfcdf Fix for ignored trailing path separator in prefix. Paweł Błaszczyk 2014-01-03 18:46:33 +0100
  • b903585359 Revises README to reflect changes to command line API. Jim Teeuwen 2013-11-16 12:20:14 +0100
  • 4674192d6b Implement supp-ort for multiple input paths in command line tool. Jim Teeuwen 2013-11-16 12:19:19 +0100
  • 14a0ff90f8 Adds -o flag to specify output file name. Jim Teeuwen 2013-11-16 12:08:37 +0100
  • 67221add2e Replaces CONTRIBUTE file with CONTRIBUTING.md file. The list of contributors is no longer included, as it can be deduced from the git commit history. No need to maintain it twice. Jim Teeuwen 2013-11-16 11:57:31 +0100
  • f43e6bd89c Merge pull request #13 from inconshreveable/experimental jimt 2013-11-12 01:41:44 -0800
  • bd1a47dfea be more helpful on no-argument invocation Alan Shreve 2013-11-08 21:31:55 +0200
  • 8e87ecda2a return errors from calls to Asset() instead of ever panicking Alan Shreve 2013-11-08 17:38:45 +0200
  • 7ab45c816f add support for converting multiple directories simultaneously Alan Shreve 2013-11-08 17:21:11 +0200
  • 2c7ab48825 use 'go' command style recursion indicators on path inputs rather than a recursive flag Alan Shreve 2013-11-08 17:14:25 +0200
  • 965fbe401b Fixes some formatting in README. Jim Teeuwen 2013-11-01 10:36:39 +0100
  • b1eab644d7 Fixes Config.validate() to create the directory of the output file, if it does not exist. Jim Teeuwen 2013-11-01 10:34:25 +0100
  • ca6a684780 Fixes another code comment. Jim Teeuwen 2013-11-01 10:30:39 +0100
  • f5e037a829 Fixes some code comments. Jim Teeuwen 2013-11-01 10:27:50 +0100
  • a36b3d3839 Adds the -r command line flag. This determines if the input directory should be processed recursively or not. The default is false. v3.0.2 Jim Teeuwen 2013-10-30 16:08:29 +0100
  • c385518c06 Performs some minor cleanup. Adds testdata output for a debug build. Fixes README to reflect new features and behaviour. v3.0.1 Jim Teeuwen 2013-10-30 15:24:59 +0100
  • cca9f8e6b7 Removes output of both debug and release code. There really is no point to this. Jim Teeuwen 2013-10-30 14:45:04 +0100
  • 12a480432a Implements writing of TOC file. Refactors code for debug and release writers. Adds output examples for various output modes. Jim Teeuwen 2013-10-30 13:14:58 +0100
  • efd0c57cfd Fixes some minor translation issues. Jim Teeuwen 2013-10-30 11:42:09 +0100
  • 7125d6f515 Adds an extra testdata file to ensure that there are no name collisions in the generated code, when it comes to multiple assets with the same file name. Jim Teeuwen 2013-10-30 02:19:24 +0100
  • ae16b2b3c6 Finishes imlpementing the various debug and release output modes. For debug we always read assets from disk and ignore the compression and memcopy options. For release mode, the assets are all embedded and the compression/memcopy options are taken into account. Jim Teeuwen 2013-10-30 02:16:14 +0100
  • 17f2782db6 Implements output of debug code. Partially imlpements output of release code. Reorganizes testdata directory. Jim Teeuwen 2013-10-30 02:11:04 +0100
  • c4d457542a Add some more test files and directories and implement locating of asset files. Jim Teeuwen 2013-10-29 18:23:52 +0100
  • 560fbff5df Main directory becomes the library. go-bindata subdir holds the command code. Jim Teeuwen 2013-10-29 16:17:14 +0100
  • 6187b52beb Strips existing code. Refactors directory structure and begins implementation of version 3.0.1. Jim Teeuwen 2013-10-29 16:16:12 +0100
  • 79847ab3e9 Merge pull request #12 from octplane/issue-11 v2.0.3 jimt 2013-10-02 06:05:46 -0700
  • 3b99b93ffc Fix for issue #11 Pierre Baillet 2013-10-02 08:50:28 +0200
  • edbc082b2f Merge pull request #10 from octplane/mine/master v2.0.2 jimt 2013-09-30 15:07:12 -0700
  • de61f8ffd8 Additionale export Pierre Baillet 2013-09-30 21:15:16 +0200
  • e6d1b0ecbd Made the code usable as a library Pierre Baillet 2013-09-30 20:46:15 +0200
  • 6fb0150f0c Merge pull request #9 from eliasnaur/master v2.0.1 jimt 2013-09-19 08:39:46 -0700
  • f813d1c931 Added support for build tags with the -tags flag Elias Naur 2013-09-19 17:27:54 +0200
  • 871202fb0f Bumps minor version. Jim Teeuwen 2013-08-01 12:12:39 +0200
  • 0cd33e9b7d Reverts change to -out flag. One should specify the full path of the target file, instead of just the target directory. Jim Teeuwen 2013-08-01 12:10:59 +0200
  • 98703b5677 Adds a check to ensure the specified output directory actually exists. v2.0.0 Jim Teeuwen 2013-07-26 23:47:30 +0200
  • f0faa42c2f Changes the meaning of the -out command line flag. v2.0.0.1-beta Jim Teeuwen 2013-07-25 23:58:17 +0200
  • dcda30b1ad Runs go fmt. Jim Teeuwen 2013-07-25 23:57:40 +0200
  • ff063d28c6 * Bump version to new release: 2.0.0 We do this, because the changes in this patch fundamentally alter the way code is generated by the tool. This will, in some cases, be incompatible with older versions. * Performs cleanup and minor code fixes. * Adds two new command line flags: * -prefix: This accepts a partial path. It is used when generating a target function name, as well as the key for the Table of Contents map (see below). The specified prefix is applied to the input file name, causing the prefix section to be stripped from the input file path. E.g.: `` input: /path/to/foo.x prefix: /path/to output: /foo.x ` * -toc: This is a boolean flag which tells the tool to generate a table of contents for the generated data files. It creates a separate 'bindata-toc.go' file, which defines a global map named go_bindata. It then appends an init function to the generated file. This function makes the data function register itself with the global map. * Fixes the function names the tool infers from input file names to include the full path. This fixes potential name collisions when the same file name is processed from different directories. For example, we can now safely import the following two files: `` input file: css/ie/foo.css output function: css_ie_foo_css() 2.0.0 Jim Teeuwen 2013-07-25 22:46:12 +0200
  • 6a3f0aca94 Bumps version number. 1.0.1 Jim Teeuwen 2013-07-07 13:04:43 +0200
  • 10c722dc95 Fixes bug in StringWriter, which causes the compiler to generate a segfault when there are too many string concatenations. This happens when we convert a file of about 100kb or larger. Jim Teeuwen 2013-07-07 13:02:07 +0200
  • 0877d93299 Minor cleanup of README. jimt 2013-03-09 13:37:09 +0100
  • b6af78b318 Merges translation functions into translate.go. Runs gofmt on code. jimt 2013-03-09 13:31:48 +0100
  • 5f066faee3 Fix issue 4. Removes debug output from pipe mode. jimt 2013-01-26 21:06:46 +0100
  • cd9bcb69b1 Fixes grammar issues in comments for generated functions. jimt 2012-10-12 14:15:18 +0200
  • 015755bcf8 Fixes some inconsistencies in README. jimt 2012-09-04 17:15:15 +0200
  • fea0373680 Merge pull request #3 from ajhager/master jimt 2012-07-14 11:20:48 -0700
  • 93063b64a3 Fix Writers returning n-1 bytes written. Joseph Hager 2012-07-13 14:57:50 -0400
  • 98c1704190 Combine the old and new code generation methods. We can select the .rodata hack described in issue #1 by supplying the -m commandline flag. The default code generation mode is the old one. While it uses more memory, it is a safer version and offers no problems when used on platforms that restrict usage of the unsafe and reflect packages. Additionally I did some cleanup and refactoring of the code. Bumped version to 1.0.0 jim teeuwen 2012-06-22 14:12:15 +0200
  • c2d800d607 Cosmetic fixes. jim teeuwen 2012-06-14 11:20:10 +0200
  • 37af2a4b27 Fix generated code for both compressed and uncompressed modes. We now no longer require a memcpy to read the static file data and can get it directly from the .rodata section. This addresses issue #1 jim teeuwen 2012-06-13 14:17:25 +0200
  • ed2cd8b81c Some more code cleanup. jim teeuwen 2012-06-07 23:34:34 +0200
  • 665944b444 Remove some unneccesary code bits. jim teeuwen 2012-06-07 23:28:16 +0200
  • 6214789c41 Fixed typo in flag description text. jim teeuwen 2012-03-28 01:43:03 +0200
  • 384e0cafe9 Added -u flag. When this is supplied to the program, no compression of the input data will take place. This also means the generated source code changes from a function to a global variable. The function is only there because it has to decompress the binary data. When no compression is used, this is obviously not necessary. Default behaviour is still the same (with compression) so existing code using this program will not break. Fixed README to reflect new behaviour. Added new testdata examples for both compressed and uncompressed output. jim teeuwen 2012-03-28 01:39:01 +0200
  • 0450ba8421 Change signature of generated function to only return the decompressed byte slice. The error value is removed. Instead the function will panic when a decompression error occurs. This allows us to assign the data to global variables were necessary. A decompression error is considered a deal breaker and therefor the panic is warranted. jim teeuwen 2012-03-08 11:47:57 +0100
  • 360acac596 Update README to reflect fix in generated file. jim teeuwen 2012-03-06 19:31:58 +0100
  • fea0fad8ad Fix output for generated file. jim teeuwen 2012-03-06 19:30:35 +0100
  • ccc86c4533 Fix for weekly.2012-02-14 jim teeuwen 2012-02-15 12:37:05 +0100
  • 02da4740e4 Fix generate doutput code. os.Error -> error. Remove calling of go fmt from code. This should really be done manually. jim teeuwen 2012-02-11 16:49:43 +0100
  • 2b9a31984c No more Makefiles. Use go command to build and install. jim teeuwen 2012-02-09 17:35:10 +0100
  • 7df69a98df gofmt -s -w jim teeuwen 2011-12-07 13:49:06 +0100
  • 470290002e gofix go1rename jim teeuwen 2011-11-09 14:46:27 +0100
  • 468e190b33 gofix error jim teeuwen 2011-11-02 16:41:07 +0100
  • efcb2b8d06 gofix error jim teeuwen 2011-11-02 16:40:26 +0100
  • 5b255b58ee Changed code to use new rune type unicode code points. jim teeuwen 2011-10-26 11:59:30 +0200
  • 2985202b2b Fix function and package names if the user supplied versions start with a digit. jim teeuwen 2011-06-27 18:45:39 +0200
  • 55b35257df Added facilities to pipe file data into stdin. jim teeuwen 2011-06-17 18:52:40 +0200
  • c539ce1afc wrong license header in main.go jim teeuwen 2011-06-17 18:01:49 +0200