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
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
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
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
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
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
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
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
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
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"
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"
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"