[debian-edu-commits] debian-edu/debian-edu-doc.git (#162) - wheezy (branch) updated: 0.6.20070721-36-g9edb239
David Prévot
taffit at alioth.debian.org
Sat Oct 5 12:13:33 UTC 2013
The branch, wheezy has been updated
via 9edb239a7853e9d8c8e57835e504fc72216a33f3 (commit)
from 65b218f56156d85f9d4a982496974e105b96240b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
-----------------------------------------------------------------------
Summary of changes:
documentation/release-manual/get_images | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
The diff of changes is:
diff --git a/documentation/release-manual/get_images b/documentation/release-manual/get_images
index 9ad671a..58b599a 100755
--- a/documentation/release-manual/get_images
+++ b/documentation/release-manual/get_images
@@ -17,8 +17,9 @@ sub create ($) {
my $link = shift;
my $name = $link;
my $url;
- #FIXME: Evil hack :S
+ # use regex to replace the long url with shorter one
$name =~ s#/DebianEdu/Documentation/Etch/\w+\?action=AttachFile&do=get&target=([\w\d]+)#$1#g;
+ # special case the worldmap image
if ($name =~ m#http://www\.skolelinux\.no/slschools/worldmap\.php\?lang=en&foo=bar\.jpeg#) {
$url = $name;
$name = "worldmap.jpeg";
@@ -40,7 +41,9 @@ sub replace () {
undef $/;
my $local = <FILE>;
close(FILE);
+ # look for images...
if ( $local =~ m#<imagedata fileref='/DebianEdu/Documentation/Etch/\w+\?action=AttachFile&do=get&target=([^']+)'/>#) {
+ # ..and replace the paths
$local =~ s#<imagedata fileref='([^'"<>]+)'/>#create($1)#eg;
open(FILE, '>./release-manual.xml') or die "Can't open file for writing";
print FILE $local;
hooks/post-receive
--
debian-edu-doc.git (Debian package debian-edu-doc)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "debian-edu-doc.git" (Debian package debian-edu-doc).
More information about the debian-edu-commits
mailing list