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.

53 lines
1.4 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../00-dirtree/00-dirtree.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_dt() {
  16. echo -n "Change to sysroot directory ... "
  17. cd $sysroot/ ; echo 'done'
  18. while read a b c ; do
  19. if [ "$a" = "chmod" -o "$a" = "chown" ] ; then
  20. echo "Running $a ($b) on $c ..."
  21. $a "$b" "$sysroot/$c"
  22. elif [ "$a" -a "$a" != "#" ] ; then
  23. if [ -e "$sysroot/$b" ] ; then
  24. echo "Exists already: $b."
  25. elif [ "$a" = "m" ] ; then
  26. echo "Create directory $b ..."
  27. mkdir -p "$sysroot/$b"
  28. elif [ "$a" = "l" ] ; then
  29. echo "Create symlink $b ($c) ..."
  30. ln -fsn "$c" "$sysroot/$b"
  31. else
  32. echo "Syntax Error: $a $b $c" ; false
  33. fi
  34. add_flist "$sysroot/$b"
  35. fi
  36. done < <(
  37. cat $confdir/data.txt
  38. if [[ $libdir = *lib64 ]]; then
  39. echo "m lib64"
  40. echo "m usr/lib64"
  41. echo "m usr/local/lib64"
  42. fi
  43. )
  44. }
  45. srctar=none
  46. createprefix=0
  47. createdocs=0
  48. custmain="main_dt"
  49. check_usrlocal=0