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.
31 lines
686 B
31 lines
686 B
15 years ago
|
#!/bin/bash
|
||
|
|
||
13 years ago
|
# Copies all used .pro (and a few shell) files from tdelibs/win/pro_files/ to tdelibs/
|
||
|
# so they can be used to build tdelibs.
|
||
15 years ago
|
# 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"
|
||
|
|
||
14 years ago
|
for pro in `find . -name \*.pro -o -name \*.sh` ; do
|
||
15 years ago
|
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
|
||
|
|