Beispiel / sample
Hier ist ein Beispiel, was das Script mit einer (leicht abgeänderten) Mail aus der fontlinge-cvs Mailingliste macht.
This is a sampe result after piping a mail from fontlinge-cvs mailinglist through commitmail2html.
vorher / before
Update of /cvsroot/fontlinge/fontlinge_rc/html In directory sc8-pr-cvs1:/tmp/cvs-serv31527/fontlinge_rc/html Modified Files: custom.php Removed Files: Tag: fontlinge_2_0 dumpconvert_2.pl fontlinge_gui.pl Added Files: functions.php Log Message: custom.php - moved "our" code into index.php - custom.php is only used for custom code --- dumpconvert_2.pl DELETED --- --- fontlinge_gui.pl DELETED --- --- NEW FILE: functions.php --- [file content skipped] Index: custom.php =================================================================== RCS file: /cvsroot/fontlinge/fontlinge_rc/html/custom.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- custom.php 26 Dec 2002 18:04:01 -0000 1.1.1.1 +++ custom.php 26 Oct 2003 14:10:01 -0000 1.2 @@ -1,16 +1,8 @@ - <!-- Custom code --> -<!-- fontinfo.php Thanks to (c) Christian Boltz 2002 / GPL --> +<?php /* +custom code can be inserted in this file. - <td class='spaced'><img src="images/vdivider.png" border=0></td> - <td class='spaced'><a href="fontinfo.php?<?php echo [...] - <td class='spaced'><img src="images/vdivider.png" border=0></td> - <td class='spaced'><a href='javascript:preview("<?php echo [...] - <td class='spaced'><img src="images/vdivider.png" border=0></td> - <td class='spaced'><?php - $tmp="javascript:set_kategory('/NAME/',/ID/,-1);"; - $tmp=preg_replace("/\/NAME\//",$lookname,$tmp); - $tmp=preg_replace("/\/ID\//",$f[$i]["font_id"],$tmp); - echo "<a href=$tmp><img src='images/set_category.png' border=0></a>"; - ?></td> - <td class='spaced'><img src="images/vdivider.png" border=0></td> +This file will not be overwritten when running fontlinge_userinstall [...] +as long as you keep the above line intact. +*/ +?> ------------------------------------------------------- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ _______________________________________________ Fontlinge-cvs mailing list Fontlinge-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fontlinge-cvs
nachher / afterwards
Update of /cvsroot/fontlinge/fontlinge_rc/html
In directory sc8-pr-cvs1:/tmp/cvs-serv31527/fontlinge_rc/html
Modified Files:
custom.php
Removed Files:
Tag: fontlinge_2_0
dumpconvert_2.pl fontlinge_gui.pl
Added Files:
functions.php
Log Message:
custom.php
- moved "our" code into index.php
- custom.php is only used for custom code
--- dumpconvert_2.pl DELETED ---
--- fontlinge_gui.pl DELETED ---
--- NEW FILE: functions.php ---
[file content skipped]
Index: custom.php
===================================================================
RCS file: /cvsroot/fontlinge/fontlinge_rc/html/custom.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- custom.php 26 Dec 2002 18:04:01 -0000 1.1.1.1
+++ custom.php 26 Oct 2003 14:10:01 -0000 1.2
@@ -1,16 +1,8 @@
-
<!-- Custom code -->
-<!-- fontinfo.php Thanks to (c) Christian Boltz 2002 / GPL -->
+<?php /*
+custom code can be inserted in this file.
- <td class='spaced'><img src="images/vdivider.png" border=0></td>
- <td class='spaced'><a href="fontinfo.php?<?php echo [...]
- <td class='spaced'><img src="images/vdivider.png" border=0></td>
- <td class='spaced'><a href='javascript:preview("<?php echo [...]
- <td class='spaced'><img src="images/vdivider.png" border=0></td>
- <td class='spaced'><?php
- $tmp="javascript:set_kategory('/NAME/',/ID/,-1);";
- $tmp=preg_replace("/\/NAME\//",$lookname,$tmp);
- $tmp=preg_replace("/\/ID\//",$f[$i]["font_id"],$tmp);
- echo "<a href=$tmp><img src='images/set_category.png' border=0></a>";
- ?></td>
- <td class='spaced'><img src="images/vdivider.png" border=0></td>
+This file will not be overwritten when running fontlinge_userinstall [...]
+as long as you keep the above line intact.
+*/
+?>