File: debianization.patch

package info (click to toggle)
bibtool 2.68%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,668 kB
  • sloc: ansic: 11,808; perl: 8,145; makefile: 550; sh: 307; tcl: 51
file content (84 lines) | stat: -rw-r--r-- 2,261 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
Description: debianization
 Meant to maintain a minimal debian/rules, to fix warnings,
 to address Debian specific stuff in general.
Origin: debian
Forwarded: not-needed
Author: Jerome Benoit <calculus@rezozer.net>
Last-Update: 2020-05-06

--- a/AutoConf/makefile.in
+++ b/AutoConf/makefile.in
@@ -48,7 +48,7 @@
 #  as the final location. This seems useful for building
 #  RPMs on Linux.
 
-INSTALLPREFIX =
+INSTALLPREFIX = $(DESTDIR)
 
 # -------------------------------------------------------
 #  Destination directory for make install
@@ -73,7 +73,7 @@
 #  are installed plus a final BibTool.
 # 
 
-LIBDIR     = @libdir@/BibTool
+LIBDIR     = @datadir@/bibtool
 
 #-------------------------------------------------------
 # Destination directory for make install.include
@@ -100,7 +100,7 @@
 # 	   optimizer is turned on.
 # 
 
-CFLAGS     = @CFLAGS@
+CFLAGS   = -Wall @CFLAGS@ -Wno-misleading-indentation -Wno-unused-function
 # CFLAGS = -O
 #  GNU C
 # CFLAGS = -g -Wall
@@ -171,7 +171,7 @@
 #  already existent. If your install does not support the 
 #  -d option you can try to use mkdir instead.
 
-INSTALL_DIR	= ./mkdirchain
+INSTALL_DIR	= @INSTALL@ -d
 
 # -------------------------------------------------------
 # The ranlib program or : for nothing.
--- a/doc/make_version.pl
+++ b/doc/make_version.pl
@@ -46,7 +46,7 @@
 #
 my $verbose = 0;
 
-my $LIBDIR = '/usr/local/lib/BibTool';
+my $LIBDIR = '/usr/share/bibtool';
 
 use Getopt::Long;
 GetOptions("h|help"	=> \&usage,
--- a/Perl/bibtool.pl
+++ b/Perl/bibtool.pl
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
 ##*****************************************************************************
 ## 
 ##  This file is part of BibTool.
--- a/Tcl/bibtool.tcl
+++ b/Tcl/bibtool.tcl
@@ -1,4 +1,4 @@
-#!/usr/local/bin/tclsh
+#!/usr/bin/tclsh
 ##*****************************************************************************
 ## 
 ## This file is part of BibTool.
--- a/test/lib/BUnit.pm
+++ b/test/lib/BUnit.pm
@@ -98,7 +98,7 @@
 # Variable:	$BIBTOOL
 # Description:	
 #
-our $BIBTOOL = $ENV{'BIBTOOL_PRG'} || '../bibtool';
+our $BIBTOOL = $ENV{'BIBTOOL_PRG'} || '/usr/bin/bibtool';
 
 #------------------------------------------------------------------------------
 # Variable:	$name_prefix