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:
commit
43b01d1b80
7
Makefile
7
Makefile
@ -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
2
lib/bootstrap.less
vendored
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Bootstrap v1.2.0
|
||||
* Bootstrap @VERSION
|
||||
*
|
||||
* Copyright 2011 Twitter, Inc
|
||||
* Licensed under the Apache License v2.0
|
||||
|
Loading…
x
Reference in New Issue
Block a user