File: build_css.sh

package info (click to toggle)
pdf2htmlex 0.12%2Bds-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 972 kB
  • ctags: 854
  • sloc: cpp: 6,215; ansic: 406; python: 287; sh: 33; makefile: 12
file content (17 lines) | stat: -rwxr-xr-x 381 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh -ex
# Compile and optimize CSS code
# Copyright 2013 Lu Wang <coolwanglu@gmail.com>


BASEDIR=$(dirname $0)

build () {
    INPUT="$BASEDIR/$1"
    OUTPUT="$BASEDIR/$2"
    echo "Building $OUTPUT with YUI Compressor"
    yui-compressor --type css --charset utf-8 -o "$OUTPUT" "$INPUT"
    echo 'Done.'
}

build "base.css" "base.min.css"
build "fancy.css" "fancy.min.css"