summaryrefslogtreecommitdiff
path: root/kde-base/add-kde-l10n.sh
blob: 7cbc6e3c2a0151cd8ad0ea3c88991a70355782ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

SOURCE_DIR="kde-l10n-it"
SOURCE_VER="4.3.0"
DEST_VER="4.3.0"

for arg in $@; do

	echo "doing ${arg}"

	mkdir "kde-l10n-${arg}"
	[[ "${?}" != "0" ]] && echo "error at mkdir ${arg}" && exit 1

	source="${SOURCE_DIR}/${SOURCE_DIR}-${SOURCE_VER}.ebuild"
	dest="kde-l10n-${arg}/kde-l10n-${arg}-${DEST_VER}.ebuild"

	echo "copying ${source} to ${dest}"

	cp ${source} ${dest}
	[[ "${?}" != "0" ]] && echo "error at cp ${source} ${dest}" && exit 2
	ebuild ${dest} manifest	

done