Skip to content

Commit ac332fd

Browse files
committed
updated Makefile and merging.txt to the new system
1 parent 4040444 commit ac332fd

File tree

2 files changed

+45
-69
lines changed

2 files changed

+45
-69
lines changed

Makefile

+7-28
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ CC = gcc
44

55
FTP_HOST = warwick
66
FTP_DIR = public_html/ftp/data
7-
# FTP_DIR = ./ftp/data
7+
DIST_DIR = /home/jec/ecdata-dist
88

99
ALLCURVES = allcurves/allcurves.?0000-?9999 allcurves/allcurves.??0000-??9999
1010
APLIST = aplist/aplist.?0000-?9999 aplist/aplist.??0000-??9999
@@ -58,6 +58,7 @@ HTMLFILES = html/index.html html/shas.html html/table.html html/curves.1-1000.ht
5858
TEXTFILES = doc/manin.txt doc/file-format.txt doc/release_notes.md doc/merging.txt
5959
DATAFILES = $(ALLCURVES) $(APLIST) $(BIGSHA) $(COUNT) $(DEGPHI) $(ALLDEGPHI) $(ALLGENS) $(BSD) $(ALLISOG) $(PARICURVES) $(INTPTS) $(GALREPS) $(TWOADIC) $(OPTIMAL)
6060
FTPFILES = $(DATAFILES) $(TEXTFILES) $(HTMLFILES)
61+
DATASUBDIRS = allcurves aplist allbigsha count curves degphi alldegphi allgens allisog allbsd paricurves intpts galrep 2adic optimality
6162

6263
commit: $(FTPFILES)
6364
git add $(DATAFILES)
@@ -75,34 +76,12 @@ commit: $(FTPFILES)
7576
git checkout master
7677

7778

78-
ftp: $(FTPFILES)
79-
for f in $(DATAFILES); \
80-
do \
81-
gzip -c $${f} > ftpdir/$${f}.gz; \
82-
done;
83-
for f in $(TEXTFILES) $(HTMLDATAFILES); \
84-
do \
85-
rsync -av $${f} ftpdir/$${f}; \
86-
done; \
87-
echo Updating $(FTP_HOST):$(FTP_DIR); \
88-
rsync -avz ftpdir/ $(FTP_HOST):$(FTP_DIR)/; \
89-
ssh warwick chmod -R a+rX $(FTP_DIR)
90-
91-
tar_old: $(FTPFILES)
92-
rm -f ftpdata* ftpfiles
93-
touch ftpfiles
94-
for f in $(FTPFILES); \
95-
do echo $${f} >> ftpfiles; done
96-
tar -zcf ftpdata.tgz --files-from=ftpfiles
97-
mv ftpdata.tgz $(FTP_DIR)/..
98-
chmod 644 $(FTP_DIR)/../ftpdata.tgz
99-
10079
DATE = $(shell date +%Y-%m-%d )
10180
tar: $(FTPFILES)
102-
rm -f ecdata/*.txt
103-
rm -f ecdata/*.html
104-
rm -f ecdata/*/*
105-
for f in $(FTPFILES); do ln -s $(PWD)/$${f} ecdata/$${f}; done
106-
tar -zchf ecdata-$(DATE).tgz ecdata
81+
rm -rf $(DIST_DIR)
82+
mkdir -p $(DIST_DIR)
83+
for d in $(DATASUBDIRS) html doc; do mkdir -p $(DIST_DIR)/$${d}; done
84+
for f in $(FTPFILES); do ln -s $(PWD)/$${f} $(DIST_DIR)/$${f}; done
85+
tar -zchf ecdata-$(DATE).tgz $(DIST_DIR)
10786
scp ecdata-$(DATE).tgz $(FTP_HOST):$(FTP_DIR)/..
10887
ssh $(FTP_HOST) chmod a+r $(FTP_DIR)/../ecdata-$(DATE).tgz

doc/merging.txt

+38-41
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ NN=${nn}0000-${nn}9999
3434
cd ~/g0n/data
3535
for f in curves allcurves paricurves allbigsha allbsd alldegphi allgens allisog aplist count degphi intpts; do cp ${f}.${NN} ~/ecdata/${f}; done
3636
cd ~/ecdata
37-
git add *.${NN}
37+
for f in curves allcurves paricurves allbigsha allbsd alldegphi allgens allisog aplist count degphi intpts; do git add ${f}; done
3838

3939

4040
4. Make alllabels file:
4141

42-
sage: %runfile "labels.py"
42+
sage: %runfile "scripts/labels.py"
4343
sage: make_alllabels("curves/curves.350000-359999")
4444
(outputs a line to screen every 1000 input lines, takes about 40s per
4545
1000, so about 30 minutes)
@@ -49,29 +49,33 @@ Check that outputfile (e.g. talllabels.350000-359999) & rename without
4949
the prefix "t", moving to the alllabels/ subdirectory. Add to git
5050
tracking:
5151
mv talllabels.350000-359999 alllabels/alllabels.350000-359999
52-
git add alllabels/alllabels.350000-359999
52+
git add alllabels/
5353

5454
From now on work in data directory (~/ecdata) which is a git
55-
repository linked to https://github.com/JohnCremona/ecdata
55+
repository linked to https://github.com/JohnCremona/ecdata. All files
56+
are in the master branch; there is a second branch called gh-pages
57+
which only contains the html files, from which GitHub automatically
58+
cretes the website at http://johncremona.github.io/ecdata/ .
5659

