You are here: Foswiki>Tasks Web>Item664 (03 Mar 2009, WillNorris)Edit Attach

Item664: Adding Kenneth's twiki2foswiki to the developer tool box on SVN

pencil
Priority: Normal
Current State: Closed
Released In: 1.0.0
Target Release: n/a
Applies To: Engine
Component: Dev tools
Branches:
Reported By: Foswiki:Main.KennethLavrsen
Waiting For:
Last Change By: WillNorris
Adding Kenneth's famous twiki2foswiki conversion script to the tool box

The script works like this

If you have an extension you want converted to Foswiki namespace you

  • Change current working directory to the directory level above the extension
  • The extension must be inside a directory with the same name as the extension
  • If the extension is in an SVN checkout the script will auto detect this and use svn mv commands. Otherwise it will just use mv. The detection is based on the presence of the .svn directory inside the extension directory. This means if you want to use the use on a copy of the extension from an SVN checkout you need to remove with rm -Rf .svn the .svn directory in the top directoty of the extension tree.
  • Simply run twiki2foswiki MyVeryBestPlugin and see the magic happen.

Note that the script does 90-95 % of the work. You still need to

  • Update the .txt topic and manually change TWiki to Foswiki as required. The script cannot know where it is right to do that.
  • Update the revision number of the extension in case you plan to check in the updated extension on SVN
  • Update comments in the code if you want it 100% pure and clean for the future.

Please update the script as you find new special cases to add so it does as much work for us as possible.

Consider the script Free to anyone to modify.

ItemTemplate edit

Summary Adding Kenneth's twiki2foswiki to the developer tool box on SVN
ReportedBy Foswiki:Main.KennethLavrsen
Codebase trunk
SVN Range TWiki-4.2.3, Wed, 06 Aug 2008, build 17396
AppliesTo Engine
Component Dev tools
Priority Normal
CurrentState Closed
WaitingFor
Checkins distro:698ef9405f4e distro:9fbfef192984
TargetRelease n/a
ReleasedIn 1.0.0
Topic revision: r4 - 03 Mar 2009, WillNorris
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy