Uuuuh stuff for merge

This commit is contained in:
Geoffrey Frogeye 2018-01-30 19:07:55 +01:00
parent 90b8d7b245
commit f63511602a
2 changed files with 47 additions and 2 deletions

6
bashrc
View file

@ -12,8 +12,10 @@ export BROWSER=qutebrowser
# Some programs need those changes
export PATH="/usr/lib/ccache/bin/:$PATH"
if [ -d $HOME/.gem/ruby/2.4.0/bin ]; then
export PATH="$HOME/.gem/ruby/2.4.0/bin/:$PATH"
GEM_HOME=$(ruby -e 'puts Gem.user_dir' 2> /dev/null)
if [ $? -eq 0 ]; then
GEM_PATH=$GEM_HOME
export PATH="$PATH:$GEM_HOME/bin"
fi
if [ -d /data/data/com.termux/ ]; then
export PATH="$HOME/.termux/scripts:$HOME/.termux/bin:$PATH"

43
scripts/ycmd-install Executable file
View file

@ -0,0 +1,43 @@
#!/usr/bin/env bash
#
# Compiles and install the YouCompleteMe server component
#
# TODO NOT FINISHED NOR TESTED
msg2() {
echo "$@"
}
# TODO cd quelque part
dir="$(pwd)"
archive=$(mktemp)
wget "https://aur.archlinux.org/cgit/aur.git/snapshot/vim-youcompleteme-git.tar.gz" -O "$archive"
snapshot=$(mktemp -d)
tar xzf "$archive" -C "$snapshot"
rm "$archive"
srcdir="$dir/src"
pkgdir="$dir/pkg"
mkdir -p "$srcdir"
mkdir -p "$pkgdir"
source "$snapshot/vim-youcompleteme-git/PKGBUILD"
rm -rf "$snapshot"
sudo pacman -S ${depends[@]} --asdeps
sudo pacman -S ${makedepends[@]} --asdeps
cd "$srcdir"
for s in ${source[@]}
do
git clone "$(echo "$s" | sed 's/^git+//')"
done
prepare
build
package