symlink_postinstall_expected.txt 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. if [ "$RPM_INSTALL_PREFIX0" != "/usr/foo/bar/lib" ]; then
  2. if [ "$RPM_INSTALL_PREFIX1" != "/usr/foo/bar/other_relocatable" ]; then
  3. if [ -z "$CPACK_RPM_RELOCATED_SYMLINK_1" ]; then
  4. ln -s "$RPM_INSTALL_PREFIX1/depth_two" "$RPM_INSTALL_PREFIX0/inside_relocatable_two/depth_two/symlink_other_relocatable_path"
  5. CPACK_RPM_RELOCATED_SYMLINK_1=true
  6. fi
  7. fi
  8. if [ "$RPM_INSTALL_PREFIX2" != "/usr/foo/bar/lib/inside_relocatable_two/depth_two/different_relocatable" ]; then
  9. if [ -z "$CPACK_RPM_RELOCATED_SYMLINK_0" ]; then
  10. ln -s "$RPM_INSTALL_PREFIX2/bar" "$RPM_INSTALL_PREFIX0/inside_relocatable_one/depth_two/symlink_relocatable_subpath"
  11. CPACK_RPM_RELOCATED_SYMLINK_0=true
  12. fi
  13. fi
  14. if [ -z "$CPACK_RPM_RELOCATED_SYMLINK_0" ]; then
  15. ln -s "$RPM_INSTALL_PREFIX0/inside_relocatable_two/depth_two/different_relocatable/bar" "$RPM_INSTALL_PREFIX0/inside_relocatable_one/depth_two/symlink_relocatable_subpath"
  16. CPACK_RPM_RELOCATED_SYMLINK_0=true
  17. fi
  18. if [ -z "$CPACK_RPM_RELOCATED_SYMLINK_0" ]; then
  19. ln -s "/usr/foo/bar/lib/inside_relocatable_two/depth_two/different_relocatable/bar" "$RPM_INSTALL_PREFIX0/inside_relocatable_one/depth_two/symlink_relocatable_subpath"
  20. CPACK_RPM_RELOCATED_SYMLINK_0=true
  21. fi
  22. if [ -z "$CPACK_RPM_RELOCATED_SYMLINK_1" ]; then
  23. ln -s "/usr/foo/bar/other_relocatable/depth_two" "$RPM_INSTALL_PREFIX0/inside_relocatable_two/depth_two/symlink_other_relocatable_path"
  24. CPACK_RPM_RELOCATED_SYMLINK_1=true
  25. fi
  26. fi
  27. if [ "$RPM_INSTALL_PREFIX1" != "/usr/foo/bar/other_relocatable" ]; then
  28. if [ -z "$CPACK_RPM_RELOCATED_SYMLINK_1" ]; then
  29. ln -s "$RPM_INSTALL_PREFIX1/depth_two" "/usr/foo/bar/lib/inside_relocatable_two/depth_two/symlink_other_relocatable_path"
  30. CPACK_RPM_RELOCATED_SYMLINK_1=true
  31. fi
  32. fi
  33. if [ "$RPM_INSTALL_PREFIX2" != "/usr/foo/bar/lib/inside_relocatable_two/depth_two/different_relocatable" ]; then
  34. if [ -z "$CPACK_RPM_RELOCATED_SYMLINK_0" ]; then
  35. ln -s "$RPM_INSTALL_PREFIX2/bar" "/usr/foo/bar/lib/inside_relocatable_one/depth_two/symlink_relocatable_subpath"
  36. CPACK_RPM_RELOCATED_SYMLINK_0=true
  37. fi
  38. fi
  39. if [ "$RPM_INSTALL_PREFIX0" != "/usr/foo/bar/lib" ]; then
  40. if [ -z "$CPACK_RPM_RELOCATED_SYMLINK_0" ]; then
  41. ln -s "$RPM_INSTALL_PREFIX0/inside_relocatable_two/depth_two/different_relocatable/bar" "/usr/foo/bar/lib/inside_relocatable_one/depth_two/symlink_relocatable_subpath"
  42. CPACK_RPM_RELOCATED_SYMLINK_0=true
  43. fi
  44. if [ -z "$CPACK_RPM_RELOCATED_SYMLINK_2" ]; then
  45. ln -s "$RPM_INSTALL_PREFIX0/inside_relocatable_two/depth_two" "/usr/foo/bar/non_relocatable/depth_two/symlink_from_non_relocatable_path"
  46. CPACK_RPM_RELOCATED_SYMLINK_2=true
  47. fi
  48. fi
  49. if [ -z "$CPACK_RPM_RELOCATED_SYMLINK_0" ]; then
  50. ln -s "/usr/foo/bar/lib/inside_relocatable_two/depth_two/different_relocatable/bar" "/usr/foo/bar/lib/inside_relocatable_one/depth_two/symlink_relocatable_subpath"
  51. fi
  52. if [ -z "$CPACK_RPM_RELOCATED_SYMLINK_1" ]; then
  53. ln -s "/usr/foo/bar/other_relocatable/depth_two" "/usr/foo/bar/lib/inside_relocatable_two/depth_two/symlink_other_relocatable_path"
  54. fi
  55. if [ -z "$CPACK_RPM_RELOCATED_SYMLINK_2" ]; then
  56. ln -s "/usr/foo/bar/lib/inside_relocatable_two/depth_two" "/usr/foo/bar/non_relocatable/depth_two/symlink_from_non_relocatable_path"
  57. fi