1 |
joko |
1.1 |
#!/usr/bin/perl |
2 |
|
|
|
3 |
|
|
## -------------------------------------------------------------------------------- |
4 |
|
|
## $Id: feed.pl,v 1.3 2003/01/20 16:29:48 joko Exp $ |
5 |
|
|
## -------------------------------------------------------------------------------- |
6 |
|
|
## $Log: feed.pl,v $ |
7 |
|
|
## -------------------------------------------------------------------------------- |
8 |
|
|
|
9 |
|
|
|
10 |
|
|
use strict; |
11 |
|
|
use warnings; |
12 |
|
|
|
13 |
|
|
BEGIN { |
14 |
|
|
use FindBin qw($Bin); |
15 |
|
|
use lib qw( |
16 |
|
|
$Bin/../../libs |
17 |
|
|
); |
18 |
|
|
} |
19 |
|
|
|
20 |
|
|
|
21 |
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - main |
22 |
|
|
|
23 |
|
|
use org::netfrag::shortcuts qw( run_cmd run_cmds ); |
24 |
|
|
use org::netfrag::pkgTools qw( mkSnapshotFilename ); |
25 |
|
|
|
26 |
|
|
|
27 |
|
|
my $arg1 = shift; |
28 |
|
|
die "Please specify item to release on the command-line." if !$arg1; |
29 |
|
|
|
30 |
|
|
my $item = $arg1; |
31 |
|
|
my $snapName = mkSnapshotFilename($item); |
32 |
|
|
run_cmd("mkSnapshot.pl $snapName $item", "Trying to make snapshot from '$item': $snapName"); |
33 |
|
|
run_cmd("upload.pl $snapName", "Trying to upload '$snapName'."); |
34 |
|
|
|
35 |
|
|
1; |
36 |
|
|
__END__ |