801f438f208985c16a3bf382b6c7616efd1a24db
[openwrt/svn-archive/archive.git] / utils / dosfstools / patches / 001-symbolic_links.patch
1 diff -urN dosfstools-2.11.orig/dosfsck/Makefile dosfstools-2.11/dosfsck/Makefile
2 --- dosfstools-2.11.orig/dosfsck/Makefile 1999-07-06 10:23:11.000000000 -0400
3 +++ dosfstools-2.11/dosfsck/Makefile 2006-11-07 07:20:54.000000000 -0500
4 @@ -15,11 +15,11 @@
5 install -m 644 dosfsck.8 $(MANDIR)
6 rm -f $(SBINDIR)/fsck.msdos
7 rm -f $(SBINDIR)/fsck.vfat
8 - ln -s dosfsck $(SBINDIR)/fsck.msdos
9 - ln -s dosfsck $(SBINDIR)/fsck.vfat
10 + ln -sf dosfsck $(SBINDIR)/fsck.msdos
11 + ln -sf dosfsck $(SBINDIR)/fsck.vfat
12 rm -f $(MANDIR)/fsck.msdos.8
13 - ln -s dosfsck.8 $(MANDIR)/fsck.msdos.8
14 - ln -s dosfsck.8 $(MANDIR)/fsck.vfat.8
15 + ln -sf dosfsck.8 $(MANDIR)/fsck.msdos.8
16 + ln -sf dosfsck.8 $(MANDIR)/fsck.vfat.8
17
18 clean:
19 rm -f *.o *.s *.i *~ \#*# tmp_make .#* .new*
20 diff -urN dosfstools-2.11.orig/mkdosfs/Makefile dosfstools-2.11/mkdosfs/Makefile
21 --- dosfstools-2.11.orig/mkdosfs/Makefile 1999-07-06 10:23:32.000000000 -0400
22 +++ dosfstools-2.11/mkdosfs/Makefile 2006-11-07 07:20:38.000000000 -0500
23 @@ -15,11 +15,11 @@
24 install -m 644 mkdosfs.8 $(MANDIR)
25 rm -f $(SBINDIR)/mkfs.msdos
26 rm -f $(SBINDIR)/mkfs.vfat
27 - ln -s mkdosfs $(SBINDIR)/mkfs.msdos
28 - ln -s mkdosfs $(SBINDIR)/mkfs.vfat
29 + ln -sf mkdosfs $(SBINDIR)/mkfs.msdos
30 + ln -sf mkdosfs $(SBINDIR)/mkfs.vfat
31 rm -f $(MANDIR)/mkfs.msdos.8
32 - ln -s mkdosfs.8 $(MANDIR)/mkfs.msdos.8
33 - ln -s mkdosfs.8 $(MANDIR)/mkfs.vfat.8
34 + ln -sf mkdosfs.8 $(MANDIR)/mkfs.msdos.8
35 + ln -sf mkdosfs.8 $(MANDIR)/mkfs.vfat.8
36
37 clean :
38 echo *.o *.i *.s *~ \#*# core .#* .new*