summaryrefslogtreecommitdiff
blob: e05aba2ad5d370f9699510db7158bb98ce93cc71 (plain)
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
diff -u Makefile Makefile
--- Makefile	2006-09-24 02:42:26.000000000 +0100
+++ Makefile	2006-10-22 19:03:08.000000000 +0100
@@ -1,5 +1,8 @@
-CFLAGS=-g -O2 -Wall -DVERSION=0.2
-CC=gcc
+CFLAGS = -g -O2 
+override CFLAGS += -DVERSION=0.2
+CC = gcc
+PREFIX = $(DESTDIR)/usr
+BINDIR = $(PREFIX)/bin
 
 all: speed
 
@@ -7,10 +10,11 @@
 	$(CC) $(CFLAGS) -o speed speed.c
 
 install:
-	install ./speed /usr/local/bin
+	mkdir -p $(BINDIR)
+	install -m 0755 ./speed $(BINDIR)
 
 uninstall:
-	rm -f /usr/local/bin/speed
+	rm -f $(BINDIR)/speed
 
 clean:
 	rm -f speed
diff -u README README
--- README	2006-09-24 02:42:26.000000000 +0100
+++ README	2006-10-22 18:57:17.000000000 +0100
@@ -76,6 +76,6 @@
  `------------------------'
 
  Speed comes with no warranty!
- I'm not responsible if it blows up your hard drive, data loss, kills yoru dog,
- steals your money, cuases global warming, influences elections, or eats your
+ I'm not responsible if it blows up your hard drive, data loss, kills your dog,
+ steals your money, causes global warming, influences elections, or eats your
  homework!

diff -u speed.c speed.c
--- speed.c	2006-09-24 02:45:33.000000000 +0100
+++ speed.c	2006-10-22 18:48:30.000000000 +0100
@@ -92,7 +92,6 @@
     extern int size;
     int progress = FALSE;
     int per = 0;
-    char *pathname;
     char filename[255] = "";
 
     if ((ret = stat(dstf, &st_dst)) == -1) {