debian/patches/10-debianlike.dpatch
author insilmaril
Tue, 03 Jan 2006 09:44:41 +0000
changeset 173 309609406650
parent 156 32dec8762b2d
permissions -rw-r--r--
1.7.6 New features for floatimages and fixes
insilmaril@156
     1
#!/bin/sh -e
insilmaril@156
     2
## 10-debianlike.dpatch by Steffen Joeris <steffen.joeris@skolelinux.de>
insilmaril@156
     3
##
insilmaril@156
     4
## All lines beginning with `## DP:' are a description of the patch.
insilmaril@156
     5
## DP: Here we make vym debianlike :=)
insilmaril@156
     6
insilmaril@156
     7
if [ $# -lt 1 ]; then
insilmaril@156
     8
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
insilmaril@156
     9
exit 1
insilmaril@156
    10
fi
insilmaril@156
    11
insilmaril@156
    12
[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
insilmaril@156
    13
patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
insilmaril@156
    14
insilmaril@156
    15
case "$1" in
insilmaril@156
    16
      -patch) patch $patch_opts -p1 < $0;;
insilmaril@156
    17
      -unpatch) patch $patch_opts -p1 -R < $0;;
insilmaril@156
    18
      *)
insilmaril@156
    19
      echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
insilmaril@156
    20
      exit 1;;
insilmaril@156
    21
esac
insilmaril@156
    22
insilmaril@156
    23
exit 0
insilmaril@156
    24
insilmaril@156
    25
@DPATCH@
insilmaril@156
    26
--- Makefile.org	2005-08-05 17:37:51.546689964 +0200
insilmaril@156
    27
+++ vym-1.7.0/Makefile	2005-08-05 17:34:24.950701764 +0200
insilmaril@156
    28
@@ -172,7 +172,8 @@
insilmaril@156
    29
 		moc_editxlinkdialog.o
insilmaril@156
    30
 DIST	   = vym.pro
insilmaril@156
    31
 QMAKE_TARGET = vym
insilmaril@156
    32
-DESTDIR  = 
insilmaril@156
    33
+DESTDIR  = debian/vym
insilmaril@156
    34
+INSTALL_ROOT= $(DESTDIR)
insilmaril@156
    35
 TARGET   = vym
insilmaril@156
    36
 
insilmaril@156
    37
 first: all
insilmaril@156
    38
@@ -822,13 +823,13 @@
insilmaril@156
    39
 
insilmaril@156
    40
 
insilmaril@156
    41
 install_doc: all 
insilmaril@156
    42
-	@$(CHK_DIR_EXISTS) "$(INSTALL_ROOT)/usr/share/doc/packages/vym/" || $(MKDIR) "$(INSTALL_ROOT)/usr/share/doc/packages/vym/"
insilmaril@156
    43
-	-$(INSTALL_FILE) "doc/vym.pdf" "$(INSTALL_ROOT)/usr/share/doc/packages/vym/"
insilmaril@156
    44
+	@$(CHK_DIR_EXISTS) "$(INSTALL_ROOT)/usr/share/doc/vym/" || $(MKDIR) "$(INSTALL_ROOT)/usr/share/doc/vym/"
insilmaril@156
    45
+	-$(INSTALL_FILE) "doc/vym.pdf" "$(INSTALL_ROOT)/usr/share/doc/vym/"
insilmaril@156
    46
 
insilmaril@156
    47
 
insilmaril@156
    48
 uninstall_doc: 
insilmaril@156
    49
-	-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/share/doc/packages/vym/vym.pdf"
insilmaril@156
    50
-	-$(DEL_DIR) "$(INSTALL_ROOT)/usr/share/doc/packages/vym/"
insilmaril@156
    51
+	-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/share/doc/vym/vym.pdf"
insilmaril@156
    52
+	-$(DEL_DIR) "$(INSTALL_ROOT)/usr/share/doc/vym/"
insilmaril@156
    53
 
insilmaril@156
    54
 
insilmaril@156
    55
 install_demo: all