Magellan Linux

Contents of /mcore-src/trunk/scripts/compare-mcore-upstream.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1248 - (show annotations) (download) (as text)
Wed Feb 2 20:20:24 2011 UTC (13 years, 3 months ago) by niro
File MIME type: application/x-sh
File size: 858 byte(s)
-initial version
1 #!/bin/bash
2
3 SVNROOT="/home/tjoke/svn"
4 MCORESVN="${SVNROOT}/mcore/smage/trunk"
5 MAGELLANSVN="${SVNROOT}/smage/trunk"
6
7 COLRED="\033[1;6m\033[31m"
8 COLGREEN="\033[1;6m\033[32m"
9 COLYELLOW="\033[1;6m\033[33m"
10 COLDEFAULT="\033[0m"
11
12 compare_upstream()
13 {
14 local smage="$1"
15 local pname
16 local pdir
17
18 pdir=$(dirname ${smage/${MCORESVN}/})
19 pname=$(basename ${smage%-*-*})
20
21 if [ ! -d ${MAGELLANSVN}/${pdir} ]
22 then
23 echo -e "${COLYELLOW}${pname} - pkg does not exist upstream!${COLDEFAULT}"
24 else
25 if [ -f ${MAGELLANSVN}/${smage/${MCORESVN}/} ]
26 then
27 #echo "up2date"
28 echo -e "${COLGREEN}${pname}${COLDEFAULT}"
29 else
30 #echo "updateme!"
31 echo -e "${COLRED}${pname}${COLDEFAULT}"
32 fi
33 fi
34 }
35
36 REPO=core
37 for pdir in ${MCORESVN}/${REPO}/*
38 do
39 #pname=$(basename ${pdir})
40 #echo ${pname}
41 for smage in ${pdir}/*.smage2
42 do
43 compare_upstream ${smage}
44 done
45 done

Properties

Name Value
svn:keywords Id