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
data/CHANGES
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
= Autobuild ChangeLog
|
2
2
|
|
3
|
+
== Version 0.6.2
|
4
|
+
|
5
|
+
Small changes
|
6
|
+
|
7
|
+
* added the Ruby package, which does an import and builds all C extensions
|
8
|
+
* added the pkgconfig package, which allows to use an already-installed package
|
9
|
+
if this packages can be found through pkg-config
|
10
|
+
* check that working copies that are already checked out are from the right
|
11
|
+
source (for CVS and Subversion)
|
12
|
+
|
13
|
+
== Version 0.6.1
|
14
|
+
|
15
|
+
Bugfixes
|
16
|
+
|
17
|
+
* fix dependency handling for Genom modules. In particular, we add
|
18
|
+
dependencies between the module generation and the installed
|
19
|
+
genom files (includes, canvas, and the genom executable). Information
|
20
|
+
is taken from the pkg-config file
|
21
|
+
* new package types: InstalledPkgConfig, to reuse pkg-config based packages
|
22
|
+
installed by another autobuild script
|
23
|
+
|
3
24
|
== Version 0.6
|
4
25
|
|
5
26
|
Use a Ruby-based DSL instead of YAML config files. It is waaaaaay more
|
data/Manifest.txt
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
bin/autobuild
|
2
|
+
CHANGES
|
3
|
+
lib/autobuild/config.rb
|
4
|
+
lib/autobuild/environment.rb
|
5
|
+
lib/autobuild/exceptions.rb
|
6
|
+
lib/autobuild/import/cvs.rb
|
7
|
+
lib/autobuild/import/darcs.rb
|
8
|
+
lib/autobuild/import/svn.rb
|
9
|
+
lib/autobuild/importer.rb
|
10
|
+
lib/autobuild/import/tar.rb
|
11
|
+
lib/autobuild/package.rb
|
12
|
+
lib/autobuild/packages/autotools.rb
|
13
|
+
lib/autobuild/packages/genom.rb
|
14
|
+
lib/autobuild/packages/import.rb
|
15
|
+
lib/autobuild/packages/pkgconfig.rb
|
16
|
+
lib/autobuild/packages/ruby.rb
|
17
|
+
lib/autobuild/pkgconfig.rb
|
18
|
+
lib/autobuild.rb
|
19
|
+
lib/autobuild/reporting.rb
|
20
|
+
lib/autobuild/subcommand.rb
|
21
|
+
lib/autobuild/timestamps.rb
|
22
|
+
Manifest.txt
|
23
|
+
Rakefile
|
24
|
+
README.txt
|
25
|
+
samples/demo.rb
|
26
|
+
test/data/cvsroot.tar
|
27
|
+
test/data/svnroot.tar
|
28
|
+
test/data/tarimport.tar.gz
|
29
|
+
test/test_import_cvs.rb
|
30
|
+
test/test_import_svn.rb
|
31
|
+
test/test_import_tar.rb
|
32
|
+
test/test_subcommand.rb
|
33
|
+
test/tools.rb
|
34
|
+
TODO
|
data/{README → README.txt}
RENAMED
File without changes
|
data/Rakefile
CHANGED
@@ -1,164 +1,21 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
# Copyright 2005 by Aslak Hellesoy (aslak.hellesoy@gmail.org)
|
4
|
-
# All rights reserved.
|
5
|
-
|
6
|
-
# This file is may be distributed under an MIT style license. See
|
7
|
-
# MIT-LICENSE for details.
|
1
|
+
require 'rubygems'
|
2
|
+
require 'hoe'
|
8
3
|
|
9
4
|
$:.unshift('lib')
|
10
|
-
require 'meta_project'
|
11
|
-
require 'rake/gempackagetask'
|
12
|
-
require 'rake/contrib/rubyforgepublisher'
|
13
|
-
require 'rake/contrib/xforge'
|
14
|
-
require 'rake/clean'
|
15
|
-
require 'rake/testtask'
|
16
|
-
require 'rake/rdoctask'
|
17
|
-
|
18
|
-
# Versioning scheme: MAJOR.MINOR.PATCH
|
19
|
-
# MAJOR bumps when API is broken backwards
|
20
|
-
# MINOR bumps when the API is broken backwards in a very slight/subtle (but not fatal) way
|
21
|
-
# -OR when a new release is made and propaganda is sent out.
|
22
|
-
# PATCH is bumped for every API addition and/or bugfix (ideally for every commit)
|
23
|
-
# Later DamageControl can bump PATCH automatically.
|
24
|
-
#
|
25
|
-
# REMEMBER TO KEEP PKG_VERSION IN SYNC WITH THE CHANGES FILE!
|
26
|
-
PKG_NAME = "autobuild"
|
27
|
-
UNIX_NAME = "autobuild"
|
28
|
-
PKG_VERSION = "0.6"
|
29
|
-
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
|
30
|
-
PKG_FILES = FileList[
|
31
|
-
'bin/*',
|
32
|
-
'[A-Z]*',
|
33
|
-
'lib/**/*.rb',
|
34
|
-
'doc/**/*'
|
35
|
-
]
|
36
5
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
rdoc.options << '--main' << 'README'
|
44
|
-
rdoc.rdoc_files.include('README', 'CHANGES', 'TODO')
|
45
|
-
rdoc.rdoc_files.include('lib/**/*.rb', 'doc/**/*.rdoc')
|
46
|
-
rdoc.rdoc_files.exclude('doc/**/*_attrs.rdoc')
|
47
|
-
end
|
48
|
-
|
49
|
-
# ====================================================================
|
50
|
-
# Create a task that will package the Rake software into distributable
|
51
|
-
# tar, zip and gem files.
|
52
|
-
|
53
|
-
spec = Gem::Specification.new do |s|
|
54
|
-
|
55
|
-
#### Basic information.
|
56
|
-
|
57
|
-
s.name = PKG_NAME
|
58
|
-
s.version = PKG_VERSION
|
59
|
-
s.summary = 'Rake-based utility to build and install multiple packages with dependencies'
|
60
|
-
s.description = <<-EOF
|
6
|
+
Hoe.new('autobuild', "0.6.2") do |p|
|
7
|
+
p.author = "Sylvain Joyeux"
|
8
|
+
p.email = "sylvain.joyeux@m4x.org"
|
9
|
+
p.summary = 'Rake-based utility to build and install multiple packages with dependencies'
|
10
|
+
p.url = "http://autobuild.rubyforge.org"
|
11
|
+
p.description = <<-EOF
|
61
12
|
Autobuild imports, configures, builds and installs various kinds of software packages.
|
62
13
|
It can be used in software development to make sure that nothing is broken in the
|
63
14
|
build process of a set of packages, or can be used as an automated installation tool.
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
s.extra_rdoc_files = rd.rdoc_files.reject { |fn| fn =~ /\.rb$/ }.to_a
|
70
|
-
s.rdoc_options <<
|
71
|
-
'--title' << 'Autobuild' <<
|
72
|
-
'--main' << 'README'
|
73
|
-
|
74
|
-
#### Author and project details.
|
75
|
-
|
76
|
-
s.author = "Sylvain Joyeux"
|
77
|
-
s.email = "sylvain.joyeux@m4x.org"
|
78
|
-
s.homepage = "http://autobuild.rubyforge.org"
|
79
|
-
s.rubyforge_project = "autobuild"
|
80
|
-
|
81
|
-
#### Advanced project information
|
82
|
-
s.platform = Gem::Platform::RUBY
|
83
|
-
s.require_paths << "lib"
|
84
|
-
s.add_dependency('rake', '>= 0.7.0')
|
85
|
-
s.add_dependency('rmail')
|
86
|
-
s.add_dependency('daemons')
|
87
|
-
s.files = PKG_FILES.to_a
|
88
|
-
s.test_files = FileList['test/*' ]
|
89
|
-
s.executables = 'autobuild'
|
90
|
-
end
|
91
|
-
|
92
|
-
# Fix 1.8.4 - 1.8.3 issue
|
93
|
-
class << spec
|
94
|
-
def to_yaml
|
95
|
-
out = super
|
96
|
-
out = '--- ' + out unless out =~ /^---/
|
97
|
-
out
|
98
|
-
end
|
99
|
-
end
|
100
|
-
|
101
|
-
desc "Build Gem"
|
102
|
-
Rake::GemPackageTask.new(spec) do |pkg|
|
103
|
-
pkg.need_zip = true
|
104
|
-
pkg.need_tar = true
|
15
|
+
EOF
|
16
|
+
p.changes = p.paragraphs_of("CHANGES", 1).join("\n\n")
|
17
|
+
p.extra_deps << ['rake', '>= 0.7.0']
|
18
|
+
p.extra_deps << ['rmail']
|
19
|
+
p.extra_deps << ['daemons']
|
105
20
|
end
|
106
21
|
|
107
|
-
# Support Tasks ------------------------------------------------------
|
108
|
-
|
109
|
-
desc "Look for TODO and FIXME tags in the code"
|
110
|
-
task :todo do
|
111
|
-
Pathname.new(File.dirname(__FILE__)).egrep(/#.*(FIXME|TODO|TBD|DEPRECATED)/) do |match|
|
112
|
-
puts match
|
113
|
-
end
|
114
|
-
end
|
115
|
-
|
116
|
-
task :release => [:verify_env_vars, :release_files, :publish_doc, :tag] # :publish_news,
|
117
|
-
|
118
|
-
task :verify_env_vars do
|
119
|
-
raise "RUBYFORGE_USER environment variable not set!" unless ENV['RUBYFORGE_USER']
|
120
|
-
raise "RUBYFORGE_PASSWORD environment variable not set!" unless ENV['RUBYFORGE_PASSWORD']
|
121
|
-
end
|
122
|
-
|
123
|
-
task :publish_doc do
|
124
|
-
publisher = Rake::RubyForgePublisher.new(UNIX_NAME, ENV['RUBYFORGE_USER'])
|
125
|
-
publisher.upload
|
126
|
-
end
|
127
|
-
|
128
|
-
desc "Release files on RubyForge"
|
129
|
-
task :release_files => [:gem] do
|
130
|
-
release_files = FileList[
|
131
|
-
"pkg/#{PKG_FILE_NAME}.gem"
|
132
|
-
]
|
133
|
-
|
134
|
-
Rake::XForge::Release.new(MetaProject::Project::XForge::RubyForge.new(UNIX_NAME)) do |release|
|
135
|
-
# Never hardcode user name and password in the Rakefile!
|
136
|
-
release.user_name = ENV['RUBYFORGE_USER']
|
137
|
-
release.password = ENV['RUBYFORGE_PASSWORD']
|
138
|
-
release.files = release_files.to_a
|
139
|
-
release.release_name = "Autobuild #{PKG_VERSION}"
|
140
|
-
# The rest of the options are defaults (among others, release_notes and release_changes, parsed from CHANGES)
|
141
|
-
end
|
142
|
-
end
|
143
|
-
|
144
|
-
desc "Publish news on RubyForge"
|
145
|
-
task :publish_news => [:gem] do
|
146
|
-
release_files = FileList[
|
147
|
-
"pkg/#{PKG_FILE_NAME}.gem"
|
148
|
-
]
|
149
|
-
|
150
|
-
Rake::XForge::NewsPublisher.new(MetaProject::Project::XForge::RubyForge.new(UNIX_NAME)) do |news|
|
151
|
-
# Never hardcode user name and password in the Rakefile!
|
152
|
-
news.user_name = ENV['RUBYFORGE_USER']
|
153
|
-
news.password = ENV['RUBYFORGE_PASSWORD']
|
154
|
-
end
|
155
|
-
end
|
156
|
-
|
157
|
-
desc "Tag all the svn files with the latest release number (REL=x.y.z)"
|
158
|
-
task :tag do
|
159
|
-
puts "Tagging release"
|
160
|
-
base_url = %{svn+ssh://#{RUBYFORGE_USER}@rubyforge.org/var/svn/autobuild}
|
161
|
-
sh %{svn cp #{base_url}/trunk/autobuild #{base_url}/tags/release/#{PKG_VERSION}}
|
162
|
-
end
|
163
|
-
|
164
|
-
|
data/bin/autobuild
CHANGED
@@ -27,7 +27,9 @@ begin
|
|
27
27
|
Reporting << MailReporter.new(Autobuild.mail)
|
28
28
|
end
|
29
29
|
|
30
|
-
|
30
|
+
targets = ['import']
|
31
|
+
targets += ['prepare', 'build'] if Autobuild.do_build
|
32
|
+
targets.each do |phase|
|
31
33
|
if packages.empty?
|
32
34
|
Rake::Task[phase].invoke
|
33
35
|
else
|
data/lib/autobuild/import/cvs.rb
CHANGED
@@ -23,9 +23,15 @@ module Autobuild
|
|
23
23
|
private
|
24
24
|
|
25
25
|
def update(package)
|
26
|
-
Dir.chdir(package.srcdir)
|
26
|
+
Dir.chdir(package.srcdir) do
|
27
|
+
root = File.open("#{package.srcdir}/CVS/Root") { |io| io.read }.chomp
|
28
|
+
mod = File.open("#{package.srcdir}/CVS/Repository") { |io| io.read }.chomp
|
29
|
+
|
30
|
+
if root != @root || mod != @module
|
31
|
+
raise ArgumentError, "checkout in #{package.srcdir} is from #{root}:#{mod}, was expecting #{@root}:#{@mod}"
|
32
|
+
end
|
27
33
|
Subprocess.run(package.name, :import, @program, 'up', *@options_up)
|
28
|
-
|
34
|
+
end
|
29
35
|
end
|
30
36
|
|
31
37
|
def checkout(package)
|
data/lib/autobuild/import/svn.rb
CHANGED
@@ -15,6 +15,12 @@ module Autobuild
|
|
15
15
|
|
16
16
|
def update(package)
|
17
17
|
Dir.chdir(package.srcdir) {
|
18
|
+
url = IO.popen("svn info") { |io| io.readlines }.grep(/^URL: /).first.chomp
|
19
|
+
url =~ /URL: (.+)/
|
20
|
+
source = $1
|
21
|
+
if source != @source
|
22
|
+
raise ArgumentError, "current checkout found at #{package.srcdir} is from #{source}, was expecting #{@source}"
|
23
|
+
end
|
18
24
|
Subprocess.run(package.name, :import, @program, 'up', *@options_up)
|
19
25
|
}
|
20
26
|
end
|
@@ -53,6 +53,7 @@ module Autobuild
|
|
53
53
|
|
54
54
|
def initialize(options)
|
55
55
|
@using = Hash.new
|
56
|
+
@configureflags = []
|
56
57
|
|
57
58
|
super
|
58
59
|
|
@@ -93,7 +94,7 @@ module Autobuild
|
|
93
94
|
configure
|
94
95
|
end
|
95
96
|
|
96
|
-
source_tree srcdir, builddir
|
97
|
+
source_tree srcdir, /^#{Regexp.quote(builddir)}/
|
97
98
|
file buildstamp => [ srcdir, "#{builddir}/config.status" ] do
|
98
99
|
ensure_dependencies_installed
|
99
100
|
build
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'autobuild/packages/autotools'
|
2
2
|
require 'open3'
|
3
|
+
require 'autobuild/pkgconfig'
|
3
4
|
|
4
5
|
module Autobuild
|
5
6
|
def self.genom(opts, &proc)
|
@@ -35,13 +36,18 @@ module Autobuild
|
|
35
36
|
|
36
37
|
# Extracts dependencies using the requires: field in the .gen file
|
37
38
|
def get_requires
|
39
|
+
apionly = genomflags.find { |f| f == '-a' }
|
38
40
|
cpp = Autobuild.tool(:cpp)
|
39
41
|
Open3.popen3("#{cpp} #{cpp_options.join(" ")} #{srcdir}/#{name}.gen") do |cin, out, err|
|
40
42
|
out.each_line { |line|
|
41
|
-
if line =~ /^\s*requires\s*:\s*([\w\-]+(?:\s*,\s*[\w\-]+)*);/
|
42
|
-
|
43
|
-
|
44
|
-
|
43
|
+
if line =~ /^\s*(codels_)?requires\s*:\s*([\w\-]+(?:\s*,\s*[\w\-]+)*);/
|
44
|
+
# Remove the codels_requires lines if -a is given to genom
|
45
|
+
unless $1 == "codels_" && apionly
|
46
|
+
$2.split(/, /).each { |name| depends_on name }
|
47
|
+
end
|
48
|
+
elsif line =~ /^\s*(?:codels_)?requires/
|
49
|
+
# Check that the regexp is not too strict
|
50
|
+
STDERR.puts "failed to match #{line}"
|
45
51
|
end
|
46
52
|
}
|
47
53
|
end
|
@@ -64,18 +70,40 @@ module Autobuild
|
|
64
70
|
file genomstamp => packages.map { |p| Package[p].installstamp }
|
65
71
|
end
|
66
72
|
|
73
|
+
# Make the genom-stamp file depend on
|
74
|
+
# * genom includes
|
75
|
+
# * genom canvas
|
76
|
+
# * the genom binary itself
|
77
|
+
def genom_dependencies
|
78
|
+
# Get the genom pkg-config
|
79
|
+
if Package['genom']
|
80
|
+
'genom'
|
81
|
+
else
|
82
|
+
genom_pkg = PkgConfig.new('genom')
|
83
|
+
|
84
|
+
includedir = File.join(genom_pkg.includedir, 'genom')
|
85
|
+
source_tree includedir
|
86
|
+
|
87
|
+
canvasdir = File.join(genom_pkg.prefix, "share", "genom", genom_pkg.version);;
|
88
|
+
source_tree canvasdir
|
89
|
+
|
90
|
+
binary = File.join(genom_pkg.exec_prefix, "bin", "genom")
|
91
|
+
file binary
|
92
|
+
|
93
|
+
[binary, includedir, canvasdir]
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
67
97
|
def regen
|
68
98
|
cmdline = [ 'genom', "#{name}.gen", *genomflags ]
|
69
99
|
|
70
100
|
file buildstamp => genomstamp
|
101
|
+
file genomstamp => genom_dependencies
|
71
102
|
file genomstamp => srcdir do
|
72
103
|
Dir.chdir(srcdir) do
|
73
104
|
Subprocess.run(name, 'genom', *cmdline)
|
74
105
|
end
|
75
106
|
end
|
76
|
-
if Package['genom']
|
77
|
-
file genomstamp => Package['genom'].installstamp
|
78
|
-
end
|
79
107
|
|
80
108
|
acuser = File.join(srcdir, "configure.ac.user")
|
81
109
|
file File.join(srcdir, 'configure') => acuser do
|
@@ -12,12 +12,11 @@ module Autobuild
|
|
12
12
|
end
|
13
13
|
def initialize(target)
|
14
14
|
super
|
15
|
-
source_tree srcdir, installstamp
|
15
|
+
source_tree srcdir, /^#{Regexp.quote(installstamp)}/
|
16
16
|
file installstamp => srcdir do
|
17
17
|
touch_stamp installstamp
|
18
18
|
end
|
19
19
|
end
|
20
|
-
def prepare; end
|
21
20
|
end
|
22
21
|
end
|
23
22
|
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'autobuild/pkgconfig'
|
2
|
+
|
3
|
+
module Autobuild
|
4
|
+
class InstalledPkgConfig < Package
|
5
|
+
def initialize(name)
|
6
|
+
@pkgconfig = PkgConfig.new(name)
|
7
|
+
@prefix = @pkgconfig.prefix
|
8
|
+
super
|
9
|
+
end
|
10
|
+
|
11
|
+
def installstamp
|
12
|
+
std_stamp = super
|
13
|
+
if File.file?(std_stamp)
|
14
|
+
std_stamp
|
15
|
+
else
|
16
|
+
raise "#{name} is either not installed or has not been built by autobuild (#{std_stamp} not found)"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
def installed_pkgconfig(name, &block)
|
21
|
+
InstalledPkgConfig.new(name, &block)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
@@ -0,0 +1,53 @@
|
|
1
|
+
require 'autobuild/timestamps'
|
2
|
+
require 'autobuild/package'
|
3
|
+
require 'enumerator'
|
4
|
+
|
5
|
+
module Autobuild
|
6
|
+
def self.ruby(spec, &proc)
|
7
|
+
RubyPackage.new(spec, &proc)
|
8
|
+
end
|
9
|
+
|
10
|
+
class RubyPackage < Package
|
11
|
+
# The list of all extension directories
|
12
|
+
attr_reader :extdir
|
13
|
+
|
14
|
+
def installstamp
|
15
|
+
"#{srcdir}/#{STAMPFILE}"
|
16
|
+
end
|
17
|
+
def initialize(target)
|
18
|
+
super
|
19
|
+
source_tree srcdir, [/Makefile$/, /\.(?:so|o)$/]
|
20
|
+
file installstamp => srcdir do
|
21
|
+
touch_stamp installstamp
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
def prepare
|
26
|
+
@extdir = Find.enum_for(:find, srcdir).
|
27
|
+
grep(/extconf.rb$/).
|
28
|
+
map { |f| File.dirname(f) }
|
29
|
+
|
30
|
+
extdir.each do |dir|
|
31
|
+
file "#{dir}/Makefile" => "#{dir}/extconf.rb" do
|
32
|
+
Dir.chdir(dir) do
|
33
|
+
Subprocess.run(name, 'ext', Autobuild.tool('ruby'), 'extconf.rb')
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
def extstamp(dir); "#{dir}/ext-#{STAMPFILE}" end
|
40
|
+
def build
|
41
|
+
extdir.each do |dir|
|
42
|
+
source_tree dir, [/Makefile$/, /\.(?:so|o)$/]
|
43
|
+
file extstamp(dir) => dir do
|
44
|
+
Dir.chdir(dir) do
|
45
|
+
Subprocess.run(name, 'ext', Autobuild.tool('make'))
|
46
|
+
touch_stamp extstamp(dir)
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|