gnomemm r1956 - in cluttermm_tutorial/trunk: . docs/tutorial
- From: daniel svn gnome org
- To: svn-commits-list gnome org
- Subject: gnomemm r1956 - in cluttermm_tutorial/trunk: . docs/tutorial
- Date: Tue, 6 Jan 2009 21:02:21 +0000 (UTC)
Author: daniel
Date: Tue Jan 6 21:02:20 2009
New Revision: 1956
URL: http://svn.gnome.org/viewvc/gnomemm?rev=1956&view=rev
Log:
* docs/tutorial/insert_example_code.pl: Look for files with ".cc"
extension rather than ".c". Also be more lenient with regards to
the capitalization of "Source code".
Modified:
cluttermm_tutorial/trunk/ChangeLog
cluttermm_tutorial/trunk/docs/tutorial/insert_example_code.pl
Modified: cluttermm_tutorial/trunk/docs/tutorial/insert_example_code.pl
==============================================================================
--- cluttermm_tutorial/trunk/docs/tutorial/insert_example_code.pl (original)
+++ cluttermm_tutorial/trunk/docs/tutorial/insert_example_code.pl Tue Jan 6 21:02:20 2009
@@ -16,9 +16,9 @@
#Beginning of comment:
# Look for
- # <para><ulink url="&url_examples_base;helloworld">Source Code</ulink></para>
+ # <para><ulink url="&url_examples_base;helloworld">Source code</ulink></para>
- if(/<para><ulink url=\"&url_examples_base;([\/\w]+)\">Source Code<\/ulink><\/para>/)
+ if(/<para><ulink url=\"&url_examples_base;([\/\w]+)\">Source [Cc]ode<\/ulink><\/para>/)
{
#List all the source files in that directory:
my $directory = $examples_base . $1;
@@ -27,7 +27,7 @@
my @dir_contents = readdir(DIR);
closedir(DIR);
- my @source_files = grep(/\.c$/, @dir_contents);
+ my @source_files = grep(/\.cc$/, @dir_contents);
my @header_files = grep(/\.h$/, @dir_contents);
print "<!-- start inserted example code -->\n";
@@ -79,4 +79,3 @@
close(SOURCE_FILE);
}
-
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]