| 1 | package CPAN::MetaCurator; | ||
| 2 | |||
| 3 | 1 | our $VERSION = '1.29'; | |
| 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 to $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 Rebuild Perl Wiki Tree | ||
| 39 | |||
| 40 | =over | ||
| 41 | =item 'Run' here means run from the bash command line | ||
| 42 | =item Run: cp ~/backup/02packages.details.txt /tmp | ||
| 43 | =item Next, set INCLUDE_PACKAGES thus: | ||
| 44 | =item If you have /tmp/cpan.metapackager.sqlite available use INCLUDE_PACKAGES=1 or 0 (default) otherwise | ||
| 45 | =item Run: INCLUDE_PACKAGES=1 | ||
| 46 | =item Run: echo $INCLUDE_PACKAGES | ||
| 47 | =item Run: export INCLUDE_PACKAGES | ||
| 48 | =item Run: scripts/build.db.sh - to import tiddlers.json file into database data/cpan.metacurator.sqlite | ||
| 49 | =item Run: scripts/export.tree.sh - to export CPAN::MetaCurator database to html/cpan.metacurator.tree.html | ||
| 50 | =item Run: git push | ||
| 51 | =back | ||
| 52 | |||
| 53 | =head2 Patch ~/savage.net.au/index.html | ||
| 54 | |||
| 55 | =over | ||
| 56 | =item Check if CSS.and.JS.Wiki, Mojo.Wiki etc need to be uploaded | ||
| 57 | =item In particular, check whether or not the version date is real and not 'Unreleased' | ||
| 58 | =item cd ~/perl.modules/Local-Website | ||
| 59 | =item Edit Local::Website's data/patches.csv | ||
| 60 | =item Run: scripts/parse.index.sh - to patch ~/savage.net.au/index.html | ||
| 61 | =item Edit index.html re any other additions, eg a News Flash | ||
| 62 | =item Run: bu5.sh savage.net.au | ||
| 63 | =item Run: bu5.sh perl.modules | ||
| 64 | =back | ||
| 65 | |||
| 66 | =head2 Upload | ||
| 67 | |||
| 68 | =over | ||
| 69 | =item Upload Perl.Wiki.html, cpan.metacurator.tree.html to savage.net.au/misc | ||
| 70 | =item Upload index.html | ||
| 71 | =item Log in to blogs.perl.org | ||
| 72 | =item Post details of the uploads | ||
| 73 | =item Wait ... Check how it appears on blogs.perl.org. Takes about 1 min | ||
| 74 | =back | ||
| 75 | |||
| 76 | =head1 Machine-Readable Change Log | ||
| 77 | |||
| 78 | The file Changes was converted into Changelog.ini by L<Module::Metadata::Changes>. | ||
| 79 | |||
| 80 | =head1 Version Numbers | ||
| 81 | |||
| 82 | Version numbers < 1.00 represent development versions. From 1.00 up, they are production versions. | ||
| 83 | |||
| 84 | =head1 Repository | ||
| 85 | |||
| 86 | L<https://github.com/ronsavage/CPAN-MetaCurator> | ||
| 87 | |||
| 88 | =head1 Support | ||
| 89 | |||
| 90 | Email the author, or log a bug on RT: | ||
| 91 | |||
| 92 | L<https://rt.cpan.org/Public/Dist/Display.html?Name=CPAN-MetaCurator>. | ||
| 93 | |||
| 94 | =head1 Author | ||
| 95 | |||
| 96 | Current maintainer: Ron Savage I<E<lt>ron@savage.net.auE<gt>>. | ||
| 97 | |||
| 98 | My homepage: L<https://savage.net.au/>. | ||
| 99 | |||
| 100 | =head1 License | ||
| 101 | |||
| 102 | Perl 5. | ||
| 103 | |||
| 104 | =head1 Copyright | ||
| 105 | |||
| 106 | Australian copyright (c) 2025, Ron Savage. | ||
| 107 | |||
| 108 | All Programs of mine are 'OSI Certified Open Source Software'; | ||
| 109 | you can redistribute them and/or modify them under the terms of | ||
| 110 | The Perl License, a copy of which is available at: | ||
| 111 | http://dev.perl.org/licenses/ | ||
| 112 | |||
| 113 | =cut |