5760
5. Email Sutherland and ask him to run his script on any new
5861
allcurves file (e.g. allcurves.350000-359999) and rename his output
5962
galrep.* (e.g. galrep.350000-359999), move to into galrep/ and
60-
git add galrep/galrep.350000-359999
63+
git add galrep/
6164

6265
5a. Create 2adic images file and move to correct place:
6366
magma -b filename:=allcurves/allcurves.350000-359999 2adic.m
6467
mv 2adic.350000-359999 2adic/
65-
git add 2adic/2adic.350000-359999
68+
git add 2adic/
6669

67-
6. Files to be edited are: table.html, shas.html, Makefile,
68-
INDEX.html, manin.txt, release_notes.txt. The first two are now
69-
created automatically by Python scripts (sharanktable.py and
70-
summarytable.py), but in each case there is a preliminary manual check
71-
to see if new Sha values have occurred or new ranks (!) in which case
72-
the scripts will need to be edited.
70+
6. Files to be edited are: html/table.html, html/shas.html, Makefile,
71+
html/index.html, doc/manin.txt, doc/release_notes.md. The first two
72+
are now created automatically by Python scripts
73+
(scripts/sharanktable.py and scripts/summarytable.py), but in each
74+
case there is a preliminary manual check to see if new Sha values have
75+
occurred or new ranks (!) in which case the scripts will need to be
76+
edited.
7377

74-
(6a): shas.html (using sharanktable.py)
78+
(6a): html/shas.html (using scripts/sharanktable.py)
7579

7680
Check up on new Sha records using
7781

@@ -81,28 +85,30 @@ to see if the script needs to provide extra columns for the
8185
table. Current range is s^2 for s in range(32)+[41,47,50,75].
8286

8387
Use sharanktable.py to create a new version newshas.html:
84-
sage: %runfile sharanktable.py
88+
sage: %runfile scripts/sharanktable.py
8589
sage: make_rankshatable(36) # to go up to 359999
86-
If happy, replace shas.html with it.
90+
If happy:
91+
mv newshas.html html/shas.html
8792

88-
(6b): table.html (using summarytable.py)
93+
(6b): html/table.html (using scripts/summarytable.py)
8994

9095
Check up on new rank records (!) using
9196

9297
sort curves/curves.*9 -n -k 5 | tail -1
9398

9499
to see if the script needs adjusting (record is now 4).
95100

96-
Use summarytable.py to create a new version newtable.html:
97-
sage: %runfile summarytable.py
101+
Use scripts/summarytable.py to create a new version newtable.html:
102+
sage: %runfile scripts/summarytable.py
98103
sage: make_table(36) # to go up to 359999
99-
If happy, replace table.html with it.
104+
If happy:
105+
mv newtable.html html/table.html
100106

101-
(6c): release_notes.txt: Add suitable section at the top.
107+
(6c): doc/release_notes.md: Add suitable section at the top.
102108

103109
(6d): Makefile: nothing should need doing.
104110

105-
(6e): INDEX.html:
111+
(6e): html/index.html:
106112
2 changes in lines with "pdate";
107113
change "up to ...";
108114
change record Sha if necessary;
@@ -118,7 +124,7 @@ cat allbigsha.*9 | awk '$5==3' | wc -l
118124
cat allbigsha.*9 | awk '$5==4' | wc -l
119125
cd ..
120126

121-
(6f) manin.txt needs some real work:
127+
(6f) doc/manin.txt needs some real work:
122128

123129
[In g0n working dir]
124130
N=35
@@ -159,35 +165,26 @@ grep -v "curve is" h1pp/h1pp.conc.6-${N} | grep -v "possible" | wc -l
159165
# counts for numbers of possible optimal curves (2-6)
160166
for n in `seq 2 6`; do echo $n; grep -c "$n possible " h1pp/h1pp.conc.6-${N}; done
161167

162-
--Now use the above numbers to manually edit manin.txt.
163-
164-
git add manin.txt INDEX.html table.html shas.html release_notes.txt
168+
--Now use the above numbers to manually edit doc/manin.txt.
165169

166170
===============
167171

168-
1. make tar ftp
169-
2. update home page
170-
3. delete older ~/public_html/ftp/ecdata-*.tgz
172+
1. make commit
171173

172-
Assuming that all looks ok & nothing has been forgotten:
174+
This commits all the changes, pushes to github, also updates the
175+
gh-pages branch and pushes that, so the website is updated too.
173176

174-
4. git commit -m "added data for 350000-359999"
177+
2. (a) email Bill Allombert to he can update pari's elldata
175178

176-
5. Use "git push origin master" to update github files
179+
(b) email John Cannon so he can update Magma's database
177180

178-
6. [No more!] Update mirror at sagemath:
179-
[ on host-56-150 or mimosa]
180-
rsync -avz /home/masgaj/public_html/ftp/data/ sagemath:ecdata-mirror/
181+
(c) Update LMFDB. On atkin, make sure that ~/lmfdb/warwick-sh is
182+
running, then
181183

182-
7. (a) email Bill Allombert to he can update pari's elldata
183-
(b) email John Cannon so he can update Magma's database
184-
(c) Update LMFDB. On atkin:
185-
(i) [not needed if working on atkin anyway]
186-
cd to ~/ecdata and git pull origin master
187-
(ii) cd ~/lmfdb; ./warwick-sh &
188-
(iii) sage
184+
%sage
189185
sage: %runfile lmfdb/elliptic_curves/import_ec_data.py
190186
sage: upload_to_db("/home/jec/ecdata",350000,359999)
187+
191188
(d) Update Sage's optional spkg (this assumes that the old version
192189
of the optional spkg is already installed):
193190
cd SAGE_ROOT/local/share/cremona

0 commit comments

Comments
 (0)