From 881b6ebb5807c3cf189d8dcb6c07965d75dd866a Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 7 Jun 2001 10:33:43 +0000 Subject: check all files are world-readable before uploading --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 21e4ac548..5f86cece6 100644 --- a/Makefile +++ b/Makefile @@ -91,6 +91,9 @@ clean: for i in $(DIRS) rescue; do make -C $$i clean; done find . -name "*~" -o -name ".#*" | xargs rm -f +check: + @badrights=`find $(ROOTDEST)/Mandrake/mdkinst | perl -lne 'print if !((stat)[2] & 4)'`; [ -z "$$badrights" ] || { echo "bad rights for files vvvvvvvvvvvvvvvvvvvvvvvvvv" ; echo "$$badrights" ; echo "bad rights for files ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" ; exit 1; } + upload: $(MAKE) clean @@ -98,6 +101,7 @@ upload: tools/addchangelog.pl tools/cvslog2changelog.pl | tools/mailchangelog.pl & $(MAKE) install + $(MAKE) check function upload() { rsync -qSavz --verbose --exclude '*~' -e ssh --delete $(ROOTDEST)/$$1/$$2 mandrake@kenobi:/c/cooker/$$1; } ;\ upload Mandrake/mdkinst '' ;\ -- cgit v1.2.1