mirror of
https://github.com/twbs/bootstrap.git
synced 2025-03-11 11:29:26 +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)
|
DATE=$(shell DATE)
|
||||||
BOOTSTRAP = ./bootstrap-1.2.0.css
|
BOOTSTRAP = ./bootstrap-${VERSION}.css
|
||||||
BOOTSTRAP_MIN = ./bootstrap-1.2.0.min.css
|
BOOTSTRAP_MIN = ./bootstrap-${VERSION}.min.css
|
||||||
BOOTSTRAP_LESS = ./lib/bootstrap.less
|
BOOTSTRAP_LESS = ./lib/bootstrap.less
|
||||||
LESS_COMPESSOR ?= `which lessc`
|
LESS_COMPESSOR ?= `which lessc`
|
||||||
WATCHR ?= `which watchr`
|
WATCHR ?= `which watchr`
|
||||||
|
|
||||||
build:
|
build:
|
||||||
@@if test ! -z ${LESS_COMPESSOR}; then \
|
@@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}; \
|
||||||
lessc ${BOOTSTRAP_LESS}.tmp > ${BOOTSTRAP_MIN} --compress; \
|
lessc ${BOOTSTRAP_LESS}.tmp > ${BOOTSTRAP_MIN} --compress; \
|
||||||
rm -f ${BOOTSTRAP_LESS}.tmp; \
|
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
|
* Copyright 2011 Twitter, Inc
|
||||||
* Licensed under the Apache License v2.0
|
* Licensed under the Apache License v2.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user