Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryury <yury.korolev@gmail.com>2011-09-03 20:10:42 +0400
committeryury <yury.korolev@gmail.com>2011-09-03 20:10:42 +0400
commitfe8cb55cc16fb0995428b7055c6f31c6a50f6ed5 (patch)
tree83dd970900df547ad16d85d86021ca664c2bfb37 /Makefile
parent2589c0ac4ecc86feed81cfc5df344e0eb78cda64 (diff)
use @VERSION var in build script
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 82603c41f6..b9bd7aeb43 100644
--- a/Makefile
+++ b/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; \