#!/usr/bin/env bash r= b= g="$(git rev-parse --git-dir 2>/dev/null)" if [ -n "$g" ]; then if [ -d "$g/../.dotest" ] then if test -f "$g/../.dotest/rebasing" then r="|REBASE" elif test -f "$g/../.dotest/applying" then r="|AM" else r="|AM/REBASE" fi b="$(git symbolic-ref HEAD 2>/dev/null)" elif [ -f "$g/.dotest-merge/interactive" ] then r="|REBASE-i" b="$(cat "$g/.dotest-merge/head-name")" elif [ -d "$g/.dotest-merge" ] then r="|REBASE-m" b="$(cat "$g/.dotest-merge/head-name")" elif [ -f "$g/MERGE_HEAD" ] then r="|MERGING" b="$(git symbolic-ref HEAD 2>/dev/null)" else if [ -f "$g/BISECT_LOG" ] then r="|BISECTING" fi if ! b="$(git symbolic-ref HEAD 2>/dev/null)" then if ! b="$(git describe --exact-match HEAD 2>/dev/null)" then b="$(cut -c1-7 "$g/HEAD")..." fi fi fi if [ -n "$1" ]; then printf "$1" "${b##refs/heads/}$r" else printf "%s" "${b##refs/heads/}$r" fi else printf "not-in-git" fi -5-0 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/autogen.sh
AgeCommit message (Expand)Author
2017-08-17Fix typosAndrea Gelmini
2017-05-17Revert "Don't worry if there is no distro-configs/Foo.conf"Stephan Bergmann
2017-05-17Show all available distro configsStephan Bergmann
2016-12-14autogen.sh: Use STDOUT for --help output (as configure does)Mike Kaganski
2015-12-31lode: make sure LODE_HOME/opt/bin is in the PATH for aclocalNorbert Thiebaud
2015-09-22autogen.sh: Display arguments for configure without apostrophesSamuel Mehrbrodt
2015-03-08autogen.sh: better error message when src_path contains spacesMiklos Vajna