OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.6 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../t2-debug/t2-debug.conf
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2003 Clifford Wolf
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; version 2 of the License. A copy of the
  13. # GNU General Public License can be found in the file COPYING.
  14. # --- T2-COPYRIGHT-NOTE-END ---
  15. main_rd() {
  16. if [ -z "$root" ] ; then
  17. rm -f /var/adm/*/rock-debug
  18. mkdir -p /var/adm/rock-debug
  19. cd $root/
  20. cat << 'EOT' |
  21. shares.txt shares.sh 'shared' files
  22. bindups.txt bindups.sh duplicated binary names
  23. rootfsbin.txt rootfsbin.sh binaries in /bin and /sbin
  24. unarchived.txt unarchived.sh files 'liggering' arround
  25. baduidgid.txt baduidgid.sh files with unknown UID/GID
  26. usrlocal.txt usrlocal.sh files in /usr/local tree
  27. empty.txt empty.sh empty files or packages
  28. badfiles.txt badfiles.sh known bad files in packages
  29. EOT
  30. while read file script desc ; do
  31. echo -n "Checking for $desc ..." ; lang=bash
  32. $lang $confdir/test_$script > /var/adm/rock-debug/$file 2>&1
  33. if [ -s /var/adm/rock-debug/$file ] ; then
  34. echo " found errors!"
  35. else
  36. echo " ok." ; rm -f /var/adm/rock-debug/$file
  37. fi
  38. done
  39. dump_env > /var/adm/rock-debug/buildenv.txt
  40. cp -a $base/config/$config/config /var/adm/rock-debug/config.txt
  41. touch /var/adm/rock-debug/*
  42. fi
  43. }
  44. custmain="main_rd"
  45. srctar=none