insilmaril@156: #!/bin/sh -e insilmaril@156: ## 10-debianlike.dpatch by Steffen Joeris insilmaril@156: ## insilmaril@156: ## All lines beginning with `## DP:' are a description of the patch. insilmaril@156: ## DP: Here we make vym debianlike :=) insilmaril@156: insilmaril@156: if [ $# -lt 1 ]; then insilmaril@156: echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" insilmaril@156: exit 1 insilmaril@156: fi insilmaril@156: insilmaril@156: [ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts insilmaril@156: patch_opts="${patch_opts:--f --no-backup-if-mismatch}" insilmaril@156: insilmaril@156: case "$1" in insilmaril@156: -patch) patch $patch_opts -p1 < $0;; insilmaril@156: -unpatch) patch $patch_opts -p1 -R < $0;; insilmaril@156: *) insilmaril@156: echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" insilmaril@156: exit 1;; insilmaril@156: esac insilmaril@156: insilmaril@156: exit 0 insilmaril@156: insilmaril@156: @DPATCH@ insilmaril@156: --- Makefile.org 2005-08-05 17:37:51.546689964 +0200 insilmaril@156: +++ vym-1.7.0/Makefile 2005-08-05 17:34:24.950701764 +0200 insilmaril@156: @@ -172,7 +172,8 @@ insilmaril@156: moc_editxlinkdialog.o insilmaril@156: DIST = vym.pro insilmaril@156: QMAKE_TARGET = vym insilmaril@156: -DESTDIR = insilmaril@156: +DESTDIR = debian/vym insilmaril@156: +INSTALL_ROOT= $(DESTDIR) insilmaril@156: TARGET = vym insilmaril@156: insilmaril@156: first: all insilmaril@156: @@ -822,13 +823,13 @@ insilmaril@156: insilmaril@156: insilmaril@156: install_doc: all insilmaril@156: - @$(CHK_DIR_EXISTS) "$(INSTALL_ROOT)/usr/share/doc/packages/vym/" || $(MKDIR) "$(INSTALL_ROOT)/usr/share/doc/packages/vym/" insilmaril@156: - -$(INSTALL_FILE) "doc/vym.pdf" "$(INSTALL_ROOT)/usr/share/doc/packages/vym/" insilmaril@156: + @$(CHK_DIR_EXISTS) "$(INSTALL_ROOT)/usr/share/doc/vym/" || $(MKDIR) "$(INSTALL_ROOT)/usr/share/doc/vym/" insilmaril@156: + -$(INSTALL_FILE) "doc/vym.pdf" "$(INSTALL_ROOT)/usr/share/doc/vym/" insilmaril@156: insilmaril@156: insilmaril@156: uninstall_doc: insilmaril@156: - -$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/share/doc/packages/vym/vym.pdf" insilmaril@156: - -$(DEL_DIR) "$(INSTALL_ROOT)/usr/share/doc/packages/vym/" insilmaril@156: + -$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/share/doc/vym/vym.pdf" insilmaril@156: + -$(DEL_DIR) "$(INSTALL_ROOT)/usr/share/doc/vym/" insilmaril@156: insilmaril@156: insilmaril@156: install_demo: all