MetaCurator.pm

filter: Statementstmt 100% 2 / 2 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 100% 2 / 2 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« MetaCurator/HTML.pm ↑ Summary
1 package CPAN::MetaCurator;
2  
3 1 our $VERSION = '1.33';
4  
5 #-------------------------------------------------
6  
7 1 1;
8  
9 =pod
10  
11 =head1 NAME
12  
13 CPAN::MetaCurator - Manage the cpan.metacurator.sqlite database
14  
15 =head1 How to convert a Perl.Wiki.html into a jsTree
16  
17 Note: My web host and I use case-sensitive file systems.
18  
19 =head2 Prepare wikis
20  
21 =over
22 =item cd ~/savage.net.au/
23 =item Edit Perl.Wiki as desired. Includes updating the release date. Save to ~/Downloads/
24 =item cp ~/Downloads/Perl.Wiki.html to misc/
25 =item git commit -am"Update Perl.Wiki V 1.xx"
26 =item cp misc/Perl.Wiki.html $DH/misc (/dev/shm/html/misc on my machine) for eye-ball check via FF
27 =back
28  
29 =head2 Export Perl.Wiki.html
30  
31 =over
32 =item In the 'Tools' tab click 'export all'
33 =item In the export menu click 'JSON format'. This creates ~/Downloads/tiddlers.json
34 =item cd ~/perl.modules/CPAN-MetaCurator
35 =item mv ~/Downloads/tiddlers.json data/
36 =back
37  
38 =head2 Restore cpan.metapackager.sqlite
39  
40 =over
41 =item pushd ~/perl.modules/CPAN-MetaPackager
42 =item cp data/cpan.metapackager.sqlite /tmp
43 =item popd
44 =back
45  
46 =head2 Rebuild Perl Wiki Tree
47  
48 =over
49 =item 'Run' here means run from the bash command line
50 =item Run: cd ~/backup
51 =item Run: wget https://www.cpan.org/modules/02packages.details.txt.gz
52 =item Run: gunzip 02packages.details.txt.gz
53 =item Run: cp 02packages.details.txt /tmp
54 =item Run: cd ~/perl.modules/CPAN-MetaCurator
55 =item Next, set INCLUDE_PACKAGES thus:
56 =item If you have /tmp/cpan.metapackager.sqlite available use INCLUDE_PACKAGES=1 or 0 (default) otherwise
57 =item Run: INCLUDE_PACKAGES=1
58 =item Run: echo $INCLUDE_PACKAGES
59 =item Run: export INCLUDE_PACKAGES
60 =item Run: scripts/build.db.sh - to import tiddlers.json file into database data/cpan.metacurator.sqlite
61 =item Run: scripts/export.tree.sh - to export CPAN::MetaCurator database to html/cpan.metacurator.tree.html
62 =item Run: git commit -am"Recreate html/cpan.metacurator.tree.html"
63 =item Run: git push
64 =back
65  
66 =head2 Patch ~/savage.net.au/index.html
67  
68 =over
69 =item Check if CSS.and.JS.Wiki, Mojo.Wiki etc need to be uploaded
70 =item In particular, check whether or not the version date is real and not 'Unreleased'
71 =item cd ~/perl.modules/Local-Website
72 =item Edit Local::Website's data/patches.csv
73 =item Run: scripts/parse.index.sh - to patch ~/savage.net.au/index.html
74 =item Edit index.html re any other additions, eg a News Flash
75 =item Run: bu5.sh savage.net.au
76 =item Run: bu5.sh perl.modules
77 =back
78  
79 =head2 Upload
80  
81 =over
82 =item Upload Perl.Wiki.html, cpan.metacurator.tree.html to savage.net.au/misc
83 =item Upload index.html
84 =item Log in to blogs.perl.org
85 =item Post details of the uploads
86 =item Wait ... Check how it appears on blogs.perl.org. Takes about 1 min
87 =back
88  
89 =head1 Machine-Readable Change Log
90  
91 The file Changes was converted into Changelog.ini by L<Module::Metadata::Changes>.
92  
93 =head1 Version Numbers
94  
95 Version numbers < 1.00 represent development versions. From 1.00 up, they are production versions.
96  
97 =head1 Repository
98  
99 L<https://github.com/ronsavage/CPAN-MetaCurator>
100  
101 =head1 Support
102  
103 Email the author, or log a bug on RT:
104  
105 L<https://rt.cpan.org/Public/Dist/Display.html?Name=CPAN-MetaCurator>.
106  
107 =head1 Author
108  
109 Current maintainer: Ron Savage I<E<lt>ron@savage.net.auE<gt>>.
110  
111 My homepage: L<https://savage.net.au/>.
112  
113 =head1 License
114  
115 Perl 5.
116  
117 =head1 Copyright
118  
119 Australian copyright (c) 2025, Ron Savage.
120  
121 All Programs of mine are 'OSI Certified Open Source Software';
122 you can redistribute them and/or modify them under the terms of
123 The Perl License, a copy of which is available at:
124 http://dev.perl.org/licenses/
125  
126 =cut
« MetaCurator/HTML.pm ↑ Summary