diff options
author | P. J. McDermott <pjm@nac.net> | 2012-10-23 21:11:21 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-10-23 21:11:21 (EDT) |
commit | 53f25051998e6590e9f39bf9c8f9240dc380e312 (patch) | |
tree | d34d6be00148de0e9c7bb829b132956def82fce4 | |
parent | 3c472477b492078c2af03f521a75e633a4bc823b (diff) |
Warn if some files aren't installed into packages.
-rw-r--r-- | locale/en_US/opkhelper.sh | 1 | ||||
-rw-r--r-- | src/oh-installfiles.sh | 5 |
2 files changed, 6 insertions, 0 deletions
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 "${@}" |