chiark / gitweb /
debian: install completions into bash_completion.d as a conffile
authorRichard Kettlewell <rjk@greenend.org.uk>
Thu, 6 Dec 2007 19:05:13 +0000 (19:05 +0000)
committerRichard Kettlewell <rjk@greenend.org.uk>
Thu, 6 Dec 2007 19:05:13 +0000 (19:05 +0000)
debian/conffiles.disorder [new file with mode: 0644]
debian/rules

diff --git a/debian/conffiles.disorder b/debian/conffiles.disorder
new file mode 100644 (file)
index 0000000..a9d34ea
--- /dev/null
@@ -0,0 +1 @@
+/etc/bash_completion.d/disorder
index a7e2c58..9eb4d19 100755 (executable)
@@ -74,6 +74,7 @@ pkg-disorder: build
        $(MKDIR) debian/disorder
        $(MKDIR) debian/disorder/DEBIAN
        $(MKDIR) debian/disorder/usr/share/doc/disorder
+       $(MKDIR) debian/disorder/etc/bash_completion.d
        $(INSTALL_DATA) debian/copyright \
                debian/disorder/usr/share/doc/disorder/copyright
        $(INSTALL_DATA) debian/changelog \
@@ -88,9 +89,11 @@ pkg-disorder: build
        $(MAKE) DESTDIR=`pwd`/debian/disorder installdirs install -C doc
        $(MAKE) DESTDIR=`pwd`/debian/disorder installdirs install -C clients
        $(MAKE) DESTDIR=`pwd`/debian/disorder installdirs install -C lib
-       $(MAKE) DESTDIR=`pwd`/debian/disorder installdirs install -C scripts
+       $(INSTALL_DATA) scripts/completion.bash \
+               debian/disorder/etc/bash_completion.d/disorder
        rm -rf debian/disorder/usr/share/man/man8
        rm -rf debian/disorder/usr/share/disorder/*.html
+       rmdir debian/disorder/usr/share/disorder
        rm -f debian/disorder/usr/bin/disorder-playrtp
        rm -f debian/disorder/usr/bin/disobedience
        rm -f debian/disorder/usr/share/man/man1/disorder-playrtp.1