-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
blep compilation stage half dealt with
- Loading branch information
Showing
28 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
bin/* | ||
bin | ||
|
||
*.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 =========================== | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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\""); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.