From 53f25051998e6590e9f39bf9c8f9240dc380e312 Mon Sep 17 00:00:00 2001
From: P. J. McDermott <pjm@nac.net>
Date: Tue, 23 Oct 2012 21:11:21 -0400
Subject: Warn if some files aren't installed into packages.

---
diff --git a/locale/en_US/opkhelper.sh b/locale/en_US/opkhelper.sh
index 05b3c2c..ca7df0a 100644
--- a/locale/en_US/opkhelper.sh
+++ b/locale/en_US/opkhelper.sh
@@ -19,6 +19,7 @@
 
 msg_opkhelper_bad_opt='Invalid option'
 msg_opkhelper_installing_files='Installing files for package "%s"...'
+msg_opkhelper_files_not_installed='Some files have not been installed into packages'
 msg_opkhelper_strip_so='Stripping shared library "%s"...'
 msg_opkhelper_strip_exe='Stripping executable object "%s"...'
 msg_opkhelper_strip_a='Stripping static library "%s"...'
diff --git a/src/oh-installfiles.sh b/src/oh-installfiles.sh
index 6288e6a..73f0c11 100644
--- a/src/oh-installfiles.sh
+++ b/src/oh-installfiles.sh
@@ -65,6 +65,11 @@ main()
 			done
 		done <"../${pkg}.pkg/files"
 	done
+
+	# TODO: See above.  Count links.
+	if [ "$(find "${dir}" -type f | wc -l)" -gt 0 ]; then
+		ob_warn "$(ob_get_msg 'files_not_installed')"
+	fi
 }
 
 main "${@}"
--
cgit v0.9.1