Tags:
build1Add my vote for this tag compatibility1Add my vote for this tag create new tag
, view all tags

Distribution Contrib Package

Provides access to TWiki Distribution meta information

Summary of Contents

Distribution Contrib

A module to provide programmatic access to: 1 Conversion between release identifiers (e.g. %WIKINAME -> TWiki2002...) 2 Fetching of individual files of any given distribution name (excluding zip files)

Settings

Settings are stored as preferences variables. To reference a setting write %<plugin>_<setting>%, e.g. %JSCALENDARCONTRIB_STUB%

  • One line description:
    • Set SHORTDESCRIPTION = Provides access to TWiki Distribution meta information

  • Name of the perl package
    • Set STUB = TWiki::Contrib::DistributionContrib

To Do

  1. The settings in Config.pm should be made into settings on this page.

Detailed Documentation

sub wikiVersionToDistributionName($wikiVersion)

  • turns '01 Feb 2003' => "TWiki20030201"

sub releaseTopicToDistributionName($releaseTopic)

sub fetchDistributionFile()

In: | $file | name of filename, e.g. bin/view | | $distribution | name of distribution, e.g. TWiki20020201 | | $localFileSuffix | for the downloaded file, any suffix to be added to the filename |

Out: | $location | where the local copy of the file has been placed |

NB. the localFileSuffix is a way to allow multiple downloaded files to coexist at the same time. As the FileFetcher does not provide a way to delete the files (and TWiki does not automatically refresh its attachment table on the arrival of new attachments), I recommend you use unique names scarcely. e.g. keep using the same localFileSuffix "1", "2"

Installation Instructions

Note: You do not need to install anything on the browser to use this contrib package. The following instructions are for the administrator who installs the package on the server where TWiki is running.

  • Download the ZIP file from the Plugin web (see below)
  • Unzip DistributionContrib.zip in your twiki installation directory. Content:
    File: Description:
    ./lib/TWiki/Contrib/DistributionContrib/TWikiReleaseNames.pm  
    ./lib/TWiki/Contrib/DistributionContrib/Config.pm  
    ./lib/TWiki/Contrib/DistributionContrib/FileFetcher.pm  
    ./lib/TWiki/Contrib/DistributionContrib/build.pl  
    ./.project  
    ./data/TWiki/DistributionContrib.txt  
    ./pub/TWiki/DistributionContrib/  
    DistributionContrib_installer.pl Install script

  • Test if the installation was successful:
    • enter samples here

Contrib Info

Author: TWiki:Main.MartinCleaver
Copyright ©: 2004, Martin Cleaver, All Rights Reserved
License: GPL (GNU General Public License)
Dependencies:
NameVersionDescription
TWiki::Contrib::BuildContrib>0.1Build Environment
LWP>5.0Used for downloads
Version: 0.3
Change History:  
23 Aug 2004: Initial version
Home: http://TWiki.org/cgi-bin/view/Plugins/DistributionContrib
Feedback: http://TWiki.org/cgi-bin/view/Plugins/DistributionContribDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/DistributionContribAppraisal

Related Topics: TWikiPreferences, TWikiPlugins

-- TWiki:Main.MartinCleaver - 23 Aug 2004

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatmd5 DistributionContrib.md5 r2 r1 manage 0.2 K 2008-12-12 - 11:14 SopanShewale checksum file , Uploaded as a part of Release Process
Compressed Zip archivetgz DistributionContrib.tgz r2 r1 manage 4.1 K 2008-12-12 - 11:14 SopanShewale See DistributionContrib for details. Untar and run the installer script, Uploaded as a part of Release Process
Compressed Zip archivezip DistributionContrib.zip r7 r6 r5 r4 r3 manage 6.5 K 2008-12-12 - 11:14 SopanShewale See DistributionContrib for details. Unzip and run the installer script , Uploaded as a part of Release Process
Unknown file formatEXT DistributionContrib_installer r2 r1 manage 3.6 K 2008-12-12 - 11:14 SopanShewale Installer Script, Uploaded as a part of Release Process
Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r10 - 2008-12-12 - SopanShewale
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.