[LON-CAPA-cvs] cvs: loncom /build Makefile
harris41
lon-capa-cvs@mail.lon-capa.org
Sun, 13 Oct 2002 17:35:04 -0000
harris41 Sun Oct 13 13:35:04 2002 EDT
Modified files:
/loncom/build Makefile
Log:
BUG 860 FIXED; when a sysadmin types 'cd loncapa/loncom/build; make uninstall'
a file named UNINSTALL_SHELL_COMMANDS is generated. Instructions given are:
**** NOTE **** A file "UNINSTALL_SHELL_COMMANDS" has been generated.
First, you should view the contents of this file.
If you are happy with the 'rm -Rf'! commands (or at least
have another job lined up in case of catastrophe), then you
can execute the following: sh ./UNINSTALL_SHELL_COMMANDS
Index: loncom/build/Makefile
diff -u loncom/build/Makefile:1.135 loncom/build/Makefile:1.136
--- loncom/build/Makefile:1.135 Wed Aug 21 16:40:08 2002
+++ loncom/build/Makefile Sun Oct 13 13:35:04 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Scott Harrison, your friendly neighborhood volunteer
-# $Id: Makefile,v 1.135 2002/08/21 20:40:08 albertel Exp $
+# $Id: Makefile,v 1.136 2002/10/13 17:35:04 harris41 Exp $
# TYPICAL USAGE of this Makefile is primarily for two targets:
# "make build" and "make install".
@@ -184,6 +184,17 @@
@echo " interfere with rebuilding/recompiling software"
@echo "reallyclean: remove all files that were generated during"
@echo " building or compilation of the software"
+ @echo "uninstall: remove all directories that do not contain files"
+ @echo " from other software packages and that do not contain"
+ @echo " student and instructor data; NOTE THAT THIS IS"
+ @echo " INTERACTIVE--you will be given a final chance"
+ @echo " to look at what will and will not be deleted."
+ @echo " Still, be careful. This is a very new target and is"
+ @echo " an alpha-level software feature for now."
+ @echo "backup: rolls a tarball backup of all important student and "
+ @echo " instructor data (NOT YET IMPLEMENTED)"
+ @echo "restore: reseeds a LON-CAPA server with tarball backups "
+ @echo " generated by \"make backup\" (NOT YET IMPLEMENTED)"
@echo "*** A HELPFUL DEPENDENCY ***"
@echo "alwaysrun: blank target that is a dependency for targets"
@echo " that should \"always run\""
@@ -746,6 +757,24 @@
rm -Rf lpmladm.*
make -f Makefile.cvs clean
rm -f WARNINGS
+
+uninstall:
+ rm -f UNINSTALL_SHELL_COMMANDS
+ cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \
+ perl lpml_parse.pl uninstall_shell_commands $(CATEGORY) $(DIST) \
+ "$(SOURCE)" "$(TARGET)" > UNINSTALL_SHELL_COMMANDS
+ @echo -n "**** NOTE **** A file \"UNINSTALL_SHELL_COMMANDS\" has been "
+ @echo "generated."
+ @echo "First, you should view the contents of this file."
+ @echo "If you are happy with the 'rm -Rf'! commands (or at least"
+ @echo "have another job lined up in case of catastrophe), then you "
+ @echo "can execute the following: sh ./UNINSTALL_SHELL_COMMANDS"
+
+backup:
+ @echo "Not yet implemented"
+
+restore:
+ @echo "Not yet implemented"
# ================================================ *** A HELPFUL DEPENDENCY ***
alwaysrun: