Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 19 lines (14 sloc) 0.581 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#!/bin/bash

#Create the build directories
mkdir {tmp,build}

#Fetch the files
curl "http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.js" -o tmp/prettify.js
curl "http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.css" -o tmp/prettify.css

#Process and move the files
cat wrapper-pre.txt tmp/prettify.js wrapper-post.txt > build/prettify.js
cp tmp/prettify.css build/prettify.css

#Compress
yuicompressor build/prettify.js --type js -o build/prettify-min.js
yuicompressor build/prettify.css --type css -o build/prettify-min.css

#Clean up
rm -rf tmp
Something went wrong with that request. Please try again.