OpenSDE Framework (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.

53 lines
1.4 KiB

  1. #!/bin/bash
  2. #
  3. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  4. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  5. #
  6. # T2 SDE: scripts/create-cache.sh
  7. # Copyright (C) 2004 - 2006 The T2 SDE Project
  8. # Copyright (C) 1998 - 2003 Clifford Wolf
  9. #
  10. # More information can be found in the files COPYING and README.
  11. #
  12. # This program is free software; you can redistribute it and/or modify
  13. # it under the terms of the GNU General Public License as published by
  14. # the Free Software Foundation; version 2 of the License. A copy of the
  15. # GNU General Public License can be found in the file COPYING.
  16. # --- T2-COPYRIGHT-NOTE-END ---
  17. if [ "$#" != 5 ] ; then
  18. echo "Usage: $0 <sdever> <buildtime> <stage> <pkg> <var-adm-dir>" >&2
  19. exit 1
  20. fi
  21. sdever=$1
  22. buildtime=$2
  23. stagelevel=$3
  24. pkg=$4
  25. varadm=$5
  26. LC_ALL=C date '+%n[TIMESTAMP] %s %c'
  27. echo -e "[ROCKVER] $sdever\n"
  28. echo "[LOGS]" $( cd ${varadm}/logs ; ls ?-$pkg.* )
  29. echo
  30. if [ -f "${varadm}/logs/$stagelevel-$pkg.log" ]
  31. then
  32. echo "[BUILDTIME] $buildtime ($stagelevel)"
  33. echo "[SIZE] `grep "^Package Size: " \
  34. ${varadm}/packages/$pkg | cut -f3- -d' '`"
  35. echo
  36. cut -f2- -d' ' "${varadm}/dependencies/$pkg" |
  37. fmt -70 | sed 's,^,[DEP] ,'
  38. echo
  39. fi
  40. for stagelevel in 0 1 2 3 4 5 6 7 8 9 ; do
  41. if [ -f "${varadm}/logs/$stagelevel-$pkg.err" ] ; then
  42. tail -n 50 "${varadm}/logs/$stagelevel-$pkg.err" | \
  43. sed "s,^,[$stagelevel-ERROR] ,"
  44. echo
  45. fi
  46. done