From c29cbd4513f5674fe41a17a24ef4fa07fc2fff88 Mon Sep 17 00:00:00 2001 From: Jose V Beneyto Date: Fri, 19 Oct 2012 01:50:08 +0000 Subject: [PATCH] Updated getCoreDiff script for next 2.8 release and improved a bit --- getCoreDiff.sh | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) mode change 100644 => 100755 getCoreDiff.sh diff --git a/getCoreDiff.sh b/getCoreDiff.sh old mode 100644 new mode 100755 index 7a2c444..5fbbf49 --- a/getCoreDiff.sh +++ b/getCoreDiff.sh @@ -11,7 +11,7 @@ msgError() { TMPDIR=$(mktemp -d) -version="2.7" +version="2.8" gitrepo_core="git://crux.nu/ports/core.git" gitrepo_core_arm="git://crux-arm.nu/crux-arm/ports/core-arm.git" @@ -22,26 +22,26 @@ trap "msgError interrupted" SIGINT SIGTERM echo "+ Fetching git sources..." -echo "++ $gitrepo_core" +echo "++ ${gitrepo_core}..." cd $TMPDIR && \ git clone $gitrepo_core && \ cd core && \ - git branch 2.7 origin/2.7 && \ - git checkout 2.7 + git branch $version origin/$version && \ + git checkout $version -echo "++ $gitrepo_core_arm" +echo "++ ${gitrepo_core_arm}..." cd $TMPDIR && \ git clone $gitrepo_core_arm && \ cd core-arm && \ - git branch 2.7 origin/2.7 && \ - git checkout 2.7 + git branch $version origin/$version && \ + git checkout $version -echo "++ $gitrepo_core_cross" +echo "++ ${gitrepo_core_cross}..." cd $TMPDIR && \ git clone $gitrepo_core_cross && \ cd core-cross && \ - git branch 2.7 origin/2.7 && \ - git checkout 2.7 + git branch $version origin/$version && \ + git checkout $version echo "+ Generating data..." # core list @@ -52,18 +52,20 @@ cd $TMPDIR/core-arm && find -type d | grep -v '.git' | sed 's|./||' | sed 1d | s cd $TMPDIR/core-cross && find -type d | grep -v '.git' | sed 's|./||' | sed 1d | sort -u > $TMPDIR/core-cross.lst echo -echo "++++++++++++++++++++ RESULTS ++++++++++++++++++++" -echo -echo "* New ports (core -> core-arm)" +echo "+ core => core-arm: extra ports in core-arm" +echo "-------------------------------------------------" comm -13 $TMPDIR/core.lst $TMPDIR/core-arm.lst echo -echo "* New ports (core -> core-cross)" +echo "+ core => core-cross: extra ports in core-cross" +echo "-------------------------------------------------" comm -13 $TMPDIR/core.lst $TMPDIR/core-cross.lst echo -echo "* Missing ports (core -> core-cross)" +echo "+ core => core-cross: missing ports in core-cross" +echo "-------------------------------------------------" comm -23 $TMPDIR/core.lst $TMPDIR/core-cross.lst echo -echo "* Overlayed ports (core -> core-arm)" +echo "+ core => core-arm: overlayed ports in core-arm" +echo "-------------------------------------------------" comm -12 $TMPDIR/core.lst $TMPDIR/core-arm.lst rm -fr $TMPDIR -- 2.45.2