[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

copypage diff



        Hi!

 I don't know if it's really useful for most of the people but I thought
I'd give it a try.  Inspired by Dennis please take a look at this diff:

-----------------------------------------------------------------------
Index: copypage.pl
===================================================================
RCS file: /cvs/webwml/webwml/copypage.pl,v
retrieving revision 1.15
diff -u -r1.15 copypage.pl
--- copypage.pl	2002/03/27 13:42:07	1.15
+++ copypage.pl	2002/07/15 08:58:58
@@ -101,7 +101,7 @@
 			or die "Could not create $dstdir: $!\n";
 		if ( -e $srcmake ) {
 		     print "creating and copying	$dstmake\n";
-		     system "cp $srcmake $dstmake";
+		     system "echo 'include \$(subst webwml/german,webwml/english,\$(CURDIR))/Makefile' > $dstmake";
 		}
 	}
 
-----------------------------------------------------------------------

 What it does is quite simple: Instead of copying over the Makefile from
the src-directory it simply creates a Makefile with the following
content:

include $(subst webwml/german,webwml/english,$(CURDIR))/Makefile

 That way we won't have to sync the makefiles anymore and can even
reduce the check_trans.pl script by dropping the -M stuff out.

 If noone objects I'm willing to commit it.  If one does I'm just using
it in my private copy ;)

 Have fun,
Alfie
-- 
From: info2@backtoday.com
CC: debian-user@lists.debian.org
 
Dear Windows User,

Attachment: pgplhzwXaf2I5.pgp
Description: PGP signature


Reply to: