¸ðµâ :: ±ÍÇÏ Çر¸¸®

¸ðµâ :: ÇØÁ¦´Â PERL ¸ðµâ ¹èÆ÷ÆÇ¿¡¼­ ¸ðµâÀ» ±¸ÃàÇÏ°í °ü¸®ÇÏ´Â PERL ¸ðµâÀÔ´Ï´Ù.
Áö±Ý ´Ù¿î·Îµå

¸ðµâ :: ±ÍÇÏ Çر¸¸® ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Barrie Slaymaker
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~rbs/

¸ðµâ :: ±ÍÇÏ Çر¸¸® ű×


¸ðµâ :: ±ÍÇÏ Çر¸¸® ¼³¸í

Module :: Huckgry´Â Perl ¸ðµâ ¹èÆ÷ÆÇ¿¡¼­ ¸ðµâÀ» ±¸ÃàÇÏ°í °ü¸®ÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù. ¸ðµâ :: ÇØÁ¦´Â Perl ¸ðµâ ¹èÆ÷ÆÇ¿¡¼­ ¸ðµâÀ» ±¸ÃàÇÏ°í °ü¸®ÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù .FunctionParse_module_specs my @specs = parse_module_specs @argv, % ¿É¼Ç; ¸ðµâ »ç¾çÀ» ÆĽÌÇÕ´Ï´Ù. foo foo :: bar lib / foo.pm lib / foo / bar.pm lib / foo / bar.pod ¹× ÆÄÀÏÀÇ ÆÐÅ°Áö À̸§ (foo :: bar) ¹× ÆÄÀÏÀÇ °æ·Î¸¦ ¹ÝȯÇÕ´Ï´Ù ( lib / foo / bar.pm) ÇؽÃÀÇ °¢ ¸Å°³ º¯¼ö¿¡ ´ëÇØ. °á°ú Çؽô ´ÙÀ½°ú °°½À´Ï´Ù. {fileName => "lib / foo / bar.pm", package => "foo :: bar", spec => $ spec, ## ¹«¾ùÀ» Åë°úÇß½À´Ï´Ù}; A-Z, 0-9, : ¶Ç´Â '¹®ÀÚ°¡ ÆÄÀÏ À̸§À¸·Î °¡Á¤ µÈ ¹®ÀÚ°¡ Æ÷ÇÔ µÈ ¸ðµç À̸§ÀÔ´Ï´Ù. ÆÄÀÏ À̸§Àº lib / (¶Ç´Â lib / on win32)·Î ½ÃÀÛÇϰųª °æ°í°¡ Ç¥½ÃµË´Ï´Ù. Á¦°øµÈ À¯ÀÏÇÑ ¿É¼ÇÀº ´ÙÀ½°ú °°½À´Ï´Ù. as_dir ¸ðµâ À̸§ÀÌ ÆÄÀÏ À̸§À¸·Î º¯È¯ µÉ ¶§ ÆÄÀÏ À̸§ ´ë½Å "."´ë½Å Ãß°¡ "/"´ë½Å Ãß°¡ "/"´ë½Å Ãß°¡¸¦ ¾ïÁ¦ÇÕ´Ï´Ù. ÆÄÀÏ À̸§ÀÌ ÆÄ½Ì µÉ ¶§ ¾Æ¹« °Íµµ ¿µÇâÀ» ¹ÌÄ¡Áö ¾Ê½À´Ï´Ù. ÀÌ°ÍÀº MVPMÀÇ Recurse option.parse_bin_specs ³» @specs = parse_bin_specs @argv, % ¿É¼Ç; "bin"ÇÁ·Î±×·¥¿¡ ´ëÇÑ »ç¾çÀ» ±¸¹® ºÐ¼®ÇÕ´Ï´Ù. foo bin / foo : ÇؽÃÀÇ °¢ ¸Å°³ º¯¼ö¿¡ ´ëÇÑ ÆÄÀÏ (bin / foo)ÀÇ ÇÁ·Î±×·¥ À̸§ (foo) ¹× ÆÄÀÏ (bin / foo)À» ¹ÝȯÇÕ´Ï´Ù. °á°ú Çؽô ´ÙÀ½°ú °°½À´Ï´Ù. {filename => "bin / foo", program => "foo", spec => $ spec, ## in}}; »ç¾ç¿¡ µð·ºÅ丮 ±¸ºÐ ±âÈ£°¡¾ø´Â °æ¿ì "bin /"°¡ ºÙ½À´Ï´Ù. »ç¾ç¿¡ µð·ºÅ丮 ±¸ºÐ ±âÈ£°¡ÀÖ´Â °æ¿ì "bin /"°¡ prepended.parse_dist_specs°¡ ¹èÆ÷ÆÇ »ç¾ç (foo :: bar, foo-bar) ¸ñ·ÏÀ» »ç¿ëÇÏ°í {package => foo :: bar ", spec = > $ spec,} reconfigure_dist ÇöÀç perlÀ» »ç¿ëÇÏ¿© perl makefile.plÀ» ½ÇÇàÇÕ´Ï´Ù. TODO : Áö¿ø ¸ðµâ :: ºôµå ¹æ¹ý·Ð .ADD_TO_MANIFEST add_to_manifest "foo", "bar"; manifest.rm_from_manifest rm_from_manifest "foo", "bar"¿¡ Çϳª ÀÌ»óÀÇ ÆÄÀÏÀ» Ãß°¡ÇÕ´Ï´Ù. Çϳª ÀÌ»óÀÇ ÆÄÀÏÀ» manifest.install_file install_file $ from_file_hash, $ to_file_hash, % ¸ÅÅ©·Î; .newpm µð·ºÅ丮¿¡¼­ ½ÂÀÎ ÆÄÀÏÀ» ã¾Æ¼­ º¹»çÇÏ¿© ÇÊ¿ä¿¡ µû¶ó ÇÊ¿äÇÕ´Ï´Ù. ÀÐ±â ¹× Å±×. ¸ÞŸ ÅÂ±× ========= chmod °á°ú ÆÄÀÏ (¼ýÀÚ Àü¿ë) ÀÎ½Ä ÇÒ ¼ö¾ø´Â ¸ÞŸ ¶Ç´Â ¸ÅÅ©·Î ű״ °æ°í·Î ¹«½ÃµË´Ï´Ù. ¸Å´ÏÆ佺Ʈ¿¡ ÆÄÀÏÀ» Ãß°¡ÇÕ´Ï´Ù. TODO : ¸ðµâ¿¡ ÀûÀÀ :: ºôµåÀÇ Ç¥½Ã ÀýÂ÷ .TEMPLATES_FOR @FROM_FILES = TEMPLATES_FOR @to_files; ¾²±â ÇÒ ÆÄÀÏ ¸ñ·ÏÀÌ ÁÖ¾îÁö¸é ÀûÀýÇÑ ¼Ò½º ÆÄÀÏÀ» ãÀ¸½Ê½Ã¿À .Test_scripts_for @test_scripts = test_scripts_for @modules; @modules : {filename => "t / foo.t",} @modules´Â parse_module_specs.skeleton_files¿¡ ÀÇÇØ ¹Ýȯ µÈ Çؽà ¹è¿­ÀÌ @modulesÀÇ ¸ðµç .pm ¹× .pl ÆÄÀÏÀÔ´Ï´Ù. % skel_map = skeleton_files $ target_dir; Skeleton Directory.cppm CPPM $¿¡¼­ ¼³Ä¡ÇÒ ÆÄÀÏ ¸ñ·ÏÀ» ¹ÝȯÇÕ´Ï´Ù. $ to, % ¿É¼ÇÀº ¹èÆ÷ ¹× °ü·Ã Å×½ºÆ® ½ºÀ§Æ® (¹ß°ß µÈ °æ¿ì)ÀÇ ÆÄÀÏÀ» º¹»çÇÕ´Ï´Ù. Todo : º¯°æ ·Î±×¸¦ ´Ù½Ã ÀÛ¼ºÇÏÁö ¸¶½Ê½Ã¿À. ±×µéÀ» °¡Àå Àß ¾Ë ¼ö ÀÖ´ÂÁö ¸ð¸£°Ú½À´Ï´Ù. ÀÌ°ÍÀº ½ÅÈ­ÀÇ .newPMRC ¿É¼Ç ÀÏ ¼ö ÀÖ½À´Ï´Ù. TODO : FILENAME ´ëü ÆÐÅÏÀ» WIN32¿¡¼­ ±¸ºÐÇÏÁö ¾Êµµ·ÏÇϽʽÿÀ. NEWPM. /lib / ..../pm ¸ðµâÀÇ »õ ¸ðµâÀ» »ý¼ºÇÕ´Ï´Ù. .NewPMBINÀº bin /¿¡¼­ »õ ½ºÅ©¸³Æ® ÆÄÀÏÀ» ¸¸µì´Ï´Ù. Å×½ºÆ® ½ºÅ©¸³Æ®¸¦ Ãß°¡ÇÏÁö ¾Ê½À´Ï´Ù (ÀÓÀÇÀÇ ÇÁ·Î±×·¥À» Å×½ºÆ®ÇÏ´Â ¾ÈÀüÇÑ ¹æ¹ýÀÌ ¾øÀ¸¹Ç·Î) .NewPMDist »õ ¹èÆ÷ÆÇÀ» ¸¸µì´Ï´Ù. »À´ë ÆÄÀÏ¿¡¼­ ä¿ì´Â °ÍÀ» ä ¿ó´Ï´Ù. newpm () »õ·Î¿î module.mvpm mvpm $¿¡¼­ $ to, % ¿É¼ÇÀº ÆÄÀÏÀÇ À̸§À» ¹èÆ÷ ¹× ÆÄÀÏÀÇ À̸§ (¹× ÇØ´ç ÆÐÅ°Áö À̸§, ÇØ´çÇÏ´Â °æ¿ì ´Ù¸¥ ¸ðµç ÆÄÀÏ)¿¡¼­ ÆÄÀÏÀÇ À̸§À» º¯°æÇÕ´Ï´Ù. º¯°æµÈ ¸ðµç ÆÄÀÏÀÇ ¹é¾÷Àº .newpm / bak_0000 (0000¸¶´Ù 0000 ´ÜÀ§)¿¡ ¹èÄ¡µË´Ï´Ù. TODO : ÀϺΠÁ¾·ùÀÇ Àá±ÝÀ̹ǷΠµ¿½Ã¿¡ MVPMS´Â µ¿ÀÏÇÑ ¹é¾÷ µð·ºÅ丮 À̸§À» ¼±ÅÃÇÏÁö ¾Ê½À´Ï´Ù. Todo : º¯°æ ·Î±×¸¦ ´Ù½Ã ÀÛ¼ºÇÏÁö ¸¶½Ê½Ã¿À. ±×µéÀ» °¡Àå Àß ¾Ë ¼ö ÀÖ´ÂÁö ¸ð¸£°Ú½À´Ï´Ù. ÀÌ°ÍÀº ½ÅÈ­ÀÇ .newPMRC ¿É¼Ç ÀÏ ¼ö ÀÖ½À´Ï´Ù. TODO : FILENAME ´ëü ÆÐÅÏÀ» WIN32¿¡¼­ ±¸ºÐÇÏÁö ¾Ê°ÔÇϽʽÿÀ. RMPM ÆÐÅ°Áö (¶Ç´Â ¸ðµâ) À̸§ µÚ¿¡ ¸í¸í µÈ ¸ðµâ ¹× Å×½ºÆ®¸¦ Á¦°ÅÇÕ´Ï´Ù. ¿î¸í ÆÐÅ°Áö¸¦ ÂüÁ¶ÇÏ´Â ´Ù¸¥ ÆÄÀÏ¿¡ ´ëÇØ °æ°íÇÕ´Ï´Ù. ¹é¾÷ µð·ºÅ丮 (.mvpm / ... Áö±Ý, º¯°æ »çÇ×ÀÌ º¯°æµÊ)¿¡¼­ ¹é¾÷ÀÌ ¸¸µé¾îÁý´Ï´Ù. ToDo : »çÀÌÆ® º° RM ¸í·ÉÀ» '¾²·¹±â'ó·³ »ç¿ëÇϵµ·Ï Çã¿ë ÇϹǷÎÀÌ ¸í·ÉÀº »ç¿ëÀÚÀÇ ÀÛ¾÷ ȯ°æ. ÀÌ°ÍÀº µð·ºÅ͸®¸¦ À籸¼º ÇÒ ¶§±îÁö ±â´Ù¸± °ÍÀÔ´Ï´Ù .USAGEPARSE_CLI ³» ($ ¿É¼Ç, @params) = parse_options @argv, % spec; ¸í·É ÇàÀ» ÀÐ°í ¿É¼Ç ¹× ±âŸ ¸Å°³ º¯¼ö¸¦ ÆĽÌÇÕ´Ï´Ù. ¿É¼ÇÀº ¸Å°³ º¯¼ö¿Í intermixed µÉ ¼ö ÀÖ½À´Ï´Ù. ¿É¼Ç -H | -? | --help ¹× - Ç×»ó Á¤»óÀûÀÎ °ÍµéÀ»ÇϽʽÿÀ. -n | --Describe´Â ¹«¾ùÀ» Àμâ ÇÒ °ÍÀÔ´Ï´Ù. -BAR.PMTHIS´Â ¾Æ¸¶µµ XS ¹èÆ÷ÆÇ¿¡ Àß ÀÛµ¿ÇÏÁö ¾ÊÀ» °ÍÀÔ´Ï´Ù. ¾Ë·Á µå¸®°Ú½À´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.


¸ðµâ :: ±ÍÇÏ Çر¸¸® °ü·Ã ¼ÒÇÁÆ®¿þ¾î