#!/bin/sh # # I got tired of editing the SWF.csproj # This script will generated it from our System.Windows.Forms.dll.sources # # tr=tr OutFile=SWF.csproj Source=System.Windows.Forms.dll.sources SWFhead() { cat << EOT EOT } SWFfilelist() { 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 | $tr '/' '\\\\'` cat << EOT EOT fi done } SWFtail() { cat << EOT EOT } SWFhead > $OutFile SWFfilelist >> $OutFile SWFtail >> $OutFile