Make check_unpackaged list the diff so one can actually see what's
missing :)
This commit is contained in:
parent
938abe7cd9
commit
6d88b4bd9e
@ -60,6 +60,7 @@ UNIQ=/bin/uniq
|
|||||||
BASENAME=/bin/basename
|
BASENAME=/bin/basename
|
||||||
DIRNAME=/bin/dirname
|
DIRNAME=/bin/dirname
|
||||||
TR=/bin/tr
|
TR=/bin/tr
|
||||||
|
DIFF=/usr/local/bin/diff # *Must* support -u (like GNU Diff)
|
||||||
|
|
||||||
# Groff stuff for manpages
|
# Groff stuff for manpages
|
||||||
NEQN=/usr/local/bin/neqn
|
NEQN=/usr/local/bin/neqn
|
||||||
|
@ -340,12 +340,19 @@ parse_def()
|
|||||||
# params: none
|
# params: none
|
||||||
check_unpackaged()
|
check_unpackaged()
|
||||||
{
|
{
|
||||||
|
local upf
|
||||||
|
local i
|
||||||
$FIND . -type f -print|$SED -e 's/\.\///g' > $tmpdir/files.tmp
|
$FIND . -type f -print|$SED -e 's/\.\///g' > $tmpdir/files.tmp
|
||||||
$FIND . -type l -print|$SED -e 's/\.\///g' >> $tmpdir/files.tmp
|
$FIND . -type l -print|$SED -e 's/\.\///g' >> $tmpdir/files.tmp
|
||||||
$FIND . -type d -print|$SED -e 's/\.\///g'|$GREP -v '^\.' >> $tmpdir/files.tmp
|
$FIND . -type d -print|$SED -e 's/\.\///g'|$GREP -v '^\.' >> $tmpdir/files.tmp
|
||||||
$SORT $metadir/files.tmp|$UNIQ > $tmpdir/f1
|
$SORT $metadir/files.tmp|$UNIQ > $tmpdir/f1
|
||||||
$SORT $tmpdir/files.tmp > $tmpdir/f2
|
$SORT $tmpdir/files.tmp > $tmpdir/f2
|
||||||
if [ ! "$($CMP $tmpdir/f1 $tmpdir/f2)" == "" ]; then
|
if [ ! "$($CMP $tmpdir/f1 $tmpdir/f2)" == "" ]; then
|
||||||
|
upf="$($DIFF -u $tmpdir/f1 $tmpdir/f2)"
|
||||||
|
for i in $upf
|
||||||
|
do
|
||||||
|
echo $i
|
||||||
|
done
|
||||||
$RM -f $tmpdir/f1 $tmpdir/f2
|
$RM -f $tmpdir/f1 $tmpdir/f2
|
||||||
error $E_UNPACKAGED_FILES check_unpackaged
|
error $E_UNPACKAGED_FILES check_unpackaged
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user