![]() ![]() | ![]() |
outputting errors and warnings to logs/lond_errors, logs/lonc_errors, and logs/lonsql_errors.. suppose this might be done with handling SIG{'__WARN__'}, but am not if __WARN__ is called only via the "warn" function or is always output whenever data is sent to /dev/error (or the device corresponding to #2) -Scott
1: # Makefile 2: # For LON-CAPA 3: # Scott Harrison 4: # November 2000 5: 6: CDTARGET="." 7: 8: all: 9: # nothing yet here 10: 11: cd: 12: # Build temporary script to get cd 13: # make sure there is enough disk space 14: @echo "# Automatically generated Makefile for LON-CAPA" > Makefile.cd.tmp 15: @/bin/df $(CDTARGET) | perl -e '@l=<>;split(/\s+/,$$l[1]);$$s=@_[3]*1024;if ($$s>1000000000) {print "\S=1\n";} else {print "\S=0\n";}' >> Makefile.cd.tmp 16: @echo "cd:" >> Makefile.cd.tmp 17: @echo -e "ifeq (\$$(S),1)" >> Makefile.cd.tmp 18: @echo -e "\t@echo \"There is enough disk space. Good!\"" >> Makefile.cd.tmp 19: # set up commands to copy cd image from install.lon-capa.org (wget -r) 20: @echo -e "\tcd \$$(TARGET); wget -np -N -r -l 1000 http://install.lon-capa.org/3.1/currentcdsource" >> Makefile.cd.tmp 21: @echo -e "\tcd \$$(TARGET); find ./install.lon-capa.org -name index.html | xargs rm -f" >> Makefile.cd.tmp 22: # set up cvs update commands 23: # set up cd image compilation (mkisofs) 24: @echo -e "\tcd \$$(TARGET)/install.lon-capa.org/3.1/currentcdsource/; mkisofs -v -R -T -V \"LON-CAPA and Red Hat 6.2\" -b images/boot.img -c boot.cat -o \$$(TARGET)/redhat.img ." >> Makefile.cd.tmp 25: @echo -e "else" >> Makefile.cd.tmp 26: @echo -e "\t@echo \"ERROR ******* Not enough disk space. There must be at least one gigabyte free\"" >> Makefile.cd.tmp 27: @echo -e "endif" >> Makefile.cd.tmp 28: @echo -e "\t@echo \"To mount this for something like an http network install; mount -t iso9660 -o ro,loop=/dev/loop0 /mnt/drive/redhat.img /home/harris41/public_html/mount\"" >> Makefile.cd.tmp 29: make -f Makefile.cd.tmp TARGET="$(CDTARGET)" cd 30: 31: cd_cover: 32: 33: HTML: 34: install -d HTML 35: cp ../../doc/loncapafiles/*.gif HTML 36: perl parse.pl ../../doc/loncapafiles/loncapafiles.html HTML > HTML/index.html 37: 38: status: 39: install -d HTML 40: cp ../../doc/loncapafiles/*.gif HTML 41: perl parse.pl ../../doc/loncapafiles/loncapafiles.html status > HTML/filestatus.html 42: 43: statuspost: status 44: cp ../../doc/loncapafiles/*.gif /home/httpd/html/lon-status 45: cp HTML/filestatus.html /home/httpd/html/lon-status/filestatus.html 46: 47: LCMakefile: 48: perl parse.pl ../../doc/loncapafiles/loncapafiles.html LCMakefile > LCMakefile 49: 50: SPEC: 51: perl parse.pl ../../doc/loncapafiles/loncapafiles.html SPEC 52: 53: configinstall: 54: # there is a dependency on having directories in place, but oh well... 55: perl parse.pl ../../doc/loncapafiles/loncapafiles.html configinstall > Makefile.configinstall 56: make -f Makefile.configinstall SOURCE="../.." TARGET="" configfiles 57: perl loncaparestoreconfigurations lasttimestamp 58: make -f Makefile.configinstall TARGET="" configpermissions 59: 60: install: build 61: perl parse.pl ../../doc/loncapafiles/loncapafiles.html install > Makefile.install 62: make -f Makefile.install SOURCE="../.." TARGET="" directories 63: make -f Makefile.install SOURCE="../.." TARGET="" files 64: make -f Makefile.install SOURCE="../.." TARGET="" links 65: 66: build: 67: perl parse.pl ../../doc/loncapafiles/loncapafiles.html build > Makefile.build 68: make -f Makefile.build all 69: 70: RPM: BinaryRoot 71: cat base_file_list.txt | perl make_rpm.pl base 3.1 '' '' BinaryRoot 72: cat setup_file_list.txt | perl make_rpm.pl setup 3.1 '' '' BinaryRoot 73: cp LON-CAPA-base-3.1-1.i386.rpm /mnt/drive/install.lon-capa.org/3.1/currentcdsource/RedHat/RPMS/. 74: cp LON-CAPA-setup-3.1-1.i386.rpm /mnt/drive/install.lon-capa.org/3.1/currentcdsource/RedHat/RPMS/. 75: 76: BinaryRoot: 77: perl parse.pl ../../doc/loncapafiles/loncapafiles.html BinaryRoot 78: 79: loncapaconfig: 80: rm -Rf LoncapaconfigRoot 81: install -d LoncapaconfigRoot/usr/src/ 82: install -d LoncapaconfigRoot/usr/lib/python1.5/site-packages 83: install /usr/lib/python1.5/site-packages/kudzumodule.so LoncapaconfigRoot/usr/lib/python1.5/site-packages/kudzumodule.so 84: cd LoncapaconfigRoot/usr/src; cp -pR /mnt/drive/loncapaconfig . 85: install -d LoncapaconfigRoot/usr/sbin 86: @echo -e "#!/bin/sh\ncd /usr/src/loncapaconfig/usr/bin; ./loncapaconfig\n" > LoncapaconfigRoot/usr/sbin/loncapaconfig 87: chmod u+x LoncapaconfigRoot/usr/sbin/loncapaconfig 88: find LoncapaconfigRoot -type d | xargs chmod o-wxr 89: find LoncapaconfigRoot -type f | xargs chmod o-wxr 90: find LoncapaconfigRoot/ -type d | grep 'src/lon' > loncapaconfig_file_list.txt 91: find LoncapaconfigRoot/ -type d | grep '^LoncapaconfigRoot/usr/lib/python1.5/site-packages' >> loncapaconfig_file_list.txt 92: find LoncapaconfigRoot/ -type f >> loncapaconfig_file_list.txt 93: cat loncapaconfig_file_list.txt | perl make_rpm.pl loncapaconfig 3.1 '' '' LoncapaconfigRoot 94: cp LON-CAPA-loncapaconfig-3.1-1.i386.rpm /mnt/drive/install.lon-capa.org/3.1/currentcdsource/RedHat/RPMS/. 95: 96: install.lon-capa.org: 97: install -d docs 98: install ../../doc/build/doc.html docs/index.html 99: install -d docs/hardware 100: install ../../doc/hardware/hardware.html docs/hardware/hardware.html 101: install -d docs/3.1 102: install ../../doc/build/install.html docs/3.1/index.html 103: install -d docs/upgrade 104: install ../../doc/build/install.html docs/upgrade/index.html 105: install -d docs/reconfig 106: install ../../doc/build/reconfig.html docs/reconfig/index.html 107: install -d docs/3.1/otherfiles 108: install ../../doc/otherfiles/rpm_list.txt docs/3.1/otherfiles/rpm_list.txt 109: install ../../doc/build/loncapanetwork.html docs/loncapanetwork.html 110: install ../../doc/build/loncapanfs.html docs/loncapanfs.html 111: install ../../doc/build/loncapaappleshares.html docs/loncapaappleshares.html 112: install ../../doc/build/loncapasqldatabase.html docs/loncapasqldatabase.html 113: install ../../doc/build/loncapapasswords.html docs/loncapapasswords.html 114: install ../../doc/build/loncapapasswordauthentication.html docs/loncapapasswordauthentication.html 115: install ../../doc/build/loncapatimesync.html docs/loncapatimesync.html 116: install ../../doc/build/loncapamathequivalency.html docs/loncapamathequivalency.html 117: tar czvf install.lon-capa.org_docs.tar.gz docs 118: rm -Rf docs 119: 120: clean: 121: rm -Rf HTML 122: rm -f *.spec 123: rm -f LCMakefile 124: rm -Rf BinaryRoot 125: rm -f Makefile.BinaryRoot 126: rm -f Makefile.build 127: rm -f Makefile.install 128: rm -f Makefile.install.tmp 129: rm -f Makefile.cd.tmp 130: rm -f *.rpm