File tree Expand file tree Collapse file tree 4 files changed +19
-19
lines changed Expand file tree Collapse file tree 4 files changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -39,12 +39,3 @@ if errorlevel 1 exit 1
39
39
40
40
cmake --build . --config Release --target install
41
41
if errorlevel 1 exit 1
42
-
43
- if "%PKG_NAME%" == "ros-@(ros_distro)-ros-workspace" (
44
- :: Copy the [de]activate scripts to %PREFIX%\etc\conda\[de]activate.d.
45
- :: This will allow them to be run on environment activation.
46
- for %%F in (activate deactivate) DO (
47
- if not exist %PREFIX%\etc\conda\%%F.d mkdir %PREFIX%\etc\conda\%%F.d
48
- copy %RECIPE_DIR%\%%F.bat %PREFIX%\etc\conda\%%F.d\%PKG_NAME%_%%F.bat
49
- )
50
- )
Original file line number Diff line number Diff line change @@ -59,3 +59,12 @@ if "%PKG_NAME%" == "ros-@(ros_distro)-catkin" (
59
59
copy %RECIPE_DIR%\%%F.bat %PREFIX%\etc\conda\%%F.d\%PKG_NAME%_%%F.bat
60
60
)
61
61
)
62
+
63
+ if "%PKG_NAME%" == "ros-@(ros_distro)-ros-workspace" (
64
+ :: Copy the [de]activate scripts to %PREFIX%\etc\conda\[de]activate.d.
65
+ :: This will allow them to be run on environment activation.
66
+ for %%F in (activate deactivate) DO (
67
+ if not exist %PREFIX%\etc\conda\%%F.d mkdir %PREFIX%\etc\conda\%%F.d
68
+ copy %RECIPE_DIR%\%%F.bat %PREFIX%\etc\conda\%%F.d\%PKG_NAME%_%%F.bat
69
+ )
70
+ )
Original file line number Diff line number Diff line change @@ -30,13 +30,3 @@ cmake \
30
30
$SRC_DIR /$PKG_NAME /src/work
31
31
32
32
cmake --build . --config Release --target install
33
-
34
- if [ " ${PKG_NAME} " == " ros-@(ros_distro)-ros-workspace" ]; then
35
- # Copy the [de]activate scripts to $PREFIX/etc/conda/[de]activate.d.
36
- # This will allow them to be run on environment activation.
37
- for CHANGE in " activate" " deactivate"
38
- do
39
- mkdir -p " ${PREFIX} /etc/conda/${CHANGE} .d"
40
- cp " ${RECIPE_DIR} /${CHANGE} .sh" " ${PREFIX} /etc/conda/${CHANGE} .d/${PKG_NAME} _${CHANGE} .sh"
41
- done
42
- fi
Original file line number Diff line number Diff line change @@ -89,3 +89,13 @@ if [ "${PKG_NAME}" == "ros-@(ros_distro)-catkin" ]; then
89
89
done
90
90
fi
91
91
fi
92
+
93
+ if [ " ${PKG_NAME} " == " ros-@(ros_distro)-ros-workspace" ]; then
94
+ # Copy the [de]activate scripts to $PREFIX/etc/conda/[de]activate.d.
95
+ # This will allow them to be run on environment activation.
96
+ for CHANGE in " activate" " deactivate"
97
+ do
98
+ mkdir -p " ${PREFIX} /etc/conda/${CHANGE} .d"
99
+ cp " ${RECIPE_DIR} /${CHANGE} .sh" " ${PREFIX} /etc/conda/${CHANGE} .d/${PKG_NAME} _${CHANGE} .sh"
100
+ done
101
+ fi
You can’t perform that action at this time.
0 commit comments