Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use perl to strip whitespace from css.

Also update the built script.
  • Loading branch information...
commit 018c448cdec91e6509cdf8290ffd49843bd435cf 1 parent 137cab4
@tupton tupton authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 build.sh
  2. +2 −2 pkg/github.com.js
View
4 build.sh
@@ -1,12 +1,12 @@
#!/usr/bin/env bash
ECHO=$(type -P echo)
GREP=$(type -P grep)
-TR=$(type -P tr)
+PERL=$(type -P perl)
cd jquery-syntaxhighlighter
outfile="../pkg/github.com.js"
$ECHO -n var _INLINE_CSS = \" > $outfile
cat prettify/prettify.css styles/style.css styles/theme-balupton.css \
- | $GREP -v '^/[*]' | $TR '\n' ''>> $outfile
+ | $GREP -v '^/[*]' | $PERL -pne 's/\s*//g' >> $outfile
$ECHO \"\; >> $outfile
cat ../src/header.js \
./scripts/resources/core.console.js \
View
4 pkg/github.com.js
@@ -1,7 +1,7 @@
-var _INLINE_CSS = ".str { color: #080; }.kwd { color: #008; }.com { color: #800; }.typ { color: #606; }.lit { color: #066; }.pun { color: #660; }.pln { color: #000; }.tag { color: #008; }.atn { color: #606; }.atv { color: #080; }.dec { color: #606; }pre.prettyprint { padding: 2px; }ol.linenums { margin-top: 0; margin-bottom: 0 } /* IE indents via margin-left */li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8 { list-style-type: none }li.L1,li.L3,li.L5,li.L7,li.L9 { background: #eee }@media print { .str { color: #060; } .kwd { color: #006; font-weight: bold; } .com { color: #600; font-style: italic; } .typ { color: #404; font-weight: bold; } .lit { color: #044; } .pun { color: #440; } .pln { color: #000; } .tag { color: #006; font-weight: bold; } .atn { color: #404; } .atv { color: #060; }}.prettyprint ol,.prettyprint ul { list-style: none;}.prettyprint ol.linenums { list-style: decimal outside; padding-left: 47px; color:#AFAFAF; font-size:12px;}.prettyprint ol.linenums li { padding-left: 15px; border-left:3px #6CE26C solid;}.prettyprint li > * { font-size:14px;}.prettyprint { padding: 7px 0 5px; font-size: 14px; white-space: pre; overflow: auto; max-height: 500px; width: 100%; display: block;}.prettyprint ol, .prettyprint ul { padding: 5px 0;}.prettyprint li.L0,.prettyprint li.L1,.prettyprint li.L2,.prettyprint li.L3,.prettyprint li.L4,.prettyprint li.L5,.prettyprint li.L6,.prettyprint li.L7,.prettyprint li.L8,.prettyprint li.L9 { list-style:inherit; background:none;}.prettyprint.alternate .prettyprint.alternate li.L1, .prettyprint.alternate li.L3, .prettyprint.alternate li.L5, .prettyprint.alternate li.L7, .prettyprint.alternate li.L9 { background:#F5F5F5;}.prettyprint.theme-balupton { font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; font-style: normal; font-weight: normal; line-height: 15px;}.prettyprint.theme-balupton .com { color: #008200; /* balupton green */}.prettyprint.theme-balupton .lit { color: #066; /* google green */}.prettyprint.theme-balupton.lang-html .lit { /* CSS Property Value */ color: #066; /* google green */}.prettyprint.theme-balupton.lang-html .kwd { /* CSS Property Value Keyword */ color: #066; /* google green */ font-weight:bold;}.prettyprint.theme-balupton.lang-html .atv + .pln,.prettyprint.theme-balupton.lang-html .pun + .pln { /* CSS Property Name */ color: blue;}.prettyprint.theme-balupton .atv,.prettyprint.theme-balupton .str { color: blue;}.prettyprint.theme-balupton .atn { color: gray;}.prettyprint.theme-balupton .pln { color: black;}.prettyprint.theme-balupton .pun { color: #666;}.prettyprint.theme-balupton .typ { color: #606;}.prettyprint.theme-balupton .tag,.prettyprint.theme-balupton .kwd { color: #006699; font-weight: bold;}";
+var _INLINE_CSS = ".str{color:#080;}.kwd{color:#008;}.com{color:#800;}.typ{color:#606;}.lit{color:#066;}.pun{color:#660;}.pln{color:#000;}.tag{color:#008;}.atn{color:#606;}.atv{color:#080;}.dec{color:#606;}pre.prettyprint{padding:2px;}ol.linenums{margin-top:0;margin-bottom:0}/*IEindentsviamargin-left*/li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee}@mediaprint{.str{color:#060;}.kwd{color:#006;font-weight:bold;}.com{color:#600;font-style:italic;}.typ{color:#404;font-weight:bold;}.lit{color:#044;}.pun{color:#440;}.pln{color:#000;}.tag{color:#006;font-weight:bold;}.atn{color:#404;}.atv{color:#060;}}.prettyprintol,.prettyprintul{list-style:none;}.prettyprintol.linenums{list-style:decimaloutside;padding-left:47px;color:#AFAFAF;font-size:12px;}.prettyprintol.linenumsli{padding-left:15px;border-left:3px#6CE26Csolid;}.prettyprintli>*{font-size:14px;}.prettyprint{padding:7px05px;font-size:14px;white-space:pre;overflow:auto;max-height:500px;width:100%;display:block;}.prettyprintol,.prettyprintul{padding:5px0;}.prettyprintli.L0,.prettyprintli.L1,.prettyprintli.L2,.prettyprintli.L3,.prettyprintli.L4,.prettyprintli.L5,.prettyprintli.L6,.prettyprintli.L7,.prettyprintli.L8,.prettyprintli.L9{list-style:inherit;background:none;}.prettyprint.alternate.prettyprint.alternateli.L1,.prettyprint.alternateli.L3,.prettyprint.alternateli.L5,.prettyprint.alternateli.L7,.prettyprint.alternateli.L9{background:#F5F5F5;}.prettyprint.theme-balupton{font-family:Consolas,'BitstreamVeraSansMono','CourierNew',Courier,monospace;font-size:14px;font-style:normal;font-weight:normal;line-height:15px;}.prettyprint.theme-balupton.com{color:#008200;/*baluptongreen*/}.prettyprint.theme-balupton.lit{color:#066;/*googlegreen*/}.prettyprint.theme-balupton.lang-html.lit{/*CSSPropertyValue*/color:#066;/*googlegreen*/}.prettyprint.theme-balupton.lang-html.kwd{/*CSSPropertyValueKeyword*/color:#066;/*googlegreen*/font-weight:bold;}.prettyprint.theme-balupton.lang-html.atv+.pln,.prettyprint.theme-balupton.lang-html.pun+.pln{/*CSSPropertyName*/color:blue;}.prettyprint.theme-balupton.atv,.prettyprint.theme-balupton.str{color:blue;}.prettyprint.theme-balupton.atn{color:gray;}.prettyprint.theme-balupton.pln{color:black;}.prettyprint.theme-balupton.pun{color:#666;}.prettyprint.theme-balupton.typ{color:#606;}.prettyprint.theme-balupton.tag,.prettyprint.theme-balupton.kwd{color:#006699;font-weight:bold;}";
$(function() {
var action = window.location.href.split("/")[5];
- if (action != 'commit' && action != 'pulls') {
+ if (action != 'commit' && action != 'pulls' && action != 'pull') {
return;
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.