remove ruby build script. Python is used for the local web server anyway, so don’t introduce further dependencies for such a trivial taask as concatenating files.

This commit is contained in:
Stefan Breunig 2013-02-09 18:01:11 +01:00
parent c9045aa988
commit dcb7075dda
4 changed files with 3 additions and 12 deletions

View File

@ -87,7 +87,7 @@ Contributors
Hacking
-------
Execute `./build.rb` or `./build.py` to effectively concatenate `main.js` with all the files in `code/`. It generates the user script which may be installed into your browser. Do not modify `total-conversion-build.user.js` manually, because it is automatically generated. Please dont include it in patches either, because it makes merging harder. Instead, modify the files in `code/` and have that file built for you.
Execute `./build.py` to effectively concatenate `main.js` with all the files in `code/`. It generates the user script which may be installed into your browser. Do not modify `total-conversion-build.user.js` manually, because it is automatically generated. Please dont include it in patches either, because it makes merging harder. Instead, modify the files in `code/` and have that file built for you.
`style.css` contains most styles required for the user-script. The extra ones can be found in `code/boot.js#window.setupStyles`. Only CSS rules that depend on config variables should be defined there.

View File

@ -1,8 +1,8 @@
#!/bin/sh
./build.rb
./build.py
FORMAT=$(echo "\033[1;33m%w%f\033[0m written")
while inotifywait -qre close_write --exclude "total-conversion-build.user.js|.git*" --format "$FORMAT" .
do
./build.rb
./build.py
done

0
build.py Normal file → Executable file
View File

View File

@ -1,9 +0,0 @@
#!/usr/bin/env ruby
# encoding: utf-8
c = Dir.glob('code/*').map { |f| File.read(f) }
n = Time.now.strftime('%Y-%m-%d-%H%M%S')
m = File.read('main.js').gsub('@@BUILDDATE@@', n)
m = m.split('@@INJECTHERE@@')
t = m.insert(1, c).flatten.join("\n\n")
File.open('total-conversion-build.user.js', 'w') {|f| f.write(t) }