File: 11_debian_version_string.dpatch

package info (click to toggle)
refit 0.12-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,280 kB
  • ctags: 2,663
  • sloc: ansic: 13,451; sh: 1,418; python: 631; objc: 319; makefile: 83; perl: 45
file content (31 lines) | stat: -rw-r--r-- 1,418 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
#! /bin/sh /usr/share/dpatch/dpatch-run
## 11_debian_version_string.dpatch by  <jblache@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Add the debian version in the version string.

@DPATCH@
diff -urNad refit-0.12~/refit/Makefile refit-0.12/refit/Makefile
--- refit-0.12~/refit/Makefile	2008-10-23 18:21:04.341614328 +0200
+++ refit-0.12/refit/Makefile	2008-10-23 18:21:04.497614520 +0200
@@ -15,7 +15,7 @@
   LIBEG = build64
 endif
 
-LOCAL_CPPFLAGS  = -I$(SRCDIR) -I$(SRCDIR)/../include -I$(SRCDIR)/../libeg
+LOCAL_CPPFLAGS  = -I$(SRCDIR) -I$(SRCDIR)/../include -I$(SRCDIR)/../libeg -DDEBIAN_VERSION="L\"$(DEBVER)\""
 LOCAL_LDFLAGS   = -L$(SRCDIR)/../libeg/$(LIBEG)
 LOCAL_LIBS      = -leg
 
diff -urNad refit-0.12~/refit/main.c refit-0.12/refit/main.c
--- refit-0.12~/refit/main.c	2008-10-23 18:21:04.331614291 +0200
+++ refit-0.12/refit/main.c	2008-10-23 18:21:04.497614520 +0200
@@ -82,7 +82,7 @@
 {
     if (AboutMenu.EntryCount == 0) {
         AboutMenu.TitleImage = BuiltinIcon(BUILTIN_ICON_FUNC_ABOUT);
-        AddMenuInfoLine(&AboutMenu, L"rEFIt Version 0.12");
+        AddMenuInfoLine(&AboutMenu, L"rEFIt Version 0.12 " DEBIAN_VERSION);
         AddMenuInfoLine(&AboutMenu, L"");
         AddMenuInfoLine(&AboutMenu, L"Copyright (c) 2006-2008 Christoph Pfisterer");
         AddMenuInfoLine(&AboutMenu, L"Portions Copyright (c) Intel Corporation and others");