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
$version origin
/$version && \
32 echo "++ ${gitrepo_core_arm}..."
34 git clone
$gitrepo_core_arm && \
36 git branch
$version origin
/$version && \
39 echo "++ ${gitrepo_core_cross}..."
41 git clone
$gitrepo_core_cross && \
43 git branch
$version origin
/$version && \
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 "+ core => core-arm: extra ports in core-arm"
56 echo "-------------------------------------------------"
57 comm -13 $TMPDIR/core.lst
$TMPDIR/core-arm.lst
59 echo "+ core => core-cross: extra ports in core-cross"
60 echo "-------------------------------------------------"
61 comm -13 $TMPDIR/core.lst
$TMPDIR/core-cross.lst
63 echo "+ core => core-cross: missing ports in core-cross"
64 echo "-------------------------------------------------"
65 comm -23 $TMPDIR/core.lst
$TMPDIR/core-cross.lst
67 echo "+ core => core-arm: overlayed ports in core-arm"
68 echo "-------------------------------------------------"
69 comm -12 $TMPDIR/core.lst
$TMPDIR/core-arm.lst