Skip to content

Commit

Permalink
Added update.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
derek committed Oct 8, 2012
1 parent 8af6c6f commit c0eb58a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
yui-prettify
============
yui-prettify-tools
==================

This builds a customized version of Prettify for use in YUI tools.
This is a collection of scripts that will help out with building/upgrading a customized version of Prettify for use in YUI tools.

build.sh
----
Executing `build.sh` in this repository's directory will download the latest version of Prettify and wrap it with YUI customizations.

update.sh
----
Executing `update.sh` in any directory will find any Prettify JS/CSS files in sub-directories beneath it, and replace them with a new version from the build directory.
13 changes: 13 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

SRC="/Users/drg/src/yui/yui-prettify/build"

for path in $(find . -name prettify* -type f | grep -v node_modules)
do
dir=${path%/*}
file=${path##*/}

cmd="cp $SRC/$file $path"
echo $cmd
$cmd
done

0 comments on commit c0eb58a

Please sign in to comment.