Priority: Normal
Current State: Closed
Released In: 1.0.0
Target Release: n/a
Applies To: Engine
Component: Dev tools
Branches:
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.