katana/fetch.sh
2014-12-04 19:55:35 +00:00

17 lines
397 B
Bash
Executable file

#!/bin/bash
set -e
packs=("ariya-icons" "kdelibs" "kde-baseapps" "kde-workspace" "kde-extraapps" "kde-l10n")
cwd="$(pwd)"
for p in "${packs[@]}";do
if [ -d "$p/.git" ];then
echo "Updating sources of $p..."
cd "$cwd/$p"
git pull
cd "$cwd"
else
echo "Fetching sources of $p..."
git clone --depth=1 "https://github.com/fluxer/$p"
fi
done