Developing lightweight computation at the DSG edge

Commit 2dab45f0 authored by conxuro's avatar conxuro
Browse files

Added more version data to Makefile and banner

parent d87a94b4
......@@ -86,12 +86,23 @@ define Build/Compile
endef
define Package/qmp-small-node/install
CODENAME:=Ratafia
RELEASE:=1.0beta
$(CP) ./files/* $(1)/
$(CP) ./files/etc/config/qmp $(1)/etc/config/qmp.orig
$(SED) 's,$$$$BRANCH,$(BRANCH_GIT),g' $(1)/etc/uci-defaults/qmp_banner
$(SED) 's,$$$$REV,$(REV_GIT),g' $(1)/etc/uci-defaults/qmp_banner
$(SED) 's,$$$$COD,$(CODENAME),g' $(1)/etc/uci-defaults/qmp_banner
$(SED) 's,$$$$REV,$(RELEASE),g' $(1)/etc/uci-defaults/qmp_banner
chmod 755 $(1)/etc/init.d/qmp_autoconf
date +%Y%m%d > $(1)/etc/qmp/qmp.version
echo "QMP_ID=qMp" > $(1)/etc/qmp/qmp.release
echo "QMP_CODENAME=$(CODENAME)" >> $(1)/etc/qmp/qmp.release
echo "QMP_RELEASE=$(RELEASE)" >> $(1)/etc/qmp/qmp.release
echo "QMP_BRANCH=$(BRANCH_GIT)" >> $(1)/etc/qmp/qmp.release
echo "QMP_REVISION=$(REV_GIT)" >> $(1)/etc/qmp/qmp.release
echo "QMP_BUILDDATE=$(date +%Y%m%d)" >> $(1)/etc/qmp/qmp.release
echo "QMP_DESCRIPTION=\"qMp $(CODENAME) $(RELEASE), $(BRANCH_GIT) rev.$(REV_GIT)-$(date +%Y%m%d)\"" >> $(1)/etc/qmp/qmp.release
endef
......
#!/bin/sh
cat /etc/qmp/qmp.banner >> /etc/banner
echo "Version ratafia 1.0 (Sat Oct 29 2011) ---------------" >> /etc/banner
echo "Ratafia Recipe: http://en.wikipedia.org/wiki/Ratafia" >> /etc/banner
[ $BRANCH ] && [ $REV ] && echo "Version: http://qmp.cat/projects/qmp/repository/show?branch=$BRANCH&rev=$REV" >> /etc/banner
echo "----------------------------------------------------" >> /etc/banner
echo " ---------------------------------------------------" >> /etc/banner
echo " $CODE ($REL, $BRANCH rev.$REV-$DATE)" >> /etc/banner
echo " ---------------------------------------------------" >> /etc/banner
echo " * Recipe: http://en.wikipedia.org/wiki/Ratafia" >> /etc/banner
echo "" >> /etc/banner
echo " http://qmp.cat/projects/qmp/repository/show?branch=$BRANCH&rev=$REV" >> /etc/banner
echo " ---------------------------------------------------" >> /etc/banner
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment