Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
5c922347
Commit
5c922347
authored
Sep 02, 2015
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vzdump: add bash completion support
parent
aede93f9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
2 deletions
+13
-2
Makefile
bin/Makefile
+3
-1
vzdump
bin/vzdump
+1
-1
vzdump.bash-completion
bin/vzdump.bash-completion
+8
-0
defines.mk
defines.mk
+1
-0
No files found.
bin/Makefile
View file @
5c922347
...
@@ -70,7 +70,8 @@ pvemailforward: pvemailforward.c
...
@@ -70,7 +70,8 @@ pvemailforward: pvemailforward.c
gcc
$<
-o
$@
-g
-O2
-Wall
-ldl
-lc
gcc
$<
-o
$@
-g
-O2
-Wall
-ldl
-lc
.PHONY
:
install
.PHONY
:
install
install
:
${SCRIPTS} ${MANS} pvemailforward
install
:
${SCRIPTS} ${MANS} pvemailforward vzdump.bash-completion
perl
-I..
./pvesh
verifyapi
perl
-I..
./pvesh
verifyapi
install
-d
${BINDIR}
install
-d
${BINDIR}
install
-m
0755
${SCRIPTS}
${BINDIR}
install
-m
0755
${SCRIPTS}
${BINDIR}
...
@@ -80,6 +81,7 @@ install: ${SCRIPTS} ${MANS} pvemailforward
...
@@ -80,6 +81,7 @@ install: ${SCRIPTS} ${MANS} pvemailforward
install
-d
${PODDIR}
install
-d
${PODDIR}
install
-m
0644
vzdump.1.pod
${PODDIR}
install
-m
0644
vzdump.1.pod
${PODDIR}
install
-m
0644
pvesubscription.1.pod
${PODDIR}
install
-m
0644
pvesubscription.1.pod
${PODDIR}
install
-m
0644
-D
vzdump.bash-completion
${BASHCOMPLDIR}/vzdump
set
-e
&&
for
i
in
${SUBDIRS};
do
${MAKE}
-C
$$i
$@;
done
set
-e
&&
for
i
in
${SUBDIRS};
do
${MAKE}
-C
$$i
$@;
done
.PHONY
:
distclean
.PHONY
:
distclean
...
...
bin/vzdump
View file @
5c922347
...
@@ -26,7 +26,7 @@ $rpcenv->set_language($ENV{LANG});
...
@@ -26,7 +26,7 @@ $rpcenv->set_language($ENV{LANG});
$rpcenv
->
set_user
('
root@pam
');
$rpcenv
->
set_user
('
root@pam
');
my
$cmddef
=
[
'
PVE::API2::VZDump
',
'
vzdump
',
'
vmid
',
undef
,
my
$cmddef
=
[
'
PVE::API2::VZDump
',
'
vzdump
',
['
vmid
'],
undef
,
sub
{
sub
{
my
$upid
=
shift
;
my
$upid
=
shift
;
exit
(
0
)
if
$upid
eq
'
OK
';
exit
(
0
)
if
$upid
eq
'
OK
';
...
...
bin/vzdump.bash-completion
0 → 100644
View file @
5c922347
# vzdump bash completion
# see http://tiswww.case.edu/php/chet/bash/FAQ
# and __ltrim_colon_completions() in /usr/share/bash-completion/bash_completion
# this modifies global var, but I found no better way
COMP_WORDBREAKS=${COMP_WORDBREAKS//:}
complete -C 'vzdump bashcomplete' vzdump
defines.mk
View file @
5c922347
...
@@ -10,6 +10,7 @@ MAN1DIR=${DESTDIR}/usr/share/man/man1
...
@@ -10,6 +10,7 @@ MAN1DIR=${DESTDIR}/usr/share/man/man1
CRONDAILYDIR=${DESTDIR}/etc/cron.daily
CRONDAILYDIR=${DESTDIR}/etc/cron.daily
INITDBINDIR=${DESTDIR}/etc/init.d
INITDBINDIR=${DESTDIR}/etc/init.d
SERVICEDIR=${DESTDIR}/lib/systemd/system
SERVICEDIR=${DESTDIR}/lib/systemd/system
BASHCOMPLDIR=${DESTDIR}/usr/share/bash-completion/completions/
HARADIR=${DESTDIR}/usr/share/cluster
HARADIR=${DESTDIR}/usr/share/cluster
DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
PODDIR=${DESTDIR}/usr/share/doc/${PACKAGE}/pod
PODDIR=${DESTDIR}/usr/share/doc/${PACKAGE}/pod
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment