[Kde-imaging] extragear/libs

Angelo Naselli anaselli at linux.it
Sun Feb 11 23:31:13 CET 2007


SVN commit 632689 by anaselli:

Added svn2cl management to avoid bad days :)

CCMAIL:kde-imaging at kde.org

 M  +28 -1     prepare_libkexiv2.rb  


--- trunk/extragear/libs/prepare_libkexiv2.rb #632688:632689
@@ -8,9 +8,17 @@
 
 name       = "libkexiv2"
 egmodule   = "libs"
-version    = "0.1.0-svn"
+version    = "0.1.0"
 version_n  = "0x000100"
 
+usesv2cl   = "yes"
+# svn2cl depends on how you installed it
+svn2cl     = "svn2cl"
+svnbase    = "svn+ssh://anaselli@svn.kde.org/home/kde"
+#svnbase    = "svn+ssh://vfuoglio@svn.kde.org/home/kde"
+svnroot    = "trunk"
+chlog_rev  = "615738"
+
 t          = Time.now
 date       = t.strftime("%Y-%m-%d")
 
@@ -79,4 +87,23 @@
 File.rename(old_file, "old.orig")
 File.rename(new_file, old_file)
 
+# modify libkexiv2/Changelog
+if (usesv2cl  == "yes")
+	chfile = name + "/ChangeLog"
+	`rm -f #{chfile} 2> /dev/null`
+	chlog = File.open(chfile, "w")
+	chlog.print "V " + version + " - " + date + "\n"
+	chlog.print "----------------------------------------------------------------------------"
+	chlog.print "\n"
+	chlog.close
+	
+`#{svn2cl} --break-before-msg \
+    --strip-prefix=#{svnroot}/extragear/#{egmodule} --stdout \
+    -i #{svnbase}/#{svnroot}/extragear/#{egmodule}/#{name} -r head:#{chlog_rev} >> #{chfile}`
 
+	`echo \"----------------------------------------------------------------------------\" >> #{chfile}`
+	`svn cat #{svnbase}/#{svnroot}/extragear/#{egmodule}/#{name}/ChangeLog >> #{chfile}`
+	puts( "done #{chfile}\n" )
+	puts( "\n" )
+end
+


More information about the Kde-imaging mailing list