summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-06-07 10:33:43 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-06-07 10:33:43 +0000
commit881b6ebb5807c3cf189d8dcb6c07965d75dd866a (patch)
tree88c7a88fc0729e336d5d449d197532fadc02e7cd
parent692e24b757bf733737e66ab7bb0ed982e3f88397 (diff)
downloaddrakx-881b6ebb5807c3cf189d8dcb6c07965d75dd866a.tar
drakx-881b6ebb5807c3cf189d8dcb6c07965d75dd866a.tar.gz
drakx-881b6ebb5807c3cf189d8dcb6c07965d75dd866a.tar.bz2
drakx-881b6ebb5807c3cf189d8dcb6c07965d75dd866a.tar.xz
drakx-881b6ebb5807c3cf189d8dcb6c07965d75dd866a.zip
check all files are world-readable before uploading
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
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 '' ;\