Fix printing the version string when configured with --local.

This commit is contained in:
Yann E. MORIN" 2007-08-15 15:39:44 +00:00
parent 54cca9f2ba
commit ecab7e451f
4 changed files with 5 additions and 5 deletions

View File

View File

@ -96,7 +96,7 @@ install-lib-main: install-local-test $(LIBDIR)
tar cf - --exclude=.svn $${src_dir} |(cd $(LIBDIR); tar xf -); \
done
@rm -f $(LIBDIR)/tools/addToolVersion.sh
@for src_file in steps.mk version; do \
@for src_file in steps.mk .version; do \
echo " INST $${src_file}"; \
install -m 644 $${src_file} $(LIBDIR)/$${src_file}; \
done

2
configure vendored
View File

@ -1,6 +1,6 @@
#!/bin/sh
VERSION=$(cat version)
VERSION=$(cat .version)
DATE=$(date +%Y%m%d)
PREFIX_DEFAULT=/usr/local

View File

@ -14,10 +14,10 @@ export CT_LIB_DIR:=@@CT_LIBDIR@@
export CT_DOC_DIR:=@@CT_DOCDIR@@
# This is crosstool-NG version string
export CT_VERSION=$(shell cat $(CT_LIB_DIR)/version)
export CT_VERSION:=$(shell cat $(CT_LIB_DIR)/.version)
export CT_STOP=$(STOP)
export CT_RESTART=$(RESTART)
export CT_STOP:=$(STOP)
export CT_RESTART:=$(RESTART)
.PHONY: $(PHONY)
PHONY += all