Revision: 71a91bd128f4
Author: Enrico Spinielli <enrico.s...@gmail.com>
Date: Sun May 29 06:59:09 2011
Log: Added some info on Mercurial and SCons.
http://code.google.com/p/pycalcal/source/detail?r=71a91bd128f4
Revision: d3d152eca1c8
Author: Enrico Spinielli <enrico.s...@gmail.com>
Date: Tue Jul 5 00:47:30 2011
Log: Added target for CL files and testSunset.cl.
http://code.google.com/p/pycalcal/source/detail?r=d3d152eca1c8
==============================================================================
Revision: 71a91bd128f4
Author: Enrico Spinielli <enrico.s...@gmail.com>
Date: Sun May 29 06:59:09 2011
Log: Added some info on Mercurial and SCons.
http://code.google.com/p/pycalcal/source/detail?r=71a91bd128f4
Modified:
/pycalcal.nw
=======================================
--- /pycalcal.nw Sun Mar 7 06:52:32 2010
+++ /pycalcal.nw Sun May 29 06:59:09 2011
@@ -8875,6 +8875,9 @@
%%%%%%%%%%%%%%%%%%%%%%%%%
\section{SConstruct It}
\label{sec:scons}
+I installed scons via the usual \texttt{\$ sudo python setup.py install}
from
+the SCons distribution directory.
+
Here is my experiment with SCons
<<SConstruct>>=
# <<generated code warning>>
@@ -9135,6 +9138,22 @@
\appendix
%\appendixpage
%\addappheadtotoc
+%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%
+\chapter{Version control}
+I stored my code in google code repo,
\url{http://code.google.com/p/pycalcal/},
+based on Mercurial version control system.
+For an introduction to Mercurial read the excellent tutorial from Joel
Spolsky
+at \url{http://hginit.com/index.html}.
+
+Usual commands I use:
+\begin{verbatim}
+$ cd <my repo>
+$ hg status # to see what has changed
+$ hg add file1 # to add a new element in the repo
+$ hg update # to retrieve changes from the repo
+$ hg commit # to commit changes to the repo
+\end{verbatim}
%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Chunks}
==============================================================================
Revision: d3d152eca1c8
Author: Enrico Spinielli <enrico.s...@gmail.com>
Date: Tue Jul 5 00:47:30 2011
Log: Added target for CL files and testSunset.cl.
http://code.google.com/p/pycalcal/source/detail?r=d3d152eca1c8
Modified:
/pycalcal.nw
=======================================
--- /pycalcal.nw Sun May 29 06:59:09 2011
+++ /pycalcal.nw Tue Jul 5 00:47:30 2011
@@ -8443,11 +8443,14 @@
@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
<<Makefile: suffixes>>=
.SUFFIXES:
-.SUFFIXES: .nw .tex .py .dvi .defs .html .pdf .mp .asy .mps .gv .png
+.SUFFIXES: .nw .tex .py .dvi .defs .html .pdf .mp .asy .mps .gv .png .cl
.nw.py:
$(NOTANGLE) -filter btdefn -R$*.py - $(CPIF) $*.py
+.nw.cl:
+ $(NOTANGLE) -filter btdefn -R$*.cl - $(CPIF) $*.cl
+
.nw.html:
$(NOWEAVE) -filter l2h -filter btdefn -index -html $*.nw $(CPIF) $*.html
@@ -8511,7 +8514,7 @@
code: pycalcal.py pycalcaltests.py
.PHONY : tests
-tests:
+tests: testSunset.cl
$(MAKE) testdata
$(MAKE) $(UNIT_TEST_FILES)
@@ -8571,7 +8574,8 @@
$(NW_MAIN:.nw=.bib) \
figure.mp \
astro.mp \
- alt-az.asy
+ alt-az.asy \
+ testSunset.cl
.PHONY : distro
distro: all
@@ -8586,6 +8590,10 @@
pycalcaltests.py:
$(NOTANGLE) -filter btdefn -R$*.py - $(CPIF) $*.py
+testSunset.cl:
+ $(NOTANGLE) -filter btdefn -R$*.cl - $(CPIF) $*.cl
+
+
.PHONY : check
check: code tests
python pycalcaltests.py 2>&1 | tee testResult.txt