3 # getCoreDiff.sh: Script that fetch the current sources of core, core-arm
4 # and core-cross collections, and find differences between them
16 gitrepo_core
="git://crux.nu/ports/core.git"
17 gitrepo_core_arm
="git://crux-arm.nu/crux-arm/ports/core-arm.git"
18 gitrepo_core_cross
="git://crux-arm.nu/crux-arm/ports/core-cross.git"
21 trap "msgError interrupted" SIGINT SIGTERM
23 echo "+ Fetching git sources..."
25 echo "++ $gitrepo_core"
27 git clone
$gitrepo_core && \
29 git branch
2.7 origin
/2.7 && \
32 echo "++ $gitrepo_core_arm"
34 git clone
$gitrepo_core_arm && \
36 git branch
2.7 origin
/2.7 && \
39 echo "++ $gitrepo_core_cross"
41 git clone
$gitrepo_core_cross && \
43 git branch
2.7 origin
/2.7 && \
46 echo "+ Generating data..."
48 cd $TMPDIR/core
&& find -type d
| grep -v '.git' | sed 's|./||' | sed 1d
| sort -u > $TMPDIR/core.lst
50 cd $TMPDIR/core-arm
&& find -type d
| grep -v '.git' | sed 's|./||' | sed 1d
| sort -u > $TMPDIR/core-arm.lst
52 cd $TMPDIR/core-cross
&& find -type d
| grep -v '.git' | sed 's|./||' | sed 1d
| sort -u > $TMPDIR/core-cross.lst
55 echo "++++++++++++++++++++ RESULTS ++++++++++++++++++++"
57 echo "* New ports (core -> core-arm)"
58 comm -13 $TMPDIR/core.lst
$TMPDIR/core-arm.lst
60 echo "* New ports (core -> core-cross)"
61 comm -13 $TMPDIR/core.lst
$TMPDIR/core-cross.lst
63 echo "* Missing ports (core -> core-cross)"
64 comm -23 $TMPDIR/core.lst
$TMPDIR/core-cross.lst
66 echo "* Overlayed ports (core -> core-arm)"
67 comm -12 $TMPDIR/core.lst
$TMPDIR/core-arm.lst