I've recently come to the conclusion that when creating a wss solution (WSP), writing the needed lines for the ddf, manifest and provisioning files can be really time consuming. This is especially painful when it comes to images that are needed in master pages and page layout files, as the number of images can be quite large sometimes. So, I've created a little console app that creates the lines automatically and outputs them to a text file. All you need to do manually is copy and paste them into the correct files in the solution.
The output looks like this:
******************************************************
*************** MASTERPAGE ***************
******************************************************
***** DDF *****
TEMPLATE\FEATURES\CustomPublishingLayouts\MasterPages\blank.master FEATURES\CustomPublishingLayouts\MasterPages\blank.master
TEMPLATE\FEATURES\CustomPublishingLayouts\MasterPages\client1.master FEATURES\CustomPublishingLayouts\MasterPages\client1.master
***** MANIFEST *****
<TemplateFile Location="FEATURES\ClientPublishingLayouts\MasterPages\blank.master"/>
<TemplateFile Location="FEATURES\ClientPublishingLayouts\MasterPages\client1.master"/>
***** PROVISION *****
<File Url="blank.master" Type="GhostableInLibrary"/>
<File Url="client1.master" Type="GhostableInLibrary"/>
******************************************************
The program is currently set up to create the needed lines in the case of a custom publishing feature, but it can be easily changed for any feature type.
There's a configuration file which allows you to enter the directories and templates for output. Looks like this:
<?xml version="1.0" encoding="utf-8" ?>
<Templates>
<Template Name="ClientPublishingLayouts MasterPages"
Path="C:\Development\Solution\Project\TEMPLATE\FEATURES\ClientPublishingLayouts\MasterPages">
<Item Name="DDF"
Text="TEMPLATE\FEATURES\ClientPublishingLayouts\MasterPages\FILENAME
FEATURES\ClientPublishingLayouts\MasterPages\FILENAME"/>
<Item Name="MANIFEST"
Text="<TemplateFile Location="
FEATURES\ClientPublishingLayouts\MasterPages\FILENAME"/>"/>
<Item Name="PROVISION"
Text="<File Url="FILENAME"
Type="GhostableInLibrary"/>"/>
</Template>
<Template Name="_Layouts\ClientPages\Migration"
Path="C:\Development\Solution\Project\TEMPLATE\LAYOUTS\ClientPages\Migration">
<Item Name="DDF"
Text="TEMPLATE\LAYOUTS\ClientPages\Migration\FILENAME
LAYOUTS\ClientPages\Migration\FILENAME"/>
<Item Name="MANIFEST"
Text="<TemplateFile Location="
LAYOUTS\ClientPages\Migration\FILENAME"/>"/>
</Template>
etc...
</Templates>
You can download the source here: CreateEntriesInSolutionFiles.zip
So if you downloaded this before 7/23, the current download is a new release. Uses only one configuration file, and cleaner code...