0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-03-10 10:29:23 +01:00

Merge pull request #149 from yury/version_var

use VERSION var in build script
This commit is contained in:
Jacob Thornton 2011-09-03 23:12:36 -07:00
commit 43b01d1b80
2 changed files with 5 additions and 4 deletions

View File

@ -1,13 +1,14 @@
VERSION=1.2.0
DATE=$(shell DATE)
BOOTSTRAP = ./bootstrap-1.2.0.css
BOOTSTRAP_MIN = ./bootstrap-1.2.0.min.css
BOOTSTRAP = ./bootstrap-${VERSION}.css
BOOTSTRAP_MIN = ./bootstrap-${VERSION}.min.css
BOOTSTRAP_LESS = ./lib/bootstrap.less
LESS_COMPESSOR ?= `which lessc`
WATCHR ?= `which watchr`
build:
@@if test ! -z ${LESS_COMPESSOR}; then \
sed 's/@DATE/'"${DATE}"'/' ${BOOTSTRAP_LESS} >${BOOTSTRAP_LESS}.tmp; \
sed -e 's/@VERSION/'"v${VERSION}"'/' -e 's/@DATE/'"${DATE}"'/' <${BOOTSTRAP_LESS} >${BOOTSTRAP_LESS}.tmp; \
lessc ${BOOTSTRAP_LESS}.tmp > ${BOOTSTRAP}; \
lessc ${BOOTSTRAP_LESS}.tmp > ${BOOTSTRAP_MIN} --compress; \
rm -f ${BOOTSTRAP_LESS}.tmp; \

2
lib/bootstrap.less vendored
View File

@ -1,5 +1,5 @@
/*!
* Bootstrap v1.2.0
* Bootstrap @VERSION
*
* Copyright 2011 Twitter, Inc
* Licensed under the Apache License v2.0