diff options
Diffstat (limited to 'util/updates/update_1.21.pl')
-rwxr-xr-x | util/updates/update_1.21.pl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/util/updates/update_1.21.pl b/util/updates/update_1.21.pl new file mode 100755 index 00000000..d59d3603 --- /dev/null +++ b/util/updates/update_1.21.pl @@ -0,0 +1,15 @@ +#!/usr/bin/perl + +# create static/sf and static/st with subdirectories +chdir '/www/vndb/static'; + +sub mk { + for (@_) { + mkdir $_ or die "mkdir: $_: $!"; + chmod 0777, $_ or die "chmod: $_: $!"; + } +} + +mk 'sf', 'st'; +mk sprintf('sf/%02d',$_), sprintf('st/%02d',$_) for (0..99); + |