autobuild 0.6 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +21 -0
- data/Manifest.txt +34 -0
- data/{README → README.txt} +0 -0
- data/Rakefile +13 -156
- data/bin/autobuild +3 -1
- data/lib/autobuild/import/cvs.rb +8 -2
- data/lib/autobuild/import/svn.rb +6 -0
- data/lib/autobuild/packages/autotools.rb +2 -1
- data/lib/autobuild/packages/genom.rb +35 -7
- data/lib/autobuild/packages/import.rb +1 -2
- data/lib/autobuild/packages/pkgconfig.rb +24 -0
- data/lib/autobuild/packages/ruby.rb +53 -0
- data/lib/autobuild/pkgconfig.rb +43 -0
- data/lib/autobuild/reporting.rb +1 -1
- data/lib/autobuild/subcommand.rb +3 -0
- data/lib/autobuild/timestamps.rb +4 -4
- data/samples/demo.rb +25 -0
- data/test/data/cvsroot.tar +0 -0
- data/test/data/svnroot.tar +0 -0
- data/test/data/tarimport.tar.gz +0 -0
- data/test/test_import_svn.rb +1 -1
- data/test/test_subcommand.rb +6 -3
- metadata +40 -369
- data/doc/classes/Autobuild.html +0 -557
- data/doc/classes/Autobuild.src/M000005.html +0 -31
- data/doc/classes/Autobuild.src/M000006.html +0 -47
- data/doc/classes/Autobuild.src/M000007.html +0 -18
- data/doc/classes/Autobuild.src/M000008.html +0 -18
- data/doc/classes/Autobuild.src/M000009.html +0 -18
- data/doc/classes/Autobuild.src/M000010.html +0 -18
- data/doc/classes/Autobuild.src/M000011.html +0 -18
- data/doc/classes/Autobuild.src/M000012.html +0 -18
- data/doc/classes/Autobuild.src/M000013.html +0 -25
- data/doc/classes/Autobuild.src/M000014.html +0 -19
- data/doc/classes/Autobuild.src/M000015.html +0 -19
- data/doc/classes/Autobuild.src/M000016.html +0 -16
- data/doc/classes/Autobuild.src/M000017.html +0 -20
- data/doc/classes/Autobuild.src/M000018.html +0 -18
- data/doc/classes/Autobuild.src/M000019.html +0 -52
- data/doc/classes/Autobuild.src/M000020.html +0 -44
- data/doc/classes/Autobuild.src/M000021.html +0 -19
- data/doc/classes/Autobuild.src/M000022.html +0 -19
- data/doc/classes/Autobuild.src/M000023.html +0 -20
- data/doc/classes/Autobuild.src/M000024.html +0 -22
- data/doc/classes/Autobuild.src/M000033.html +0 -31
- data/doc/classes/Autobuild.src/M000034.html +0 -47
- data/doc/classes/Autobuild.src/M000035.html +0 -18
- data/doc/classes/Autobuild.src/M000036.html +0 -18
- data/doc/classes/Autobuild.src/M000037.html +0 -18
- data/doc/classes/Autobuild.src/M000038.html +0 -18
- data/doc/classes/Autobuild.src/M000039.html +0 -18
- data/doc/classes/Autobuild.src/M000040.html +0 -18
- data/doc/classes/Autobuild.src/M000041.html +0 -25
- data/doc/classes/Autobuild.src/M000042.html +0 -19
- data/doc/classes/Autobuild.src/M000043.html +0 -19
- data/doc/classes/Autobuild.src/M000044.html +0 -16
- data/doc/classes/Autobuild.src/M000045.html +0 -20
- data/doc/classes/Autobuild.src/M000046.html +0 -18
- data/doc/classes/Autobuild.src/M000047.html +0 -52
- data/doc/classes/Autobuild.src/M000048.html +0 -44
- data/doc/classes/Autobuild.src/M000049.html +0 -19
- data/doc/classes/Autobuild.src/M000050.html +0 -19
- data/doc/classes/Autobuild.src/M000051.html +0 -20
- data/doc/classes/Autobuild.src/M000052.html +0 -22
- data/doc/classes/Autobuild/Autotools.html +0 -329
- data/doc/classes/Autobuild/Autotools.src/M000055.html +0 -20
- data/doc/classes/Autobuild/Autotools.src/M000056.html +0 -20
- data/doc/classes/Autobuild/Autotools.src/M000057.html +0 -16
- data/doc/classes/Autobuild/Autotools.src/M000058.html +0 -16
- data/doc/classes/Autobuild/Autotools.src/M000059.html +0 -22
- data/doc/classes/Autobuild/Autotools.src/M000060.html +0 -29
- data/doc/classes/Autobuild/Autotools.src/M000061.html +0 -21
- data/doc/classes/Autobuild/Autotools.src/M000062.html +0 -20
- data/doc/classes/Autobuild/Autotools.src/M000063.html +0 -32
- data/doc/classes/Autobuild/Autotools.src/M000083.html +0 -20
- data/doc/classes/Autobuild/Autotools.src/M000084.html +0 -20
- data/doc/classes/Autobuild/Autotools.src/M000085.html +0 -16
- data/doc/classes/Autobuild/Autotools.src/M000086.html +0 -16
- data/doc/classes/Autobuild/Autotools.src/M000087.html +0 -22
- data/doc/classes/Autobuild/Autotools.src/M000088.html +0 -29
- data/doc/classes/Autobuild/Autotools.src/M000089.html +0 -21
- data/doc/classes/Autobuild/Autotools.src/M000090.html +0 -20
- data/doc/classes/Autobuild/Autotools.src/M000091.html +0 -32
- data/doc/classes/Autobuild/CVSImporter.html +0 -156
- data/doc/classes/Autobuild/CVSImporter.src/M000036.html +0 -26
- data/doc/classes/Autobuild/CVSImporter.src/M000037.html +0 -18
- data/doc/classes/Autobuild/CVSImporter.src/M000064.html +0 -26
- data/doc/classes/Autobuild/CVSImporter.src/M000065.html +0 -18
- data/doc/classes/Autobuild/CommandNotFound.html +0 -119
- data/doc/classes/Autobuild/ConfigException.html +0 -119
- data/doc/classes/Autobuild/DarcsImporter.html +0 -139
- data/doc/classes/Autobuild/DarcsImporter.src/M000044.html +0 -20
- data/doc/classes/Autobuild/DarcsImporter.src/M000072.html +0 -20
- data/doc/classes/Autobuild/Exception.html +0 -233
- data/doc/classes/Autobuild/Exception.src/M000087.html +0 -16
- data/doc/classes/Autobuild/Exception.src/M000088.html +0 -16
- data/doc/classes/Autobuild/Exception.src/M000089.html +0 -18
- data/doc/classes/Autobuild/Exception.src/M000090.html +0 -24
- data/doc/classes/Autobuild/Exception.src/M000115.html +0 -16
- data/doc/classes/Autobuild/Exception.src/M000116.html +0 -16
- data/doc/classes/Autobuild/Exception.src/M000117.html +0 -18
- data/doc/classes/Autobuild/Exception.src/M000118.html +0 -24
- data/doc/classes/Autobuild/GenomModule.html +0 -275
- data/doc/classes/Autobuild/GenomModule.src/M000091.html +0 -19
- data/doc/classes/Autobuild/GenomModule.src/M000092.html +0 -21
- data/doc/classes/Autobuild/GenomModule.src/M000093.html +0 -16
- data/doc/classes/Autobuild/GenomModule.src/M000094.html +0 -18
- data/doc/classes/Autobuild/GenomModule.src/M000095.html +0 -27
- data/doc/classes/Autobuild/GenomModule.src/M000096.html +0 -24
- data/doc/classes/Autobuild/GenomModule.src/M000097.html +0 -19
- data/doc/classes/Autobuild/GenomModule.src/M000098.html +0 -36
- data/doc/classes/Autobuild/GenomModule.src/M000119.html +0 -19
- data/doc/classes/Autobuild/GenomModule.src/M000120.html +0 -21
- data/doc/classes/Autobuild/GenomModule.src/M000121.html +0 -16
- data/doc/classes/Autobuild/GenomModule.src/M000122.html +0 -18
- data/doc/classes/Autobuild/GenomModule.src/M000123.html +0 -27
- data/doc/classes/Autobuild/GenomModule.src/M000124.html +0 -24
- data/doc/classes/Autobuild/GenomModule.src/M000125.html +0 -19
- data/doc/classes/Autobuild/GenomModule.src/M000126.html +0 -36
- data/doc/classes/Autobuild/Import.html +0 -131
- data/doc/classes/Autobuild/Import.src/M000033.html +0 -18
- data/doc/classes/Autobuild/Import.src/M000061.html +0 -18
- data/doc/classes/Autobuild/Importer.html +0 -154
- data/doc/classes/Autobuild/Importer.src/M000034.html +0 -18
- data/doc/classes/Autobuild/Importer.src/M000035.html +0 -38
- data/doc/classes/Autobuild/Importer.src/M000062.html +0 -18
- data/doc/classes/Autobuild/Importer.src/M000063.html +0 -38
- data/doc/classes/Autobuild/ImporterPackage.html +0 -171
- data/doc/classes/Autobuild/ImporterPackage.src/M000099.html +0 -18
- data/doc/classes/Autobuild/ImporterPackage.src/M000100.html +0 -22
- data/doc/classes/Autobuild/ImporterPackage.src/M000101.html +0 -16
- data/doc/classes/Autobuild/ImporterPackage.src/M000127.html +0 -18
- data/doc/classes/Autobuild/ImporterPackage.src/M000128.html +0 -22
- data/doc/classes/Autobuild/ImporterPackage.src/M000129.html +0 -16
- data/doc/classes/Autobuild/Interpolator.html +0 -227
- data/doc/classes/Autobuild/Interpolator.src/M000039.html +0 -18
- data/doc/classes/Autobuild/Interpolator.src/M000040.html +0 -21
- data/doc/classes/Autobuild/Interpolator.src/M000041.html +0 -45
- data/doc/classes/Autobuild/Interpolator.src/M000042.html +0 -39
- data/doc/classes/Autobuild/Interpolator.src/M000043.html +0 -29
- data/doc/classes/Autobuild/Interpolator.src/M000067.html +0 -18
- data/doc/classes/Autobuild/Interpolator.src/M000068.html +0 -21
- data/doc/classes/Autobuild/Interpolator.src/M000069.html +0 -45
- data/doc/classes/Autobuild/Interpolator.src/M000070.html +0 -39
- data/doc/classes/Autobuild/Interpolator.src/M000071.html +0 -29
- data/doc/classes/Autobuild/MailReporter.html +0 -207
- data/doc/classes/Autobuild/MailReporter.src/M000045.html +0 -24
- data/doc/classes/Autobuild/MailReporter.src/M000046.html +0 -21
- data/doc/classes/Autobuild/MailReporter.src/M000047.html +0 -20
- data/doc/classes/Autobuild/MailReporter.src/M000048.html +0 -18
- data/doc/classes/Autobuild/MailReporter.src/M000049.html +0 -42
- data/doc/classes/Autobuild/MailReporter.src/M000073.html +0 -24
- data/doc/classes/Autobuild/MailReporter.src/M000074.html +0 -21
- data/doc/classes/Autobuild/MailReporter.src/M000075.html +0 -20
- data/doc/classes/Autobuild/MailReporter.src/M000076.html +0 -18
- data/doc/classes/Autobuild/MailReporter.src/M000077.html +0 -42
- data/doc/classes/Autobuild/Package.html +0 -364
- data/doc/classes/Autobuild/Package.src/M000073.html +0 -16
- data/doc/classes/Autobuild/Package.src/M000074.html +0 -16
- data/doc/classes/Autobuild/Package.src/M000075.html +0 -16
- data/doc/classes/Autobuild/Package.src/M000076.html +0 -56
- data/doc/classes/Autobuild/Package.src/M000077.html +0 -16
- data/doc/classes/Autobuild/Package.src/M000078.html +0 -16
- data/doc/classes/Autobuild/Package.src/M000079.html +0 -28
- data/doc/classes/Autobuild/Package.src/M000080.html +0 -23
- data/doc/classes/Autobuild/Package.src/M000081.html +0 -19
- data/doc/classes/Autobuild/Package.src/M000082.html +0 -18
- data/doc/classes/Autobuild/Package.src/M000101.html +0 -16
- data/doc/classes/Autobuild/Package.src/M000102.html +0 -16
- data/doc/classes/Autobuild/Package.src/M000103.html +0 -16
- data/doc/classes/Autobuild/Package.src/M000104.html +0 -56
- data/doc/classes/Autobuild/Package.src/M000105.html +0 -16
- data/doc/classes/Autobuild/Package.src/M000106.html +0 -16
- data/doc/classes/Autobuild/Package.src/M000107.html +0 -28
- data/doc/classes/Autobuild/Package.src/M000108.html +0 -23
- data/doc/classes/Autobuild/Package.src/M000109.html +0 -19
- data/doc/classes/Autobuild/Package.src/M000110.html +0 -18
- data/doc/classes/Autobuild/PackageException.html +0 -145
- data/doc/classes/Autobuild/PackageException.src/M000050.html +0 -16
- data/doc/classes/Autobuild/PackageException.src/M000078.html +0 -16
- data/doc/classes/Autobuild/Reporter.html +0 -158
- data/doc/classes/Autobuild/Reporter.src/M000053.html +0 -16
- data/doc/classes/Autobuild/Reporter.src/M000054.html +0 -16
- data/doc/classes/Autobuild/Reporter.src/M000081.html +0 -16
- data/doc/classes/Autobuild/Reporter.src/M000082.html +0 -16
- data/doc/classes/Autobuild/Reporting.html +0 -224
- data/doc/classes/Autobuild/Reporting.src/M000025.html +0 -24
- data/doc/classes/Autobuild/Reporting.src/M000026.html +0 -18
- data/doc/classes/Autobuild/Reporting.src/M000027.html +0 -18
- data/doc/classes/Autobuild/Reporting.src/M000028.html +0 -18
- data/doc/classes/Autobuild/Reporting.src/M000029.html +0 -18
- data/doc/classes/Autobuild/Reporting.src/M000053.html +0 -24
- data/doc/classes/Autobuild/Reporting.src/M000054.html +0 -18
- data/doc/classes/Autobuild/Reporting.src/M000055.html +0 -18
- data/doc/classes/Autobuild/Reporting.src/M000056.html +0 -18
- data/doc/classes/Autobuild/Reporting.src/M000057.html +0 -18
- data/doc/classes/Autobuild/SVN.html +0 -139
- data/doc/classes/Autobuild/SVN.src/M000038.html +0 -22
- data/doc/classes/Autobuild/SVN.src/M000066.html +0 -22
- data/doc/classes/Autobuild/SourceTreeTask.html +0 -150
- data/doc/classes/Autobuild/SourceTreeTask.src/M000083.html +0 -18
- data/doc/classes/Autobuild/SourceTreeTask.src/M000111.html +0 -18
- data/doc/classes/Autobuild/StdoutReporter.html +0 -160
- data/doc/classes/Autobuild/StdoutReporter.src/M000051.html +0 -18
- data/doc/classes/Autobuild/StdoutReporter.src/M000052.html +0 -18
- data/doc/classes/Autobuild/StdoutReporter.src/M000079.html +0 -18
- data/doc/classes/Autobuild/StdoutReporter.src/M000080.html +0 -18
- data/doc/classes/Autobuild/SubcommandFailed.html +0 -200
- data/doc/classes/Autobuild/SubcommandFailed.src/M000084.html +0 -16
- data/doc/classes/Autobuild/SubcommandFailed.src/M000085.html +0 -32
- data/doc/classes/Autobuild/SubcommandFailed.src/M000086.html +0 -20
- data/doc/classes/Autobuild/SubcommandFailed.src/M000112.html +0 -16
- data/doc/classes/Autobuild/SubcommandFailed.src/M000113.html +0 -32
- data/doc/classes/Autobuild/SubcommandFailed.src/M000114.html +0 -20
- data/doc/classes/Autobuild/Subprocess.html +0 -170
- data/doc/classes/Autobuild/Subprocess.src/M000030.html +0 -18
- data/doc/classes/Autobuild/Subprocess.src/M000031.html +0 -98
- data/doc/classes/Autobuild/Subprocess.src/M000058.html +0 -18
- data/doc/classes/Autobuild/Subprocess.src/M000059.html +0 -98
- data/doc/classes/Autobuild/Subprocess/Failed.html +0 -150
- data/doc/classes/Autobuild/Subprocess/Failed.src/M000032.html +0 -18
- data/doc/classes/Autobuild/Subprocess/Failed.src/M000060.html +0 -18
- data/doc/classes/Autobuild/TarImporter.html +0 -287
- data/doc/classes/Autobuild/TarImporter.src/M000064.html +0 -28
- data/doc/classes/Autobuild/TarImporter.src/M000065.html +0 -53
- data/doc/classes/Autobuild/TarImporter.src/M000066.html +0 -26
- data/doc/classes/Autobuild/TarImporter.src/M000067.html +0 -16
- data/doc/classes/Autobuild/TarImporter.src/M000068.html +0 -20
- data/doc/classes/Autobuild/TarImporter.src/M000069.html +0 -20
- data/doc/classes/Autobuild/TarImporter.src/M000070.html +0 -30
- data/doc/classes/Autobuild/TarImporter.src/M000092.html +0 -28
- data/doc/classes/Autobuild/TarImporter.src/M000093.html +0 -53
- data/doc/classes/Autobuild/TarImporter.src/M000094.html +0 -26
- data/doc/classes/Autobuild/TarImporter.src/M000095.html +0 -16
- data/doc/classes/Autobuild/TarImporter.src/M000096.html +0 -20
- data/doc/classes/Autobuild/TarImporter.src/M000097.html +0 -20
- data/doc/classes/Autobuild/TarImporter.src/M000098.html +0 -30
- data/doc/classes/Autobuild/UndefinedVariable.html +0 -174
- data/doc/classes/Autobuild/UndefinedVariable.src/M000071.html +0 -19
- data/doc/classes/Autobuild/UndefinedVariable.src/M000072.html +0 -18
- data/doc/classes/Autobuild/UndefinedVariable.src/M000099.html +0 -19
- data/doc/classes/Autobuild/UndefinedVariable.src/M000100.html +0 -18
- data/doc/classes/Hash.html +0 -152
- data/doc/classes/Hash.src/M000002.html +0 -26
- data/doc/classes/Hash.src/M000003.html +0 -23
- data/doc/classes/Hash.src/M000020.html +0 -26
- data/doc/classes/Hash.src/M000021.html +0 -23
- data/doc/classes/RMail.html +0 -111
- data/doc/classes/RMail/Message.html +0 -140
- data/doc/classes/RMail/Message.src/M000004.html +0 -25
- data/doc/classes/RMail/Message.src/M000028.html +0 -25
- data/doc/classes/TC_CVSImport.html +0 -180
- data/doc/classes/TC_CVSImport.src/M000025.html +0 -22
- data/doc/classes/TC_CVSImport.src/M000026.html +0 -21
- data/doc/classes/TC_CVSImport.src/M000027.html +0 -36
- data/doc/classes/TC_Config.html +0 -182
- data/doc/classes/TC_Config.src/M000006.html +0 -20
- data/doc/classes/TC_Config.src/M000007.html +0 -18
- data/doc/classes/TC_Config.src/M000008.html +0 -29
- data/doc/classes/TC_Config.src/M000009.html +0 -20
- data/doc/classes/TC_ConfigInterpolation.html +0 -198
- data/doc/classes/TC_ConfigInterpolation.src/M000002.html +0 -18
- data/doc/classes/TC_ConfigInterpolation.src/M000003.html +0 -18
- data/doc/classes/TC_ConfigInterpolation.src/M000004.html +0 -26
- data/doc/classes/TC_ConfigInterpolation.src/M000005.html +0 -24
- data/doc/classes/TC_SVNImport.html +0 -180
- data/doc/classes/TC_SVNImport.src/M000017.html +0 -22
- data/doc/classes/TC_SVNImport.src/M000018.html +0 -21
- data/doc/classes/TC_SVNImport.src/M000019.html +0 -43
- data/doc/classes/TC_Subcommand.html +0 -208
- data/doc/classes/TC_Subcommand.src/M000022.html +0 -31
- data/doc/classes/TC_Subcommand.src/M000023.html +0 -18
- data/doc/classes/TC_Subcommand.src/M000024.html +0 -30
- data/doc/classes/TC_TarImporter.html +0 -247
- data/doc/classes/TC_TarImporter.src/M000010.html +0 -28
- data/doc/classes/TC_TarImporter.src/M000011.html +0 -21
- data/doc/classes/TC_TarImporter.src/M000012.html +0 -20
- data/doc/classes/TC_TarImporter.src/M000013.html +0 -20
- data/doc/classes/TC_TarImporter.src/M000014.html +0 -26
- data/doc/classes/TC_TarImporter.src/M000015.html +0 -31
- data/doc/classes/TC_TarImporter.src/M000016.html +0 -24
- data/doc/classes/TestTools.html +0 -189
- data/doc/classes/TestTools.src/M000029.html +0 -19
- data/doc/classes/TestTools.src/M000030.html +0 -18
- data/doc/classes/TestTools.src/M000031.html +0 -25
- data/doc/classes/TestTools.src/M000032.html +0 -24
- data/doc/created.rid +0 -1
- data/doc/files/README.html +0 -378
- data/doc/files/demo_rb.html +0 -115
- data/doc/files/lib/autobuild/config_rb.html +0 -136
- data/doc/files/lib/autobuild/config_rb.src/M000001.html +0 -18
- data/doc/files/lib/autobuild/environment_rb.html +0 -101
- data/doc/files/lib/autobuild/exceptions_rb.html +0 -101
- data/doc/files/lib/autobuild/import/cvs_rb.html +0 -110
- data/doc/files/lib/autobuild/import/darcs_rb.html +0 -110
- data/doc/files/lib/autobuild/import/svn_rb.html +0 -109
- data/doc/files/lib/autobuild/import/tar_rb.html +0 -108
- data/doc/files/lib/autobuild/importer_rb.html +0 -109
- data/doc/files/lib/autobuild/loaders/config-interpolator_rb.html +0 -108
- data/doc/files/lib/autobuild/loaders/config_rb.html +0 -113
- data/doc/files/lib/autobuild/package_rb.html +0 -110
- data/doc/files/lib/autobuild/packages/autotools_rb.html +0 -112
- data/doc/files/lib/autobuild/packages/genom_rb.html +0 -109
- data/doc/files/lib/autobuild/packages/import_rb.html +0 -109
- data/doc/files/lib/autobuild/reporting_rb.html +0 -114
- data/doc/files/lib/autobuild/subcommand_rb.html +0 -108
- data/doc/files/lib/autobuild/timestamps_rb.html +0 -124
- data/doc/files/lib/autobuild_rb.html +0 -110
- data/doc/files/test/test_config_interpolation_rb.html +0 -111
- data/doc/files/test/test_config_rb.html +0 -111
- data/doc/files/test/test_import_cvs_rb.html +0 -119
- data/doc/files/test/test_import_svn_rb.html +0 -119
- data/doc/files/test/test_import_tar_rb.html +0 -120
- data/doc/files/test/test_subcommand_rb.html +0 -120
- data/doc/files/test/tools_rb.html +0 -110
- data/doc/fr_class_index.html +0 -26
- data/doc/fr_file_index.html +0 -27
- data/doc/fr_method_index.html +0 -26
- data/doc/index.html +0 -24
- data/doc/rdoc-style.css +0 -208
@@ -1,31 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>test_tar_remote (TC_TarImporter)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File test/test_import_tar.rb, line 61</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_tar_remote</span>
|
15
|
-
<span class="ruby-identifier">web_server</span> <span class="ruby-keyword kw">do</span>
|
16
|
-
<span class="ruby-comment cmt"># Try to get the file through the http server</span>
|
17
|
-
<span class="ruby-identifier">pkg</span> = <span class="ruby-constant">Package</span>.<span class="ruby-identifier">new</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">TestTools</span>.<span class="ruby-identifier">tempdir</span>, <span class="ruby-value str">'tarimport'</span>), <span class="ruby-value str">'tarimport'</span>
|
18
|
-
<span class="ruby-identifier">importer</span> = <span class="ruby-constant">TarImporter</span>.<span class="ruby-identifier">new</span> <span class="ruby-value str">'http://localhost:2000/files/data/tarimport.tar.gz'</span>, <span class="ruby-identifier">:cachedir</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@cachedir</span>
|
19
|
-
|
20
|
-
<span class="ruby-identifier">importer</span>.<span class="ruby-identifier">checkout</span>(<span class="ruby-identifier">pkg</span>)
|
21
|
-
<span class="ruby-identifier">assert</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>(<span class="ruby-identifier">pkg</span>.<span class="ruby-identifier">srcdir</span>))
|
22
|
-
<span class="ruby-identifier">assert</span>(<span class="ruby-operator">!</span><span class="ruby-identifier">importer</span>.<span class="ruby-identifier">update_cache</span>)
|
23
|
-
|
24
|
-
<span class="ruby-identifier">sleep</span> <span class="ruby-value">2</span> <span class="ruby-comment cmt"># The Time class have a 1-second resolution</span>
|
25
|
-
<span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">touch</span> <span class="ruby-ivar">@tarfile</span>
|
26
|
-
<span class="ruby-identifier">assert</span>(<span class="ruby-identifier">importer</span>.<span class="ruby-identifier">update_cache</span>)
|
27
|
-
<span class="ruby-identifier">assert</span>(<span class="ruby-operator">!</span><span class="ruby-identifier">importer</span>.<span class="ruby-identifier">update_cache</span>)
|
28
|
-
<span class="ruby-keyword kw">end</span>
|
29
|
-
<span class="ruby-keyword kw">end</span></pre>
|
30
|
-
</body>
|
31
|
-
</html>
|
@@ -1,24 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>test_tar_remote_notfound (TC_TarImporter)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File test/test_import_tar.rb, line 78</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_tar_remote_notfound</span>
|
15
|
-
<span class="ruby-identifier">web_server</span> <span class="ruby-keyword kw">do</span>
|
16
|
-
<span class="ruby-comment cmt"># Try to get the file through the http server</span>
|
17
|
-
<span class="ruby-identifier">pkg</span> = <span class="ruby-constant">Package</span>.<span class="ruby-identifier">new</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">TestTools</span>.<span class="ruby-identifier">tempdir</span>, <span class="ruby-value str">'tarimport'</span>), <span class="ruby-value str">'tarimport'</span>
|
18
|
-
<span class="ruby-identifier">importer</span> = <span class="ruby-constant">TarImporter</span>.<span class="ruby-identifier">new</span> <span class="ruby-value str">'http://localhost:2000/files/data/tarimport-nofile.tar.gz'</span>, <span class="ruby-identifier">:cachedir</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@cachedir</span>
|
19
|
-
|
20
|
-
<span class="ruby-identifier">assert_raise</span>(<span class="ruby-constant">Autobuild</span><span class="ruby-operator">::</span><span class="ruby-constant">Exception</span>) { <span class="ruby-identifier">importer</span>.<span class="ruby-identifier">checkout</span>(<span class="ruby-identifier">pkg</span>) }
|
21
|
-
<span class="ruby-keyword kw">end</span>
|
22
|
-
<span class="ruby-keyword kw">end</span></pre>
|
23
|
-
</body>
|
24
|
-
</html>
|
data/doc/classes/TestTools.html
DELETED
@@ -1,189 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Module: TestTools</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Module</strong></td>
|
53
|
-
<td class="class-name-in-header">TestTools</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../files/test/tools_rb.html">
|
59
|
-
test/tools.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
</table>
|
66
|
-
</div>
|
67
|
-
<!-- banner header -->
|
68
|
-
|
69
|
-
<div id="bodyContent">
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
<div id="contextContent">
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
</div>
|
78
|
-
|
79
|
-
<div id="method-list">
|
80
|
-
<h3 class="section-bar">Methods</h3>
|
81
|
-
|
82
|
-
<div class="name-list">
|
83
|
-
<a href="#M000031">build_config</a>
|
84
|
-
<a href="#M000030">clean</a>
|
85
|
-
<a href="#M000029">tempdir</a>
|
86
|
-
<a href="#M000032">untar</a>
|
87
|
-
</div>
|
88
|
-
</div>
|
89
|
-
|
90
|
-
</div>
|
91
|
-
|
92
|
-
|
93
|
-
<!-- if includes -->
|
94
|
-
|
95
|
-
<div id="section">
|
96
|
-
|
97
|
-
|
98
|
-
<div id="constants-list">
|
99
|
-
<h3 class="section-bar">Constants</h3>
|
100
|
-
|
101
|
-
<div class="name-list">
|
102
|
-
<table summary="Constants">
|
103
|
-
<tr class="top-aligned-row context-row">
|
104
|
-
<td class="context-item-name">DATADIR</td>
|
105
|
-
<td>=</td>
|
106
|
-
<td class="context-item-value">File.join(File.dirname(__FILE__), 'data')</td>
|
107
|
-
</tr>
|
108
|
-
</table>
|
109
|
-
</div>
|
110
|
-
</div>
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
<!-- if method_list -->
|
118
|
-
<div id="methods">
|
119
|
-
<h3 class="section-bar">Public Class methods</h3>
|
120
|
-
|
121
|
-
<div id="method-M000031" class="method-detail">
|
122
|
-
<a name="M000031"></a>
|
123
|
-
|
124
|
-
<div class="method-heading">
|
125
|
-
<a href="TestTools.src/M000031.html" target="Code" class="method-signature"
|
126
|
-
onclick="popupCode('TestTools.src/M000031.html');return false;">
|
127
|
-
<span class="method-name">build_config</span><span class="method-args">(bind, template)</span>
|
128
|
-
</a>
|
129
|
-
</div>
|
130
|
-
|
131
|
-
<div class="method-description">
|
132
|
-
</div>
|
133
|
-
</div>
|
134
|
-
|
135
|
-
<div id="method-M000030" class="method-detail">
|
136
|
-
<a name="M000030"></a>
|
137
|
-
|
138
|
-
<div class="method-heading">
|
139
|
-
<a href="TestTools.src/M000030.html" target="Code" class="method-signature"
|
140
|
-
onclick="popupCode('TestTools.src/M000030.html');return false;">
|
141
|
-
<span class="method-name">clean</span><span class="method-args">()</span>
|
142
|
-
</a>
|
143
|
-
</div>
|
144
|
-
|
145
|
-
<div class="method-description">
|
146
|
-
</div>
|
147
|
-
</div>
|
148
|
-
|
149
|
-
<div id="method-M000029" class="method-detail">
|
150
|
-
<a name="M000029"></a>
|
151
|
-
|
152
|
-
<div class="method-heading">
|
153
|
-
<a href="TestTools.src/M000029.html" target="Code" class="method-signature"
|
154
|
-
onclick="popupCode('TestTools.src/M000029.html');return false;">
|
155
|
-
<span class="method-name">tempdir</span><span class="method-args">()</span>
|
156
|
-
</a>
|
157
|
-
</div>
|
158
|
-
|
159
|
-
<div class="method-description">
|
160
|
-
</div>
|
161
|
-
</div>
|
162
|
-
|
163
|
-
<div id="method-M000032" class="method-detail">
|
164
|
-
<a name="M000032"></a>
|
165
|
-
|
166
|
-
<div class="method-heading">
|
167
|
-
<a href="TestTools.src/M000032.html" target="Code" class="method-signature"
|
168
|
-
onclick="popupCode('TestTools.src/M000032.html');return false;">
|
169
|
-
<span class="method-name">untar</span><span class="method-args">(file)</span>
|
170
|
-
</a>
|
171
|
-
</div>
|
172
|
-
|
173
|
-
<div class="method-description">
|
174
|
-
</div>
|
175
|
-
</div>
|
176
|
-
|
177
|
-
|
178
|
-
</div>
|
179
|
-
|
180
|
-
|
181
|
-
</div>
|
182
|
-
|
183
|
-
|
184
|
-
<div id="validator-badges">
|
185
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
186
|
-
</div>
|
187
|
-
|
188
|
-
</body>
|
189
|
-
</html>
|
@@ -1,19 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>tempdir (TestTools)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File test/tools.rb, line 8</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">tempdir</span>
|
15
|
-
<span class="ruby-ivar">@tmpdir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">Dir</span><span class="ruby-operator">::</span><span class="ruby-identifier">tmpdir</span>, <span class="ruby-node">"/autobuild-test-#{Process.uid}"</span>)
|
16
|
-
<span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span>(<span class="ruby-ivar">@tmpdir</span>, <span class="ruby-identifier">:mode</span> =<span class="ruby-operator">></span> <span class="ruby-value">0700</span>)
|
17
|
-
<span class="ruby-keyword kw">end</span></pre>
|
18
|
-
</body>
|
19
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>clean (TestTools)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File test/tools.rb, line 13</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">clean</span>
|
15
|
-
<span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">rm_rf</span> <span class="ruby-identifier">tempdir</span>
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,25 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>build_config (TestTools)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File test/tools.rb, line 17</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">build_config</span>(<span class="ruby-identifier">bind</span>, <span class="ruby-identifier">template</span>)
|
15
|
-
<span class="ruby-identifier">eval</span> <span class="ruby-node">"basedir = '#{self.tempdir}'"</span>, <span class="ruby-identifier">bind</span>
|
16
|
-
<span class="ruby-identifier">ryml</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">DATADIR</span>, <span class="ruby-node">"#{template}.ryml"</span>)) { <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">readlines</span> }.<span class="ruby-identifier">join</span>(<span class="ruby-value str">''</span>)
|
17
|
-
<span class="ruby-identifier">result</span> = <span class="ruby-constant">ERB</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">ryml</span>).<span class="ruby-identifier">result</span>(<span class="ruby-identifier">bind</span>)
|
18
|
-
|
19
|
-
<span class="ruby-identifier">yml</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">tempdir</span>, <span class="ruby-node">"#{template}.yml"</span>)
|
20
|
-
<span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">yml</span>, <span class="ruby-value str">'w+'</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">write</span>(<span class="ruby-identifier">result</span>) }
|
21
|
-
|
22
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">yml</span>
|
23
|
-
<span class="ruby-keyword kw">end</span></pre>
|
24
|
-
</body>
|
25
|
-
</html>
|
@@ -1,24 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>untar (TestTools)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File test/tools.rb, line 28</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">untar</span>(<span class="ruby-identifier">file</span>)
|
15
|
-
<span class="ruby-identifier">file</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">file</span>, <span class="ruby-constant">DATADIR</span>)
|
16
|
-
<span class="ruby-identifier">dir</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">tempdir</span>
|
17
|
-
<span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>(<span class="ruby-identifier">dir</span>) <span class="ruby-keyword kw">do</span>
|
18
|
-
<span class="ruby-identifier">system</span>(<span class="ruby-node">"tar xf #{file}"</span>)
|
19
|
-
<span class="ruby-keyword kw">end</span>
|
20
|
-
|
21
|
-
<span class="ruby-identifier">dir</span>
|
22
|
-
<span class="ruby-keyword kw">end</span></pre>
|
23
|
-
</body>
|
24
|
-
</html>
|
data/doc/created.rid
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Fri Aug 18 14:42:30 CEST 2006
|
data/doc/files/README.html
DELETED
@@ -1,378 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>File: README</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="fileHeader">
|
50
|
-
<h1>README</h1>
|
51
|
-
<table class="header-table">
|
52
|
-
<tr class="top-aligned-row">
|
53
|
-
<td><strong>Path:</strong></td>
|
54
|
-
<td>README
|
55
|
-
</td>
|
56
|
-
</tr>
|
57
|
-
<tr class="top-aligned-row">
|
58
|
-
<td><strong>Last Update:</strong></td>
|
59
|
-
<td>Fri Aug 18 14:42:05 CEST 2006</td>
|
60
|
-
</tr>
|
61
|
-
</table>
|
62
|
-
</div>
|
63
|
-
<!-- banner header -->
|
64
|
-
|
65
|
-
<div id="bodyContent">
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
<div id="contextContent">
|
70
|
-
|
71
|
-
<div id="description">
|
72
|
-
<h1>Introduction</h1>
|
73
|
-
<h2>WARNING for 0.5 users</h2>
|
74
|
-
<p>
|
75
|
-
Old configuration files used with autobuild 0.5 aren’t accepted by
|
76
|
-
Autobuild 0.6. Since 0.6, Autobuild uses Ruby for configuration (just like
|
77
|
-
rake does)
|
78
|
-
</p>
|
79
|
-
<h2>What’s autobuild ?</h2>
|
80
|
-
<p>
|
81
|
-
Autobuild is a builder for a set of software packages. It takes as input a
|
82
|
-
yaml config file as input and
|
83
|
-
</p>
|
84
|
-
<ul>
|
85
|
-
<li>imports the package from a SCM or (optionnaly) updates it
|
86
|
-
|
87
|
-
</li>
|
88
|
-
<li>configures it. This phase can handle code generation, configuration (for
|
89
|
-
instance for autotools-based
|
90
|
-
|
91
|
-
</li>
|
92
|
-
</ul>
|
93
|
-
<p>
|
94
|
-
packages), …
|
95
|
-
</p>
|
96
|
-
<ul>
|
97
|
-
<li>build
|
98
|
-
|
99
|
-
</li>
|
100
|
-
<li>install
|
101
|
-
|
102
|
-
</li>
|
103
|
-
</ul>
|
104
|
-
<p>
|
105
|
-
It takes the dependencies between packages into account in its build
|
106
|
-
process.
|
107
|
-
</p>
|
108
|
-
<h2>Available packages</h2>
|
109
|
-
<h3>Common usage</h3>
|
110
|
-
<p>
|
111
|
-
All package objects define the following attributes
|
112
|
-
</p>
|
113
|
-
<table>
|
114
|
-
<tr><td valign="top"><b>srcdir</b>:</td><td>where the package sources are located
|
115
|
-
|
116
|
-
</td></tr>
|
117
|
-
<tr><td valign="top"><b>importer</b>:</td><td>the importer object (see "Available importers" below)
|
118
|
-
|
119
|
-
</td></tr>
|
120
|
-
<tr><td valign="top"><b>prefix</b>:</td><td>the directory where the package should be installed. If it is a relative
|
121
|
-
path, it is relative to the value of Autobuild.prefix. The default is to
|
122
|
-
use the package name.
|
123
|
-
|
124
|
-
</td></tr>
|
125
|
-
</table>
|
126
|
-
<p>
|
127
|
-
All package methods (Autobuild.import, Autobuild.autotools) has either a
|
128
|
-
package name for first argument, or a name => [dependencies] hash, and
|
129
|
-
take a block which can be used to configure the package. For instance
|
130
|
-
</p>
|
131
|
-
<pre>
|
132
|
-
Autobuild.import :my_package do |pkg|
|
133
|
-
end
|
134
|
-
|
135
|
-
Autobuild.import :my_package => [:depends, :depends_also] do |pkg|
|
136
|
-
end
|
137
|
-
</pre>
|
138
|
-
<h3>Source only</h3>
|
139
|
-
<pre>
|
140
|
-
package = Autobuild.import(dependencies) do |pkg|
|
141
|
-
<package configuration>
|
142
|
-
end
|
143
|
-
</pre>
|
144
|
-
<p>
|
145
|
-
Use <tt>import</tt> if you need the package sources but don’t need to
|
146
|
-
build it. You just need to set up the importer and <tt>srcdir</tt>.
|
147
|
-
<tt>prefix</tt> is ignored.
|
148
|
-
</p>
|
149
|
-
<h3>Autotools</h3>
|
150
|
-
<pre>
|
151
|
-
package = Autobuild.autotools(name, dependencies) do |pkg|
|
152
|
-
<package configuration>
|
153
|
-
end
|
154
|
-
</pre>
|
155
|
-
<p>
|
156
|
-
Use this to build GNU autotools-based packages. This handles autoconf-only
|
157
|
-
packages as well as those using automake
|
158
|
-
</p>
|
159
|
-
<p>
|
160
|
-
Options to give the <tt>configure</tt> script are given in the
|
161
|
-
<tt>configureflags</tt> array
|
162
|
-
</p>
|
163
|
-
<pre>
|
164
|
-
pkg.configureflags = ['--with-blah', 'FOO=bar' ]
|
165
|
-
</pre>
|
166
|
-
<p>
|
167
|
-
If you want the files produced during the build to be separated from the
|
168
|
-
source files, set the <tt>builddir</tt> attribute. For now, it has to be a
|
169
|
-
relative path, relative to the source directory.
|
170
|
-
</p>
|
171
|
-
<pre>
|
172
|
-
pkg.builddir = 'build'
|
173
|
-
</pre>
|
174
|
-
<p>
|
175
|
-
The generation of the configure script uses four programs:
|
176
|
-
<tt>autoheader</tt>, <tt>autoconf</tt>, <tt>aclocal</tt>,
|
177
|
-
<tt>automake</tt>. The default program path can be overriden in the
|
178
|
-
Autotools.programs hash. For instance, to be sure that
|
179
|
-
<tt>automake-1.9</tt> is used <bb>for all packages</bb>, you
|
180
|
-
set
|
181
|
-
</p>
|
182
|
-
<pre>
|
183
|
-
Autotools.programs['automake'] = 'automake-1.9'
|
184
|
-
</pre>
|
185
|
-
<p>
|
186
|
-
Autobuild tries to detect what tools it should run, but you can override.
|
187
|
-
Autodetection works as follows:
|
188
|
-
</p>
|
189
|
-
<ul>
|
190
|
-
<li>if a script named <tt>autogen</tt> or +autogen.sh+ exists in the package
|
191
|
-
source directory, it is run and the other tools are not. The name of this
|
192
|
-
kind of script can be set by calling Autotools#use
|
193
|
-
|
194
|
-
<pre>
|
195
|
-
pkg.use :autogen => 'my_autogen_script'
|
196
|
-
</pre>
|
197
|
-
</li>
|
198
|
-
<li><tt>autoheader</tt> is never used by default
|
199
|
-
|
200
|
-
</li>
|
201
|
-
<li><tt>autoconf</tt> is used if there is <tt>configure.ac</tt> or
|
202
|
-
<tt>configure.in</tt> in the source dir
|
203
|
-
|
204
|
-
</li>
|
205
|
-
<li><tt>aclocal</tt> is used if <tt>autoconf</tt> is enabled (either
|
206
|
-
explicitely or by autodetection)
|
207
|
-
|
208
|
-
</li>
|
209
|
-
<li><tt>automake</tt> is used if there is a <tt>Makefile.am</tt> file in the
|
210
|
-
source dir
|
211
|
-
|
212
|
-
</li>
|
213
|
-
<li>you can force to enable or disable any of these steps by calling
|
214
|
-
Autotools#use. Set it to <tt>true</tt> to force its usage, <tt>false</tt>
|
215
|
-
to disable it or to a string to force the usage of a particular program
|
216
|
-
|
217
|
-
<pre>
|
218
|
-
pkg.use :autogen => false
|
219
|
-
pkg.use :automake => false
|
220
|
-
pkg.use :autoheader => true
|
221
|
-
pkg.use :autoconf => 'my_autoconf_program'
|
222
|
-
</pre>
|
223
|
-
<p>
|
224
|
-
The ‘autogen’ option cannot be set to <tt>true</tt>.
|
225
|
-
</p>
|
226
|
-
</li>
|
227
|
-
</ul>
|
228
|
-
<p>
|
229
|
-
The only program used during the build and install phases is <tt>make</tt>.
|
230
|
-
Its path can be overriden in the Autobuild.programs hash
|
231
|
-
</p>
|
232
|
-
<pre>
|
233
|
-
Autobuild.programs['make'] = 'gnumake'
|
234
|
-
</pre>
|
235
|
-
<h2>Available importers</h2>
|
236
|
-
<p>
|
237
|
-
You must set an importer object for each package. The package importer is
|
238
|
-
the <tt>importer</tt> attribute and is set via <tt>package.importer =
|
239
|
-
my_importer</tt>. An importer <tt>foo</tt> is defined by the class
|
240
|
-
Autobuild::FooImporter and defines a Autobuild.foo method which creates a
|
241
|
-
new importer object. Importer classes files are in
|
242
|
-
<tt>lib/autobuild/import/</tt>
|
243
|
-
</p>
|
244
|
-
<h3>CVS</h3>
|
245
|
-
<pre>
|
246
|
-
package.importer = cvs(cvsroot, module[, options])
|
247
|
-
</pre>
|
248
|
-
<p>
|
249
|
-
Where <tt>options</tt> is an option hash. See also Autobuild::CVSImporter
|
250
|
-
and Autobuild.cvs
|
251
|
-
</p>
|
252
|
-
<ul>
|
253
|
-
<li>the default CVS command is <tt>cvs</tt>. It can be changed by
|
254
|
-
|
255
|
-
<pre>
|
256
|
-
Autobuild.programs['cvs'] = 'my_cvs_command'
|
257
|
-
</pre>
|
258
|
-
</li>
|
259
|
-
<li>the default checkout option is <tt>-P</tt>. You can change that by giving a
|
260
|
-
<tt>cvsco</tt> option
|
261
|
-
|
262
|
-
<pre>
|
263
|
-
cvs cvsroot, module, :cvsco => ['--my', '--cvs', '--options']
|
264
|
-
</pre>
|
265
|
-
</li>
|
266
|
-
<li>the default update option is <tt>-dP</tt>. You can change that by giving a
|
267
|
-
<tt>cvsup</tt> option
|
268
|
-
|
269
|
-
<pre>
|
270
|
-
cvs cvsroot, module, :cvsup => ['--my', '--cvs', '--options']
|
271
|
-
</pre>
|
272
|
-
</li>
|
273
|
-
</ul>
|
274
|
-
<h3>Subversion</h3>
|
275
|
-
<pre>
|
276
|
-
package.importer = svn(url[, options])
|
277
|
-
</pre>
|
278
|
-
<p>
|
279
|
-
Where <tt>options</tt> is an option hash. See also Autobuild::SVNImporter
|
280
|
-
and Autobuild.svn
|
281
|
-
</p>
|
282
|
-
<ul>
|
283
|
-
<li>the default Subversion command is <tt>svn</tt>. It can be changed by
|
284
|
-
|
285
|
-
<pre>
|
286
|
-
Autobuild.programs['svn'] = 'my_svn_command'
|
287
|
-
</pre>
|
288
|
-
</li>
|
289
|
-
<li>by default, no options are given to checkout. You add some by giving a
|
290
|
-
<tt>svnco</tt> option
|
291
|
-
|
292
|
-
<pre>
|
293
|
-
svn url, :svnco => ['--my', '--svn', '--options']
|
294
|
-
</pre>
|
295
|
-
</li>
|
296
|
-
<li>by default, no options are given to update. You can add some by giving a
|
297
|
-
<tt>svnup</tt> option
|
298
|
-
|
299
|
-
<pre>
|
300
|
-
svn url, :svnup => ['--my', '--svn', '--options']
|
301
|
-
</pre>
|
302
|
-
</li>
|
303
|
-
</ul>
|
304
|
-
<h3><b>Darcs</b></h3>
|
305
|
-
<pre>
|
306
|
-
package.importer = darcs(url[, options])
|
307
|
-
</pre>
|
308
|
-
<p>
|
309
|
-
Where <tt>options</tt> is a hash. See also Autobuild::DarcsImporter and
|
310
|
-
Autobuild.darcs
|
311
|
-
</p>
|
312
|
-
<ul>
|
313
|
-
<li>the default Darcs command is <tt>darcs</tt>. It can be changed by
|
314
|
-
|
315
|
-
<pre>
|
316
|
-
Autobuild.programs['darcs'] = 'my_svn_command'
|
317
|
-
</pre>
|
318
|
-
</li>
|
319
|
-
<li>by default, no options are given to get. You add some by giving a
|
320
|
-
<tt>get</tt> option
|
321
|
-
|
322
|
-
<pre>
|
323
|
-
darcs url, :get => ['--my', '--darcs', '--options']
|
324
|
-
</pre>
|
325
|
-
</li>
|
326
|
-
<li>by default, no options are given to pull. You can add some by giving a
|
327
|
-
<tt>pull</tt> option
|
328
|
-
|
329
|
-
<pre>
|
330
|
-
darcs url, :pull => ['--my', '--darcs', '--options']
|
331
|
-
</pre>
|
332
|
-
</li>
|
333
|
-
</ul>
|
334
|
-
<h1>Copyright and license</h1>
|
335
|
-
<table>
|
336
|
-
<tr><td valign="top">Author:</td><td>Sylvain Joyeux <sylvain.joyeux@m4x.org>
|
337
|
-
|
338
|
-
</td></tr>
|
339
|
-
<tr><td valign="top">Copyright:</td><td>Copyright © 2005-2006 Sylvain Joyeux
|
340
|
-
|
341
|
-
</td></tr>
|
342
|
-
<tr><td valign="top">License:</td><td>GPL
|
343
|
-
|
344
|
-
</td></tr>
|
345
|
-
</table>
|
346
|
-
|
347
|
-
</div>
|
348
|
-
|
349
|
-
|
350
|
-
</div>
|
351
|
-
|
352
|
-
|
353
|
-
</div>
|
354
|
-
|
355
|
-
|
356
|
-
<!-- if includes -->
|
357
|
-
|
358
|
-
<div id="section">
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
<!-- if method_list -->
|
368
|
-
|
369
|
-
|
370
|
-
</div>
|
371
|
-
|
372
|
-
|
373
|
-
<div id="validator-badges">
|
374
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
375
|
-
</div>
|
376
|
-
|
377
|
-
</body>
|
378
|
-
</html>
|