File: install.sh

package info (click to toggle)
git-extras 4.2.0-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,632 kB
  • ctags: 191
  • sloc: sh: 2,388; makefile: 87
file content (21 lines) | stat: -rwxr-xr-x 457 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

make_install() {
    if [ -n "$PREFIX" ]
    then
        PREFIX="$PREFIX" make install
    else
        sudo make install
    fi
}

cd /tmp \
    && rm -rf ./git-extras \
    && echo "Setting up 'git-extras'...." \
    && git clone https://github.com/tj/git-extras.git &> /dev/null \
    && cd git-extras \
    && git checkout \
        $(git describe --tags $(git rev-list --tags --max-count=1)) \
        &> /dev/null \
    && make_install