summaryrefslogtreecommitdiffstats
path: root/win/tools/update_kdelibs_pro_files
blob: 15f745cf8d62e82b6636822228b76badce4ec018 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash

# Copies all used .pro (and a few shell) files from kdelibs/win/pro_files/ to kdelibs/
# so they can be used to build kdelibs.
# Note: only newer files are copied over older.
# (c) 2005, Jaroslaw Staniek, js@iidea.pl

.check_kde_env || exit 1

src=win/pro_files
dest=../..

cd "$KDELIBS/$src"

for pro in `find . -name \*.pro -o -name \*.sh` ; do
	dir=`dirname "$pro"`
	if [ ! -d "$KDELIBS/$dir" ] ; then
		echo "no \$KDELIBS/$dir directory: creating it"
		mkdir -p "$KDELIBS/$dir"
	fi

	if [ ! "$pro" -nt "$dest/$pro" ] ; then
		true
#			echo "*SKIPPED* $pro is not newer than destination in $KDELIBS"
	else
		echo "UPDATING \$KDELIBS/$pro"
		cp $pro $dest/$pro
	fi
done