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.
 
 
 
 
 

22 lines
618 B

vcs_git() {
if [ ! -d "$dir_source/$name/vcs" ]; then
rm -rf "$dir_source/$name/vcs"
git clone --recursive --depth=1 "$1" "$dir_source/$name/vcs"
vcs_compile=true
fi
}
_hook_git() {
cd "$dir_source/$name/vcs"
git pull > /dev/null
_func_rev="$(git rev-parse @)"
if [ "$_func_rev" != "$(cat "$dir_source/$name/vcs_rev_$_satname" 2> /dev/null || true)" ]; then
echo "$_func_rev" > "$dir_source/$name/vcs_rev_$_satname"
vcs_compile=true
fi
version="$(git rev-list HEAD --count)_$(git rev-parse --short HEAD)"
cd "$OLDPWD"
}
_hooks="_hook_git"