]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- checs for files not placed in any package
authorfilon <filon@sokrates.mimuw.edu.pl>
Sun, 26 May 2002 12:58:28 +0000 (12:58 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-check-files -> 1.1

rpm-check-files [new file with mode: 0644]

diff --git a/rpm-check-files b/rpm-check-files
new file mode 100644 (file)
index 0000000..79abf73
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/sh
+#
+# Gets file list on standard input and RPM_BUILD_ROOT as first parameter
+# and searches omited files (not counting directories).
+# Returns it's output on standard output.
+#
+# filon@pld.org.pl
+
+RPM_BUILD_ROOT=$1
+
+FILES_DISK=`mktemp $TMPDIR/rpmXXXXXX`
+FILES_RPM=`mktemp $TMPDIR/rpmXXXXXX`
+
+find $RPM_BUILD_ROOT -type f | sort > $FILES_DISK
+sort > $FILES_RPM
+
+for f in `diff "$FILES_DISK" "$FILES_RPM" | grep "^< " | cut -c3-`; do
+       echo $f
+done
+
+rm -f $FILES_DISK
+rm -f $FILES_RPM
This page took 0.036741 seconds and 4 git commands to generate.