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.

49 lines
1.8 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: target/generic/build.sh
  5. # Copyright (C) 2007 - 2008 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  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. # --- SDE-COPYRIGHT-NOTE-END ---
  15. # This is the shortest possible target build.sh script. Some targets will
  16. # add code after calling pkgloop() or modify pkgloop's behavior by defining
  17. # a new pkgloop_action() function.
  18. pkgloop
  19. echo_header "Finishing build."
  20. rm -f $build_toolchain/isofs*.txt 2> /dev/null
  21. echo_status "Creating package database ..."
  22. admdir="build/${SDECFG_ID}/var/adm"
  23. ./bin/sde-create-pkgdb -c "$config"
  24. if [ "$SDECFG_IMAGE" -a -e target/share/$SDECFG_IMAGE/build.sh ]; then
  25. echo_status "Creating output image ..."
  26. . target/share/$SDECFG_IMAGE/build.sh
  27. fi
  28. echo_status "Creating isofs.txt file ..."
  29. cat << EOT > $build_toolchain/isofs.txt
  30. DISK1 $admdir/cache/ ${SDECFG_SHORTID}/info/cache/
  31. DISK1 $admdir/cksums/ ${SDECFG_SHORTID}/info/cksums/
  32. DISK1 $admdir/dependencies/ ${SDECFG_SHORTID}/info/dependencies/
  33. DISK1 $admdir/descs/ ${SDECFG_SHORTID}/info/descs/
  34. DISK1 $admdir/flists/ ${SDECFG_SHORTID}/info/flists/
  35. DISK1 $admdir/md5sums/ ${SDECFG_SHORTID}/info/md5sums/
  36. DISK1 $admdir/packages/ ${SDECFG_SHORTID}/info/packages/
  37. EVERY $build_toolchain/pkgs/packages.db ${SDECFG_SHORTID}/pkgs/packages.db
  38. SPLIT $build_toolchain/pkgs/ ${SDECFG_SHORTID}/pkgs/
  39. $( cat $build_toolchain/isofs_*.txt 2>/dev/null )
  40. EOT
  41. echo_status "Done."