blob: aeb62c6bf156835b9f5ee166a7b875cfc72f94f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#!/usr/bin/perl
use strict;
use warnings;
use File::Path qw(make_path);
my $cmd = $ARGV[0] // '';
if ($cmd eq 'init') {
init_repo();
} else {
print "Usage: $0 [command]\n";
exit 1;
}
sub init_repo {
my @dirs = (
'.vcx/obj',
'.vcx/bse',
'.vcx/tmp'
);
foreach my $dir (@dirs) {
if (!-d $dir) {
make_path($dir);
print "Created: $dir\n";
}
}
print "Repository ready\n";
}
|