mo-backup \
mo-cms-users \
mo-create-contestants mo-create-logins mo-create-public \
- mo-upload-contestants mo-upload-logins mo-help-upload-logins \
+ mo-upload-contestants mo-upload-logins mo-help-upload-logins mo-upload-public \
mo-get-users)
$(o)/mop/admin/md5crypt: $(o)/mop/admin/md5crypt.o $(LIBUCW)
$(o)/mop/admin/mo-create-public: $(s)/mop/admin/mo-create-public.sh
$(o)/mop/admin/mo-upload-contestants: $(s)/mop/admin/mo-upload-contestants.sh
$(o)/mop/admin/mo-upload-logins: $(s)/mop/admin/mo-upload-logins.sh
+$(o)/mop/admin/mo-upload-public: $(s)/mop/admin/mo-upload-public.sh
--- /dev/null
+#!/bin/sh
+# Upload /mo/public
+# Assumes that /nfs/export at workstations points to /export of the caller
+
+[ -f cf/mop ] || { echo "Missing config file, check cwd." ; exit 1 ; }
+set -e
+. cf/mop
+( cd $MO_ROOT && tar cavvf /export/public.tar.gz public)
+# XXX: Beware of quoting!
+bex add -i upload-public -s 'Upload /mo/public' -e "cd $MO_ROOT && rm -rf public && tar xavvf /nfs/export/public.tar.gz" contest -g