File: drop-config-git-ops.patch

package info (click to toggle)
php-doc 20250827~git.abe740d%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 71,968 kB
  • sloc: xml: 985,760; php: 25,504; javascript: 671; sh: 177; makefile: 37
file content (58 lines) | stat: -rw-r--r-- 1,759 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Description: Drop git operations from configuration script
 The configuration script performs some operations with git to perform some
 clean-ups and generate debugging data. We do not need this here.
Author: Athos Ribeiro <athos@debian.org>
Forwarded: not-needed
Last-Update: 2025-09-04
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/doc-base/configure.php
+++ b/doc-base/configure.php
@@ -278,18 +278,6 @@
     }
 } // }}}
 
-if ( true ) # Initial clean up
-{
-    $dir = escapeshellarg( __DIR__ );
-    $cmd = "git -C $dir clean temp -fdx --quiet";
-    $ret = 0;
-    passthru( $cmd , $ret );
-    if ( $ret != 0 )
-    {
-        echo "doc-base/temp clean up FAILED.\n";
-        exit( 1 );
-    }
-}
 
 $srcdir  = dirname(__FILE__);
 $workdir = $srcdir;
@@ -575,28 +563,6 @@
 }
 
 
-// Show local repository status to facilitate debug
-
-$repos = array();
-$repos['doc-base']  = $ac['basedir'];
-$repos['en']        = "{$ac['rootdir']}/{$ac['EN_DIR']}";
-$repos[$ac['LANG']] = "{$ac['rootdir']}/{$ac['LANG']}";
-$repos = array_unique($repos);
-
-$output = "";
-foreach ( $repos as $name => $path )
-{
-    $path = escapeshellarg( $path );
-    $branch = trim( `git -C $path rev-parse --abbrev-ref HEAD` );
-    $suffix = $branch == "master" ? "" : " (branch $branch)";
-    $output .= str_pad( "$name:" , 10 );
-    $output .= rtrim( `git -C $path rev-parse HEAD`  ?? "" ) . "$suffix ";
-    $output .= rtrim( `git -C $path for-each-ref --format="%(push:track)" refs/heads/$branch` ?? "" ) . "\n";
-    $output .= rtrim( `git -C $path status -s` ?? "" ) . "\n";
-}
-while( str_contains( $output , "\n\n" ) )
-    $output = str_replace( "\n\n" , "\n" , $output );
-echo "\n" , trim( $output ) . "\n\n";
 
 
 xml_configure();