[oe-commits] Martin Jansa : Use relative paths in xorg bumping script
git version control
git at git.openembedded.org
Thu Sep 17 21:29:22 UTC 2009
Module: openembedded.git
Branch: shr/import
Commit: 700cdd73cd349aae54ed088b138624fbaca3d5d5
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=700cdd73cd349aae54ed088b138624fbaca3d5d5
Author: Martin Jansa <martin.jansa at gmail.com>
Date: Thu Sep 17 20:18:25 2009 +0000
Use relative paths in xorg bumping script
Signed-off-by: Klaus Kurzmann <mok at fluxnetz.de>
---
.../bump.preferred-xorg-versions-live.sh | 22 +++++++++++--------
1 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/contrib/source-checker/bump.preferred-xorg-versions-live.sh b/contrib/source-checker/bump.preferred-xorg-versions-live.sh
old mode 100644
new mode 100755
index 75fba58..ab1ef53
--- a/contrib/source-checker/bump.preferred-xorg-versions-live.sh
+++ b/contrib/source-checker/bump.preferred-xorg-versions-live.sh
@@ -1,8 +1,10 @@
+#!/bin/bash
DATE=`date +%Y%m%d`
-DIR=/tmp/xorg-releases/${DATE}
+SCRDIR=`dirname $0`
+DIR=${SCRDIR}/${DATE}
PREFIX=http://xorg.freedesktop.org/releases/individual/
GRPS="app data doc driver font lib proto util xserver"
-OETREE=/home/projects/OE/org.openembedded.dev
+OETREE=${SCRDIR}/../..
PREFS=${OETREE}/conf/distro/include/preferred-shr-versions.inc
PREFS_LIVE=${OETREE}/conf/distro/include/preferred-xorg-versions-live.inc
BBS=${OETREE}/recipes/xorg-
@@ -10,7 +12,6 @@ OUT_LOG=${DIR}.log
OUT_CMD=${DIR}.cmd
mkdir -p ${DIR}
-cd ${DIR}
function latest {
IN=$1
@@ -48,14 +49,14 @@ function updateVersions {
}
for GRP in ${GRPS}; do
- if [[ ! -e ${GRP}.html ]] ; then
- wget http://xorg.freedesktop.org/releases/individual/${GRP} -O ${GRP}.html
+ if [[ ! -e ${DIR}/${GRP}.html ]] ; then
+ wget http://xorg.freedesktop.org/releases/individual/${GRP} -O ${DIR}/${GRP}.html
fi
- latest ${GRP}.html ${GRP}.txt
- sed "s/PKG=/${GRP}\//g; s/-\([^-]*\).tar.bz2$/\/\1/g;" ${GRP}.txt | gawk '{ print tolower($0) }' >> latest.txt
+ latest ${DIR}/${GRP}.html ${DIR}/${GRP}.txt
+ sed "s/PKG=/${GRP}\//g; s/-\([^-]*\).tar.bz2$/\/\1/g;" ${DIR}/${GRP}.txt | gawk '{ print tolower($0) }' >> ${DIR}/latest.txt
done
-sort -u latest.txt > latest.sort.txt
+sort -u ${DIR}/latest.txt > ${DIR}/latest.sort.txt
echo "#`date`" > ${PREFS_LIVE}
#cat << EOF > ${PREFS_LIVE}
@@ -70,7 +71,7 @@ echo "#`date`" > ${PREFS_LIVE}
echo "#`date`" > ${OUT_LOG}
echo "#`date`" > ${OUT_CMD}
-cat latest.sort.txt | while read LINE; do
+cat ${DIR}/latest.sort.txt | while read LINE; do
#echo ${LINE};
PKG=`echo ${LINE} | sed "s%^\(.*\)\/\(.*\)\/\(.*\)$%\2%g;"`
GRP=`echo ${LINE} | sed "s%^\(.*\)\/\(.*\)\/\(.*\)$%\1%g;"`
@@ -78,3 +79,6 @@ cat latest.sort.txt | while read LINE; do
updateVersions ${PKG} ${GRP} ${VER}
updateVersions ${PKG}-native ${GRP} ${VER}
done
+
+echo "Check ${OUT_LOG} if there is something new and interesting"
+echo "You can update prefs or copy bbfiles with commands from ${OUT_CMD}"
More information about the Openembedded-commits
mailing list