#
# This file is part of SnarfNews
# Copyright (C) 1991,1992,1993,1994,1995,1996 Alec Muffett
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of version 2 of the GNU General Public License as
# published by the Free Software Foundation
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#

clean:
	-rm -f *~ */*~ */*/*~
	-chmod 700 secret
	-chmod 400 secret/*
	-chmod 755 `find . -type d -print | grep -v secret`
	-chmod 644 `find . -type f -print | grep -v secret`
	-chmod 755 Configure snarf `find bin extras lib -type f -print` 
	-chmod 01777 run conf/sites

spotless: clean
	-rm run/* conf/sites/*.OLD

asecret:
	@dd if=/dev/random bs=1 count=54 | lib/b64encode
