~ubuntu-branches/ubuntu/breezy/svn-buildpackage/breezy

« back to all changes in this revision

Viewing changes to experimental_master_patch.diff

  • Committer: Bazaar Package Importer
  • Author(s): Eduard Bloch
  • Date: 2005-06-22 22:58:16 UTC
  • mfrom: (1.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050622225816-3xp527bqyy0gfhel
Tags: 0.6.9
using "cp" for .orig.tar.gz copying again, more reliable

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Index: svn-buildpackage
 
2
===================================================================
 
3
--- svn-buildpackage    (Revision 1406)
 
4
+++ svn-buildpackage    (Arbeitskopie)
 
5
@@ -25,11 +25,12 @@
 
6
   --svn-dont-purge   Don't wipe the build directory (default: purge after build)
 
7
   --svn-no-links     Don't use file links (default: use where possible)
 
8
   --svn-ignore-new   Don't stop on svn conflicts or new/changed files
 
9
+  --svn-ignore-master Never use the .master directory
 
10
   --svn-verbose      More verbose program output
 
11
   --svn-builder CMD  Use CMD as build command instead of dpkg-buildpackage
 
12
   --svn-override a=b Override some config variable (comma separated list)
 
13
   --svn-move         move package files to .. after successful build
 
14
-  --svn-move-to XYZ  move package files to XYZ, implies --svn-move
 
15
+  --svn-move-to XYZ  like --svn-move but moves package files to directory XYZ
 
16
   --svn-only-tag     Tags the current trunk directory without building
 
17
   --svn-tag          Final build: Export && build && tag && dch -i
 
18
   --svn-lintian      Run lintian in the build area when done
 
19
@@ -46,6 +47,7 @@
 
20
 my $opt_dontclean;
 
21
 my $opt_dontpurge;
 
22
 my $opt_ignnew;
 
23
+my $opt_ignmaster;
 
24
 my $opt_tag;
 
25
 my $opt_only_tag;
 
26
 my $opt_lintian;
 
27
@@ -64,6 +66,7 @@
 
28
    "h|help"                => \$opt_help,
 
29
    "svn-verbose"           => \$opt_verbose,
 
30
    "svn-ignore-new"        => \$opt_ignnew,
 
31
+   "svn-ignore-master"        => \$opt_ignmaster,
 
32
    "svn-dont-clean"        => \$opt_dontclean,
 
33
    "svn-dont-purge"        => \$opt_dontpurge,
 
34
    "svn-only-tag"               => \$opt_only_tag,
 
35
@@ -294,10 +297,14 @@
 
36
    die "E: Could not find the upstream source file! (should be $origExpect)\n" if(! ($origfile && -e $origfile));
 
37
    $mod=rand;
 
38
    mkdir "$ba/tmp-$mod";
 
39
-   withecho "tar", "zxf", $origfile, "-C", "$ba/tmp-$mod";
 
40
+   if($opt_ignmaster || !-e "$bdir.master" || 0!=system("cp", "-la", "$bdir.master", $bdir)) {
 
41
+      withecho "tar", "zxf", $origfile, "-C", "$ba/tmp-$mod";
 
42
+   }
 
43
+
 
44
    withecho "mv $ba/tmp-$mod/* $bdir";
 
45
    withecho "rm", "-rf", "$ba/tmp-$mod";
 
46
    if($opt_nolinks || $opt_ignnew) {
 
47
+      # svn export is blind for unregistered new files, but that would remind to run "svn add" on them
 
48
       withecho ("svn", "export", $$c{"trunkDir"},"$ba/tmp-$mod");
 
49
       withecho "cp", "-af", "$ba/tmp-$mod/.", "$bdir/";
 
50
    }