Added a routine, now commented out, to remove all duplicates (not only
[selector.git] / mkdeb.sh
index b0ec56b..fa3a029 100755 (executable)
--- a/mkdeb.sh
+++ b/mkdeb.sh
 # This script creates the Debian package. The way it does it is
 # probably not very conventional. I am open to suggestions.
 
+# Depends: ${shlibs:Depends}
+
 VERSION=1.0
+PACKAGE=/tmp/selector_${VERSION}_i386.deb
 
 make -k
 
@@ -58,6 +61,8 @@ cp ./selector ${TMP}/usr/bin
 cp ./selector.1 ${TMP}/usr/share/man/man1
 gzip ${TMP}/usr/share/man/man1/selector.1
 
-dpkg-deb --build ${TMP} /tmp/selector_${VERSION}_i386.deb
+dpkg-deb --build ${TMP} ${PACKAGE}
+
+dpkg --contents ${PACKAGE}
 
 rm -rf ${TMP}