Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scp_meta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
702
Provoz
scp_meta
Commits
2003b322
Commit
2003b322
authored
Oct 9, 2023
by
Michal Svamberg
Browse files
Options
Downloads
Patches
Plain Diff
Remove old_perl/ directory
parent
f40d7801
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#5315
passed
Oct 9, 2023
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
old_perl/bin/scp_meta
+0
-76
0 additions, 76 deletions
old_perl/bin/scp_meta
old_perl/lib/MetaScp.pm
+0
-42
0 additions, 42 deletions
old_perl/lib/MetaScp.pm
with
0 additions
and
118 deletions
old_perl/bin/scp_meta
deleted
100755 → 0
+
0
−
76
View file @
f40d7801
#!/usr/bin/perl
use
warnings
;
use
strict
;
use
FindBin
;
use
lib
"
$FindBin
::RealBin/../lib
";
use
File::
Basename
qw(basename)
;
use
Getopt::
Long
();
use
Readonly
;
use
Log::
TraceMessages
qw(t d)
;
use
MetaScp::
Path
;
Readonly
my
$SCP_META_VERSION
=>
qw(0.0.1)
;
Readonly
my
$EXE
=>
basename
(
$
0
);
my
@getoptions
=
qw(
3
4
6
A
B
C
p
q
r
T
v+
c=s
F=s
i=s
J=s
l=s
o=s
P=i
S=s
h|help
meta_debug
meta_print
)
;
my
%opt
;
Getopt::Long::
GetOptions
(
\
%opt
,
@getoptions
)
or
die
"
error parsing options
\n
";
$
Log::TraceMessages::
On
=
1
if
$opt
{
meta_debug
};
# enabling debug if you need
my
$dst
=
pop
or
do
{
print
STDERR
"
ERROR: Missing source or target option
\n
";
show_help
();
};
my
@src
=
@ARGV
or
do
{
print
STDERR
"
ERROR: Missing source or target option
\n
";
show_help
();
};
#t "src=@src\ndst=$dst\nargv=@ARGV" . d(\@src);
sub
show_help
{
print
"
scp_meta v
$SCP_META_VERSION
\n
";
print
<<
"
EOT-EOT-EOT
";
Syntax:
scp_meta
[
-
346
ABCpqrTv
]
[
-
c
cipher
]
[
-
F
ssh_config
]
[
-
i
identity_file
]
[
-
J
destination
]
[
-
l
limit
]
[
-
o
ssh_option
]
[
-
P
port
]
[
-
S
program
]
source
...
target
This
program
accept
all
scp
parameters
(
see
'
man scp
')
and
these
additional
options:
-
h
--
help
print
this
help
--
meta_debug
enable
debug
mode
for
this
program
(
not
for
scp
/
cp
)
--
meta_print
do
not
run
command
,
only
print
it
to
the
STDOUT
EOT
-
EOT
-
EOT
exit
0
;
}
exit
0
This diff is collapsed.
Click to expand it.
old_perl/lib/MetaScp.pm
deleted
100644 → 0
+
0
−
42
View file @
f40d7801
#!/usr/bin/perl
Package
Metascp
;
Package
MetaScp::
Path
;
sub
new
{
my
$self
=
bless
{},
shift
;
$self
->
{
path_user
}
=
shift
;
$self
->
{
user
}
=
"";
$self
->
{
server
}
=
"";
$self
->
{
port
}
=
"";
$self
->
{
path
}
=
$self
->
_expand_path
();
return
$self
;
}
sub
_decouple_path
{
$self
->
{
path_user
}
=~
//
;
}
sub
_expand_path
{
# je tedy relativni => pridat pracovni adresar
my
$new_path
=
$self
->
_normalize_path
(
$self
->
{
path_user
});
return
1
;
}
sub
_normalize_path
{
# kontrola, zda cesta neni relativni, jinak pridat pracovni adresar
my
$path
=
shift
;
# cesta muze byt zadana ve formatu [user@]server:<cesta>
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment