[rkward-cvs] SF.net SVN: rkward-code:[4835] trunk/rkward/scripts/fetch_kde_sources.sh

tfry at users.sf.net tfry at users.sf.net
Thu Sep 18 16:06:28 UTC 2014


Revision: 4835
          http://sourceforge.net/p/rkward/code/4835
Author:   tfry
Date:     2014-09-18 16:06:26 +0000 (Thu, 18 Sep 2014)
Log Message:
-----------
Add script for fetching Windows KDE sources.

Added Paths:
-----------
    trunk/rkward/scripts/fetch_kde_sources.sh

Added: trunk/rkward/scripts/fetch_kde_sources.sh
===================================================================
--- trunk/rkward/scripts/fetch_kde_sources.sh	                        (rev 0)
+++ trunk/rkward/scripts/fetch_kde_sources.sh	2014-09-18 16:06:26 UTC (rev 4835)
@@ -0,0 +1,47 @@
+#!/bin/bash
+# Script to fetch the source packages belonging to a KDE on Windows installation.
+# For creating the source bundle accompanying a Windows binary bundle.
+cd $0
+BASEDIR=`pwd`
+
+MANIFESTDIR=${BASEDIR}/../RKWard/KDE/manifest/
+REPOSITORY="http://winkde.org/pub/kde/ports/win32/repository-4.10/"
+SUBDIRS="win32libs kde kdesupport aspell"
+SUFFIXES=".tar.bz2 .zip"
+
+FILES=`find ${MANIFESTDIR} -name '*bin.ver' -printf '%f\n' | sed -e "s/bin\.ver/src/"`
+FILES="${FILES} `find ${MANIFESTDIR} -name '*bin.ver' -printf '%f\n' | sed -e "s/bin\.ver/lib/"`"
+
+cd ${BASEDIR}/KDE
+
+for FILE in ${FILES}
+do
+    FOUND="0"
+
+    for DIR in ${SUBDIRS}
+    do
+	for SUFFIX in ${SUFFIXES}
+	do
+	    wget -r ${REPOSITORY}/${DIR}/${FILE}${SUFFIX}
+	    if [ $? -eq 0 ]; then
+		FOUND="1"
+		break;
+	    fi
+	done
+	if [ ${FOUND} -eq "1" ]; then
+	    break
+	fi
+    done
+
+    if [ ${FOUND} -eq "0" ]; then
+	NOTFOUND="${FILE} ${NOTFOUND}"
+    fi
+done
+
+if [ "${NOTFOUND}" != "" ]; then
+    echo "Did not find these files:"
+    for FILE in ${NOTFOUND}
+    do
+	echo ${FILE}
+    done
+fi


Property changes on: trunk/rkward/scripts/fetch_kde_sources.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property




More information about the rkward-tracker mailing list