]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
use @VERSION var in build script 149/head
authoryury <yury.korolev@gmail.com>
Sat, 3 Sep 2011 16:10:42 +0000 (20:10 +0400)
committeryury <yury.korolev@gmail.com>
Sat, 3 Sep 2011 16:10:42 +0000 (20:10 +0400)
Makefile
lib/bootstrap.less

index 82603c41f6298a223dbfe971f8c868a55ec917e3..b9bd7aeb435aeadabed923cf5f5e676d4bc295bd 100644 (file)
--- 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; \
index c31bd725da330581341d7109ba035bf0419c33eb..a46a6a760539bcbea067a22b366f0ad43763e91b 100644 (file)
@@ -1,5 +1,5 @@
 /*!
- * Bootstrap v1.2.0
+ * Bootstrap @VERSION
  *
  * Copyright 2011 Twitter, Inc
  * Licensed under the Apache License v2.0