Skip to content

Commit

Permalink
blep compilation stage half dealt with
Browse files Browse the repository at this point in the history
  • Loading branch information
increpare committed May 8, 2015
1 parent b15b453 commit 8afafe5
Show file tree
Hide file tree
Showing 28 changed files with 54 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
bin/*
bin

*.gz
4 changes: 4 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
RewriteEngine on
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{REQUEST_FILENAME}.gz -f
RewriteRule ^(.*)$ $1.gz [L]
Binary file removed 1.png
Binary file not shown.
Binary file removed 10.png
Binary file not shown.
Binary file removed 11.png
Binary file not shown.
Binary file removed 12.png
Binary file not shown.
Binary file removed 13.png
Binary file not shown.
Binary file removed 14.png
Binary file not shown.
Binary file removed 15.png
Binary file not shown.
Binary file removed 16.png
Binary file not shown.
Binary file removed 2.png
Binary file not shown.
Binary file removed 3.png
Binary file not shown.
Binary file removed 4.png
Binary file not shown.
Binary file removed 5.png
Binary file not shown.
Binary file removed 6.png
Binary file not shown.
Binary file removed 7.png
Binary file not shown.
Binary file removed 8.png
Binary file not shown.
Binary file removed 9.png
Binary file not shown.
Binary file removed bucket.png
Binary file not shown.
Binary file removed clear.png
Binary file not shown.
23 changes: 23 additions & 0 deletions compile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash
echo ===========================
start=`date +%s`
rm -rf bin
mkdir bin
echo inlining standalone template
inliner play.html > bin/play_inlined.txt
echo copying files
cp gzipper bin/
cp -r *.* bin/
cp .htaccess ../bin/
echo compressing html
java -jar ~/progs/htmlcompressor-1.5.3.jar -r bin/ -o bin/
echo gzipping site
cd bin
./gzipper
rm gzipper
cd ..
end=`date +%s`
runtime=$((end-start))
echo script took $runtime seconds
echo ===========================

Empty file removed editor.js
Empty file.
Binary file modified exiticon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions gzipper
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/perl

# This script should be uploaded to the web server.

use warnings;
use strict;
use File::Find;
find (\&wanted, ("."));
sub wanted
{
if (/(.*\.(?:html|css|txt|js)$)/i) {
print "Compressing $File::Find::name\n";
if (! -f "$_.gz") {
system ("gzip -c --best --force \"$_\" > \"$_.gz\"");
}
}
}
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="icon"
type="image/png"
href="favicon.png">
<script type="text/javascript" >
var PLAYER=false;
var embeddedDat="__EMBED__";
Expand Down
3 changes: 3 additions & 0 deletions play.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<html>
<head>
<link rel="icon"
type="image/png"
href="favicon.png">
<title>pinball player</title>
<link href="style.css" rel="stylesheet">
<style>
Expand Down
Binary file modified spawnicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8afafe5

Please sign in to comment.