3 if [ "$#" -ne 1 ]; then
4 echo "Usage: $0 <chroot_destination>"
10 if [ ! -d "$CHROOT_PATH" ]; then
11 echo "Error: Destination path '$CHROOT_PATH' does not exist."
15 # Get the @INC paths from Perl
16 INC_PATHS=$(perl -e 'print join("\n", @INC)')
18 # Loop through each path and copy it to the destination
19 for isrc in $INC_PATHS; do
20 idst=$(dirname "$CHROOT_PATH$isrc")
25 echo "Copy completed."