Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
f1c34c38
Commit
f1c34c38
authored
Mar 12, 2008
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix zsh completion installer
Don't use non-standard extensions Run the script in zsh
parent
17bba6bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
extras/analyser/zsh_completion.sh
extras/analyser/zsh_completion.sh
+6
-5
No files found.
extras/analyser/zsh_completion.sh
View file @
f1c34c38
#!/bin/sh
#!/bin/
z
sh
# Helper script to install zsh completion for VLC media player
# © 2008 Rafaël Carré <funman@videolanorg>
...
...
@@ -47,6 +47,8 @@ done
echo
"libvlc found !"
LD_LIBRARY_PATH
=
$BUILDDIR
/src/.libs
if
test
-e
../../extras/contrib/config.mak
-a
!
"
`
grep
HOST ../../extras/contrib/config.mak 2>/dev/null|awk
'{print $3}'
`
"
!=
"
$HOST
"
;
then
echo
"contribs found !"
CPPFLAGS
=
"-I../../extras/contrib/include"
...
...
@@ -58,11 +60,10 @@ fi
ZSH_BUILD
=
"
$CXX
$CPPFLAGS
$CXXFLAGS
-D__LIBVLC__ -DHAVE_CONFIG_H -I
$BUILDDIR
-I
$BUILDDIR
/include -I../../include zsh.cpp
$LIBVLC
-o zsh_gen"
echo
"Building zsh completion generator ...
"
echo
"Building zsh completion generator ... "
echo
$ZSH_BUILD
echo
$ZSH_BUILD
||
exit
1
eval
$ZSH_BUILD
||
exit
1
echo
"Generating zsh completion ..."
if
!
./zsh_gen
--plugin-path
=
$BUILDDIR
>
_vlc 2>/dev/null
;
then
...
...
@@ -83,7 +84,7 @@ echo "zsh completion is `echo \`wc -l _vlc\`` lines long !"
test
-z
"
$NOINSTALL
"
||
exit
0
#Distributors can run NOINSTALL=mg ./zsh_completion.sh
if
!
/usr/bin/which
-s
zsh
;
then
if
!
/usr/bin/which
zsh
>
/dev/null 2>&1
;
then
echo
"ERROR: zsh not found, you'll have to copy the _vlc file manually"
exit
1
fi
...
...
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