File: 01_restore_pristine_code.dpatch

package info (click to toggle)
wmtimer 2.92-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 172 kB
  • ctags: 138
  • sloc: ansic: 1,254; makefile: 71; sh: 27
file content (40 lines) | stat: -rw-r--r-- 989 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
#! /bin/sh /usr/share/dpatch/dpatch-run
## 01_restore_pristine_code.dpatch by Sandro Tosi <matrixhasu@gmail.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: New patch generated from wmtimer 2.92-2 diff.gz

@DPATCH@

--- wmtimer-2.92.orig/wmtimer/Makefile
+++ wmtimer-2.92/wmtimer/Makefile
@@ -10,13 +10,13 @@
 
 all: wmtimer
 .c.o:
-	$(CC) -g -c -O2 -Wall $< -o $*.o $(CFLAGS)
+	$(CC) -g -c $< -o $*.o $(CFLAGS)
 
 wmtimer: $(OBJS)
-	$(CC) -Wall -g -o wmtimer $^ $(LIBDIR) $(LIBS)
+	$(CC) -o wmtimer $^ $(LIBDIR) $(LIBS)
 
 install:
-	cp wmtimer /usr/local/bin/
+	install -o root -g root -D wmtimer $(DESTDIR)/usr/bin/wmtimer
 
 clean:
 	rm -f wmtimer $(OBJS)
--- wmtimer-2.92.orig/wmtimer/wmtimer.c
+++ wmtimer-2.92/wmtimer/wmtimer.c
@@ -113,8 +113,8 @@
   updateMain();
   updateACT(); 
 
-  //  if (hour == 0 && min == 0 && sec == 0) 
-  //    timeSetToZero = 1;
+  if (hour == 0 && min == 0 && sec == 0) 
+    timeSetToZero = 1;
 
   while (1) 
   {