Revision: 7476 http://sourceforge.net/p/ipcop/svn/7476 Author: owes Date: 2014-04-14 11:19:23 +0000 (Mon, 14 Apr 2014) Log Message: ----------- Alternatively compare package versions against DistroWatch. Lists some packages that are not in LFS.
Modified Paths: -------------- ipcop/trunk/make.sh Modified: ipcop/trunk/make.sh =================================================================== --- ipcop/trunk/make.sh 2014-04-14 11:10:30 UTC (rev 7475) +++ ipcop/trunk/make.sh 2014-04-14 11:19:23 UTC (rev 7476) @@ -2454,6 +2454,36 @@ beautify message INFO "Failures are not necessarily bad." ;; +check_distrowatch) + echo -ne "${BOLD}*** Comparing DistroWatch & ${NAME}-${VERSION}" + echo -ne "${SET_REQUIRED_COL} Distrowatch${SET_FOUND_COL} IPCOP" + echo -ne "${SET_RESULT_COL} status${NORMAL}\n" + + wget -q --user-agent=Lynx http://distrowatch.com/packages.php -O - \ + | while IFS= read -r LINE + do + if echo ${LINE} | grep -q "<th><a href=" ; then + PKG_NAME=`echo ${LINE} | sed -e 's#.*">\(.*\)<\/a.*#\1#g'` + if [ x"${PKG_NAME}" == x"httpd" ]; then + PKG_NAME=apache + fi + if [ -f "${BASEDIR}/lfs/${PKG_NAME}" ]; then + IFS= read -r LINE + PKG_DISTRO=`echo ${LINE} | sed -e 's#.*">\(.*\)<\/a.*#\1#g'` + if [ x"${PKG_NAME}" == x"linux" ]; then + PKG_IPCOP=`grep ^PATCHLEVEL ${BASEDIR}/lfs/${PKG_NAME}|awk '{print $3}'` + else + PKG_IPCOP=`grep ^VER ${BASEDIR}/lfs/${PKG_NAME} | awk '{print $3}'` + fi + + check_version "${PKG_NAME}" ${PKG_DISTRO} ${PKG_IPCOP} + fi + unset PKG_NAME PKG_DISTRO PKG_IPCOP + fi + done + + beautify message INFO "Failures are not necessarily bad." + ;; clean) echo -ne "Cleaning ${BOLD}${MACHINE}${NORMAL} buildtree${SET_RESULT_COL}" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech _______________________________________________ Ipcop-svn mailing list Ipcop-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ipcop-svn