Annotation of loncom/build/Makefile, revision 1.48
1.48 ! harris41 1: # The LearningOnline Network with CAPA
! 2:
1.1 harris41 3: # Scott Harrison
1.48 ! harris41 4: # $Id$
1.1 harris41 5:
1.12 harris41 6: CDTARGET="."
1.32 harris41 7: CDFSLOC="/mnt/loncapacd/install.lon-capa.org/3.1/currentcdsource"
1.38 harris41 8: DIST="default"
1.39 harris41 9: CATEGORY="development"
1.12 harris41 10:
1.9 harris41 11: all:
12: # nothing yet here
1.1 harris41 13:
1.44 harris41 14: test: TEST_lpml_scripts TEST_system_dependencies
1.41 harris41 15: @echo "ALL SYSTEM DEPENDENCY TESTS SUCCESSFUL"
16:
17: TEST_system_dependencies:
1.44 harris41 18: echo "TESTING SYSTEM DEPENDENCIES";
1.41 harris41 19: cd system_dependencies; make
1.44 harris41 20:
21: TEST_lpml_scripts:
22: echo "TESTING LPML INSTALLATION CODE";
23: cd ../test; perl filecomparetest.pl
1.41 harris41 24:
1.1 harris41 25: cd:
1.12 harris41 26: # Build temporary script to get cd
1.11 harris41 27: # make sure there is enough disk space
1.12 harris41 28: @echo "# Automatically generated Makefile for LON-CAPA" > Makefile.cd.tmp
29: @/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
30: @echo "cd:" >> Makefile.cd.tmp
31: @echo -e "ifeq (\$$(S),1)" >> Makefile.cd.tmp
32: @echo -e "\t@echo \"There is enough disk space. Good!\"" >> Makefile.cd.tmp
33: # set up commands to copy cd image from install.lon-capa.org (wget -r)
1.19 harris41 34: @echo -e "\tcd \$$(TARGET); wget -np -N -r -l 1000 http://install.lon-capa.org/3.1/currentcdsource" >> Makefile.cd.tmp
1.14 harris41 35: @echo -e "\tcd \$$(TARGET); find ./install.lon-capa.org -name index.html | xargs rm -f" >> Makefile.cd.tmp
1.12 harris41 36: # set up cvs update commands
37: # set up cd image compilation (mkisofs)
1.15 harris41 38: @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
1.12 harris41 39: @echo -e "else" >> Makefile.cd.tmp
40: @echo -e "\t@echo \"ERROR ******* Not enough disk space. There must be at least one gigabyte free\"" >> Makefile.cd.tmp
41: @echo -e "endif" >> Makefile.cd.tmp
1.19 harris41 42: @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
1.12 harris41 43: make -f Makefile.cd.tmp TARGET="$(CDTARGET)" cd
1.1 harris41 44:
45: cd_cover:
1.2 harris41 46:
1.3 harris41 47: HTML:
48: install -d HTML
49: cp ../../doc/loncapafiles/*.gif HTML
50: perl parse.pl ../../doc/loncapafiles/loncapafiles.html HTML > HTML/index.html
51:
1.8 harris41 52: status:
1.7 harris41 53: install -d HTML
54: cp ../../doc/loncapafiles/*.gif HTML
1.39 harris41 55: cat ../../doc/loncapafiles/loncapafiles.lpml | \
56: perl lpml_parse.pl html $(CATEGORY) $(DIST) "../.." "" > \
57: HTML/filestatus.html
1.48 ! harris41 58:
! 59: oldstatus:
! 60: perl parse.pl ../../doc/loncapafiles/loncapafiles.html status > HTML/filestatus.html
1.7 harris41 61:
1.22 harris41 62: statuspost: status
63: cp ../../doc/loncapafiles/*.gif /home/httpd/html/lon-status
64: cp HTML/filestatus.html /home/httpd/html/lon-status/filestatus.html
65:
1.33 harris41 66: rpmstatus:
67: install -d RPMSTATUS
1.43 harris41 68: rpm -qa --queryformat '%{NAME}\t%{VERSION}\t%{RELEASE}\t%{BUILDTIME}\n' | sort > RPMSTATUS/current.tmp
1.34 harris41 69: cat ../../doc/otherfiles/cd_rpms.txt > RPMSTATUS/standard.tmp
1.36 harris41 70: cat ../../doc/otherfiles/rpm_list.txt > RPMSTATUS/expected.tmp
71: perl rpmparse.pl RPMSTATUS/standard.tmp RPMSTATUS/current.tmp RPMSTATUS/expected.tmp > RPMSTATUS/rpmstatus.html
1.33 harris41 72:
73: rpmstatuspost: rpmstatus
74: cp RPMSTATUS/rpmstatus.html /home/httpd/html/lon-status/rpmstatus.html
75:
1.2 harris41 76: LCMakefile:
1.3 harris41 77: perl parse.pl ../../doc/loncapafiles/loncapafiles.html LCMakefile > LCMakefile
1.2 harris41 78:
1.4 harris41 79: SPEC:
80: perl parse.pl ../../doc/loncapafiles/loncapafiles.html SPEC
1.7 harris41 81:
1.37 albertel 82: configinstall: Makefile.configinstall
1.10 harris41 83: make -f Makefile.configinstall SOURCE="../.." TARGET="" configfiles
1.47 harris41 84: perl loncaparestoreconfigurations suffix .lpmlnew
1.40 harris41 85: # make -f Makefile.configinstall TARGET="" configpermissions
1.9 harris41 86:
1.40 harris41 87: Makefile.configinstall: ../../doc/loncapafiles/loncapafiles.lpml lpml_parse.pl
88: # perl parse.pl ../../doc/loncapafiles/loncapafiles.html configinstall > Makefile.configinstall
89: cat ../../doc/loncapafiles/loncapafiles.lpml | \
90: perl lpml_parse.pl configinstall $(CATEGORY) $(DIST) "../.." "" > \
91: Makefile.configinstall
1.37 albertel 92:
1.45 harris41 93: warningnote:
94: @if (test -s WARNINGS); then \
95: W=`grep -c '\*\*\*\* WARNING' WARNINGS`; \
96: E=`grep -c '\*\*\*\* ERROR' WARNINGS`; \
97: N=`grep -c '\*\*\*\* NOTE' WARNINGS`; \
98: echo "---> $$W WARNINGS ENCOUNTERED! "; \
99: echo "---> $$E ERRORS ENCOUNTERED! "; \
100: echo "---> $$N NOTES ENCOUNTERED! "; \
101: echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"; \
102: echo "!!!! Please read the WARNINGS file !!!!"; \
103: echo "!!!! to make sure everything is !!!!"; \
104: echo "!!!! correct and taken care of !!!!"; \
105: echo "!!!! (it is output below here) !!!!"; \
106: echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"; \
107: cat WARNINGS; \
108: fi
109:
1.42 harris41 110: install: Makefile.install
1.46 harris41 111: echo -n "" > WARNINGS
1.9 harris41 112: make -f Makefile.install SOURCE="../.." TARGET="" directories
113: make -f Makefile.install SOURCE="../.." TARGET="" files
114: make -f Makefile.install SOURCE="../.." TARGET="" links
1.40 harris41 115: make configinstall
1.45 harris41 116: make warningnote
1.4 harris41 117:
1.38 harris41 118: Makefile.install: ../../doc/loncapafiles/loncapafiles.lpml lpml_parse.pl
119: cat ../../doc/loncapafiles/loncapafiles.lpml | \
1.39 harris41 120: perl lpml_parse.pl install $(CATEGORY) $(DIST) "../.." "" > \
1.38 harris41 121: Makefile.install
1.37 albertel 122:
123: build: Makefile.build
1.46 harris41 124: echo -n "" > WARNINGS
1.37 albertel 125: make -f Makefile.build all
1.45 harris41 126: make warningnote
1.37 albertel 127:
1.39 harris41 128: Makefile.build: ../../doc/loncapafiles/loncapafiles.lpml lpml_parse.pl
129: cat ../../doc/loncapafiles/loncapafiles.lpml | \
130: perl lpml_parse.pl build $(CATEGORY) $(DIST) "../.." "" > \
131: Makefile.build
1.8 harris41 132:
1.6 harris41 133: RPM: BinaryRoot
134: cat base_file_list.txt | perl make_rpm.pl base 3.1 '' '' BinaryRoot
1.20 harris41 135: cat setup_file_list.txt | perl make_rpm.pl setup 3.1 '' '' BinaryRoot
1.32 harris41 136: cp LON-CAPA-base-3.1-1.i386.rpm $(CDFSLOC)/RedHat/RPMS/.
137: cp LON-CAPA-setup-3.1-1.i386.rpm $(CDFSLOC)/RedHat/RPMS/.
1.6 harris41 138:
139: BinaryRoot:
1.5 harris41 140: perl parse.pl ../../doc/loncapafiles/loncapafiles.html BinaryRoot
141:
1.23 harris41 142: loncapaconfig:
143: rm -Rf LoncapaconfigRoot
144: install -d LoncapaconfigRoot/usr/src/
1.24 harris41 145: install -d LoncapaconfigRoot/usr/lib/python1.5/site-packages
146: install /usr/lib/python1.5/site-packages/kudzumodule.so LoncapaconfigRoot/usr/lib/python1.5/site-packages/kudzumodule.so
1.23 harris41 147: cd LoncapaconfigRoot/usr/src; cp -pR /mnt/drive/loncapaconfig .
148: install -d LoncapaconfigRoot/usr/sbin
149: @echo -e "#!/bin/sh\ncd /usr/src/loncapaconfig/usr/bin; ./loncapaconfig\n" > LoncapaconfigRoot/usr/sbin/loncapaconfig
150: chmod u+x LoncapaconfigRoot/usr/sbin/loncapaconfig
1.24 harris41 151: find LoncapaconfigRoot -type d | xargs chmod o-wxr
152: find LoncapaconfigRoot -type f | xargs chmod o-wxr
153: find LoncapaconfigRoot/ -type d | grep 'src/lon' > loncapaconfig_file_list.txt
154: find LoncapaconfigRoot/ -type d | grep '^LoncapaconfigRoot/usr/lib/python1.5/site-packages' >> loncapaconfig_file_list.txt
155: find LoncapaconfigRoot/ -type f >> loncapaconfig_file_list.txt
156: cat loncapaconfig_file_list.txt | perl make_rpm.pl loncapaconfig 3.1 '' '' LoncapaconfigRoot
157: cp LON-CAPA-loncapaconfig-3.1-1.i386.rpm /mnt/drive/install.lon-capa.org/3.1/currentcdsource/RedHat/RPMS/.
1.23 harris41 158:
1.31 harris41 159: install.lon-capa.org: cvsreport
1.26 harris41 160: install -d docs
1.31 harris41 161: install ../../doc/build/cvsreport.html docs/cvsreport.html
1.26 harris41 162: install ../../doc/build/doc.html docs/index.html
163: install -d docs/hardware
1.27 harris41 164: install ../../doc/hardware/hardware.html docs/hardware/hardware.html
1.26 harris41 165: install -d docs/3.1
166: install ../../doc/build/install.html docs/3.1/index.html
1.29 harris41 167: install ../../doc/build/instructions_with_cd.html docs/3.1/instructions_with_cd.html
168: install ../../doc/build/libraryserverconfiguration.gif docs/3.1/libraryserverconfiguration.gif
169: install ../../doc/build/librarysystemsettings.gif docs/3.1/librarysystemsettings.gif
1.35 harris41 170: install -d docs/cvsupgrade
171: install ../../doc/build/cvsupgrade.html docs/cvsupgrade/index.html
1.26 harris41 172: install -d docs/upgrade
1.35 harris41 173: install ../../doc/build/upgrade.html docs/upgrade/index.html
1.26 harris41 174: install -d docs/reconfig
175: install ../../doc/build/reconfig.html docs/reconfig/index.html
1.27 harris41 176: install -d docs/3.1/otherfiles
1.26 harris41 177: install ../../doc/otherfiles/rpm_list.txt docs/3.1/otherfiles/rpm_list.txt
1.27 harris41 178: install ../../doc/build/loncapanetwork.html docs/loncapanetwork.html
179: install ../../doc/build/loncapanfs.html docs/loncapanfs.html
180: install ../../doc/build/loncapaappleshares.html docs/loncapaappleshares.html
1.28 harris41 181: install ../../doc/build/loncapasqldatabase.html docs/loncapasqldatabase.html
182: install ../../doc/build/loncapapasswords.html docs/loncapapasswords.html
183: install ../../doc/build/loncapapasswordauthentication.html docs/loncapapasswordauthentication.html
184: install ../../doc/build/loncapatimesync.html docs/loncapatimesync.html
185: install ../../doc/build/loncapamathequivalency.html docs/loncapamathequivalency.html
1.27 harris41 186: tar czvf install.lon-capa.org_docs.tar.gz docs
187: rm -Rf docs
1.26 harris41 188:
1.30 harris41 189: cvsreport:
1.31 harris41 190: echo "<H1>Automatically generated CVS report</H1>" > ../../doc/build/cvsreport.html
191: echo "<H1>LON-CAPA Software Changes from `date --date='7 days ago' +\"%Y-%m-%d\"` to `date +\"%Y-%m-%d\"`</H1>" >> ../../doc/build/cvsreport.html
192: echo "<P>Number of altered files:" >> ../../doc/build/cvsreport.html
193: cd ../..; cvs log -d ">`date --date='8 days ago' +\"%Y-%m-%d\"`" loncom CAPA doc packaging 2>/dev/null | perl loncom/build/cvsfilter.pl | grep '^Working file:' | cut -b15- | wc -l >> doc/build/cvsreport.html
194: echo "</P><P>Altered files:</P><P><PRE>" >> ../../doc/build/cvsreport.html
195: cd ../..; cvs log -d ">`date --date='8 days ago' +\"%Y-%m-%d\"`" loncom CAPA doc packaging 2>/dev/null | perl loncom/build/cvsfilter.pl | grep '^Working file:' | cut -b15- >> doc/build/cvsreport.html
196: echo "</PRE></P><P>Log entries for <B>loncom</B>:</P><PRE>" >> ../../doc/build/cvsreport.html
197: cd ../../loncom; cvs log -d ">`date --date='8 days ago' +\"%Y-%m-%d\"`" . 2>/dev/null | perl ../loncom/build/cvsfilter.pl >> ../doc/build/cvsreport.html
198: echo "</PRE></P><P>Log entries for <B>CAPA</B>:</P><PRE>" >> ../../doc/build/cvsreport.html
199: cd ../../CAPA; cvs log -d ">`date --date='8 days ago' +\"%Y-%m-%d\"`" . 2>/dev/null | perl ../loncom/build/cvsfilter.pl >> ../doc/build/cvsreport.html
200: echo "</PRE></P><P>Log entries for <B>doc</B>:</P><PRE>" >> ../../doc/build/cvsreport.html
201: cd ../../doc; cvs log -d ">`date --date='8 days ago' +\"%Y-%m-%d\"`" . 2>/dev/null | perl ../loncom/build/cvsfilter.pl >> ../doc/build/cvsreport.html
202: echo "</PRE></P><P>Log entries for <B>packaging</B>:</P><PRE>" >> ../../doc/build/cvsreport.html
203: cd ../../packaging; cvs log -d ">`date --date='8 days ago' +\"%Y-%m-%d\"`" . 2>/dev/null | perl ../loncom/build/cvsfilter.pl >> ../doc/build/cvsreport.html
204: echo "</PRE></P>" >> ../../doc/build/cvsreport.html
1.1 harris41 205: clean:
1.3 harris41 206: rm -Rf HTML
1.4 harris41 207: rm -f *.spec
208: rm -f LCMakefile
1.5 harris41 209: rm -Rf BinaryRoot
210: rm -f Makefile.BinaryRoot
1.8 harris41 211: rm -f Makefile.build
212: rm -f Makefile.install
1.21 harris41 213: rm -f Makefile.install.tmp
214: rm -f Makefile.cd.tmp
215: rm -f *.rpm
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>