[ -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)
+
+(
+ cd $MO_ROOT &&
+ chown -R root.root public templates &&
+ chmod -R go=rX public templates &&
+ tar cavvf /export/public.tar.gz public templates
+)
+
# 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
+bex add -i upload-public -s 'Upload /mo/public' -e "cd $MO_ROOT && rm -rf public templates && tar xavvf /nfs/export/public.tar.gz" contest -g
my ($where,$taskdir,$home)=('/mo/public/templater/','/mo/templates/',$ENV{'HOME'});
my @tasks = map { s#.*/##; $_ } (glob "$taskdir/*");
-my $contestName = "MO-P";
+my $contestName = "CEOI";
sub create_template($$$$) {
my ($path,$task,$name,$ext)=@_;