#!/bin/bash # # This script will generate SWF.cs.target from our System.Windows.Forms.dll.sources # # exec > SWF2k5.csproj Source=System.Windows.Forms.dll.sources Resource=System.Windows.Forms.dll.resources SWFhead() { cat < Local 8.0.50727 2.0 {5E6430B2-6B9F-4E76-802E-20207EF80391} Debug AnyCPU System.Windows.Forms JScript Grid IE50 false Library OnBuildSuccess bin\Debug\ true 285212672 false NET_1_1 NET_2_0 true 4096 false 612,618,3021 false false false false 3 full prompt bin\Release\ true 285212672 false NET_1_1 NET_2_0 false 4096 false 612,618,3021 false false false false 3 none prompt bin\Debug\ true 285212672 false NET_1_1 ONLY_1_1 true 4096 false 612,618,3021 false false false false 3 full prompt bin\Release\ true 285212672 false NET_1_1 ONLY_1_1 false 4096 false 612,618,3021 false false false false 3 none prompt Accessibility System System.Data System.Data System.Drawing System.Xml EOF } SWFtail() { cat < EOF } SWFfilelist() { echo " " cat $Source | while read SRC; do # Don't do AssemblyInfo, it's got signing requests and such that we don't want if [ "x$SRC" != "xAssembly/AssemblyInfo.cs" ] ; then SRC=`echo $SRC | sed 's/..\/..\/build\///'` SRC=`echo $SRC | tr '/' '\\\\'` cat < EOF fi done echo " " } SWFresourcelist() { echo " " cat $Resource | while read SRC; do CUSTOMTOOLNAMESPACE="" # strip out that -resource: SRC=`echo $SRC | sed 's/-resource://'` CUSTOMTOOLNAMESPACE=`echo $SRC | awk -F, '{print $2}'` INCLUDE=`echo $SRC | awk -F, '{print $1}'` if test -f $INCLUDE.prebuilt; then INCLUDE=$INCLUDE.prebuilt fi # strip off the path from the name of the resource and the .prebuilt if there is one LOGICALNAME=`echo $INCLUDE | sed 's/resources\///;s/.prebuilt//'` # convert all /'s to \\'s INCLUDE=`echo $INCLUDE | sed 's/\//\\\\/'` echo " " echo " $LOGICALNAME" if test "x$CUSTOMTOOLNAMESPACE" != "x"; then echo " $CUSTOMTOOLNAMESPACE" fi echo " " done echo " " } SWFhead SWFfilelist SWFresourcelist SWFtail