]> git.pld-linux.org Git - packages/rpm.git/blame - rpm-check-files
- checs for files not placed in any package
[packages/rpm.git] / rpm-check-files
CommitLineData
33ee0430 1#!/bin/sh
2#
3# Gets file list on standard input and RPM_BUILD_ROOT as first parameter
4# and searches omited files (not counting directories).
5# Returns it's output on standard output.
6#
7# filon@pld.org.pl
8
9RPM_BUILD_ROOT=$1
10
11FILES_DISK=`mktemp $TMPDIR/rpmXXXXXX`
12FILES_RPM=`mktemp $TMPDIR/rpmXXXXXX`
13
14find $RPM_BUILD_ROOT -type f | sort > $FILES_DISK
15sort > $FILES_RPM
16
17for f in `diff "$FILES_DISK" "$FILES_RPM" | grep "^< " | cut -c3-`; do
18 echo $f
19done
20
21rm -f $FILES_DISK
22rm -f $FILES_RPM
This page took 0.022917 seconds and 4 git commands to generate.