#!/bin/sh
#
# Look at all .deb files in the current directory or subdirectories and make
# apt aware of them. Outputs a sources.list line that you can use.
#
# Usage:
# fakerepo | sudo tee /etc/apt/sources.list.d/fakerepo.list
#
# Geoffrey Thomas <geofft@mit.edu>, July 2011, released to the public domain.
# Edited August 2013 to add [trusted=yes].

dpkg-scanpackages . > Packages
cat << EOF
# Local repository created by fakerepo using dpkg-scanpackages

deb [trusted=yes] file:$PWD ./
EOF