Was supposed to be a linux distribution, now just a collection of build scripts for packages on top of (ideally) any distribution.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
763 B

vcs_git() {
_func_reponame="$(basename "$1")"
_func_dir="$dir_source/$name/$_func_reponame"
if [ ! -d "$_func_dir" ]; then
# Clone new repo
git clone --recursive --depth=1 "$1" "$_func_dir"
cd "$_func_dir"
echo "$(git rev-parse @)" > "${_func_dir}_rev_$_satname"
vcs_compile=true
else
cd "$_func_dir"
git pull > /dev/null
_func_rev="$(git rev-parse @)"
if [ "$_func_rev" != "$(cat "${_func_dir}_rev_$_satname" 2> /dev/null || true)" ]; then
echo "$_func_rev" > "${_func_dir}_rev_$_satname"
vcs_compile=true
fi
fi
version="$(git rev-list HEAD --count)_$(git rev-parse --short HEAD)"
cd "$OLDPWD"
9 years ago
getfile "$_func_reponame"
}