Changeset 214
- Timestamp:
- May 7, 2018, 11:22:05 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/project-meta/project-meta
r213 r214 8 8 use strict; 9 9 use warnings; 10 use version; our $VERSION = version->declare('0.0. 9');10 use version; our $VERSION = version->declare('0.0.10'); 11 11 12 12 use File::Copy qw(copy); … … 28 28 'version' => \&cmd_version, 29 29 'check' => \&cmd_check, 30 ' make-link' => \&cmd_make_link,31 ' remove-link' => \&cmd_remove_link,30 'dap-publish' => \&cmd_dap_publish, 31 'dap-unpublish' => \&cmd_dap_unpublish, 32 32 'make-zip' => \&cmd_make_zip, 33 33 'make-allfiles' => \&cmd_make_allfiles, … … 88 88 project-meta version 89 89 project-meta check 90 project-meta make-link91 project-meta remove-link90 project-meta dap-publish 91 project-meta dap-unpublish 92 92 project-meta make-zip 93 93 project-meta make-allfiles … … 123 123 ################################################################ 124 124 125 sub cmd_ make_link{125 sub cmd_dap_publish { 126 126 my $meta = YAML::Syck::LoadFile("PROJECT-META.yml"); 127 127 my $current_dir = Cwd::getcwd(); … … 168 168 ################################################################ 169 169 170 sub cmd_ remove_link{170 sub cmd_dap_unpublish { 171 171 my $meta = YAML::Syck::LoadFile("PROJECT-META.yml"); 172 172 my $current_dir = Cwd::getcwd(); … … 378 378 project-meta version 379 379 project-meta check 380 project-meta make-link381 project-meta remove-link380 project-meta dap-publish 381 project-meta dap-unpublish 382 382 project-meta make-zip 383 383 project-meta list-license … … 413 413 you can use C<yamllint> or C<ysh> commands to check just it's format. 414 414 415 =head2 make-link 416 417 project-meta make-link 418 419 Create UNIX soft links on the OpeNDAP folder to the real data. 415 =head2 dap-publish 416 417 project-meta dap-publish 418 419 Publish data on an OpeNDAP server. 420 Because data can be very large, 421 This command just create UNIX soft links on the OpeNDAP folder to the real data. 422 There is no copy. 420 423 Files F<AUTHORS.txt>, F<LICENSE.txt> and F<COPYRIGHT.txt> are mandatory but could be generated (see below). 421 424 The main keys use in the F<PROJECT-META.yml> are: … … 435 438 You have to verify ouput before eval it. 436 439 437 project-meta make-link 438 project-meta make-link | bash 439 440 =head2 remove-link 441 442 project-meta remove-link 443 444 Remove link in OpeNDAP folder for that projet. 440 project-meta dap-publish 441 project-meta dap-publish | bash 442 443 =head2 dap-unpublish 444 445 project-meta dap-unpublish 446 447 Unpublish data from the OpeNDAP server. 448 In practice, it remove links in OpeNDAP folder for that projet. 445 449 Because command C<rm> is always dangerous, 446 450 we use here the command C<find> limited to folder and link.
Note: See TracChangeset
for help on using the changeset viewer.