Skip to content

Instantly share code, notes, and snippets.

@ethangardner
Created January 28, 2011 19:37
Show Gist options
  • Save ethangardner/800808 to your computer and use it in GitHub Desktop.
Save ethangardner/800808 to your computer and use it in GitHub Desktop.
Combine Multiple Files using Linux or Cygwin command line
#code from article at http://beardscratchers.com/journal/compressing-css-and-javascript-with-yui-compressor
JSDIR="./www/js"
echo "1. Combining Javascript"
# Combine all the javascript to a single temporary file
cat $JSDIR/mootools-1.2-core.js \
$JSDIR/mootools-1.2-more.js \
$JSDIR/functions.js \
$JSDIR/common.js > $JSDIR/tmp.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment