katana/fetch.sh

18 lines
392 B
Bash
Raw Normal View History

2014-12-04 17:40:17 +00:00
#!/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" ];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