[LON-CAPA-cvs] cvs: loncom /build Makefile

harris41 lon-capa-cvs@mail.lon-capa.org
Wed, 12 Jun 2002 15:53:46 -0000


harris41		Wed Jun 12 11:53:46 2002 EDT

  Modified files:              
    /loncom/build	Makefile 
  Log:
  tagging installations and upgrades with a VERSION release (/etc/loncapa-release)
  
  
Index: loncom/build/Makefile
diff -u loncom/build/Makefile:1.120 loncom/build/Makefile:1.121
--- loncom/build/Makefile:1.120	Sat Jun  8 11:02:08 2002
+++ loncom/build/Makefile	Wed Jun 12 11:53:46 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 
 # Scott Harrison
-# $Id: Makefile,v 1.120 2002/06/08 15:02:08 albertel Exp $
+# $Id: Makefile,v 1.121 2002/06/12 15:53:46 harris41 Exp $
 
 DISTPROBE=`perl ./distprobe`
 DIST=$(DISTPROBE)
@@ -217,7 +217,12 @@
 	make TIMESTAMP=`date +"%s"` METAMTARGET="TRANSPORT" \
 	MTARGET="rawinstall" HOSTNAME="$(HOSTNAME)" lpmladm
 
-install: TEST_hosts_tab Makefile.install Makefile
+VERSION:
+	install -d $(TARGET)/etc
+	echo -n "LON-CAPA release $(VERSION)-" > $(TARGET)/etc/loncapa-release
+	`date +"%Y%m%d"` >> $(TARGET)/etc/loncapa-release
+
+install: VERSION TEST_hosts_tab Makefile.install Makefile
 	echo -n "" > WARNINGS
 	make -f Makefile.install SOURCE="$(SOURCE)" TARGET="$(TARGET)" \
 	directories
@@ -233,7 +238,7 @@
 	echo -n "(YOU MAY NEED TO REINITIALIZE YOUR MYSQL www\@localhost USER)"
 	echo -n "Please see http://install.lon-capa.org/ for more information"
 
-rawinstall: Makefile.install Makefile
+rawinstall: VERSION Makefile.install Makefile
 	echo -n "" > WARNINGS
 	make -f Makefile.install SOURCE="$(SOURCE)" TARGET="$(TARGET)" \
 	directories