···11-source $stdenv/setup
22-33-sources_=($sources)
44-targets_=($targets)
55-66-objects=($objects)
77-symlinks=($symlinks)
88-99-101# Remove the initial slash from a path, since genisofs likes it that way.
112stripSlash() {
123 res="$1"
···3526 # The -boot-info-table option modifies the $bootImage file, so
3627 # find it in `contents' and make a copy of it (since the original
3728 # is read-only in the Nix store...).
3838- for ((i = 0; i < ${#targets_[@]}; i++)); do
3939- stripSlash "${targets_[$i]}"
2929+ for ((i = 0; i < ${#targets[@]}; i++)); do
3030+ stripSlash "${targets[$i]}"
4031 if test "$res" = "$bootImage"; then
4141- echo "copying the boot image ${sources_[$i]}"
4242- cp "${sources_[$i]}" boot.img
3232+ echo "copying the boot image ${sources[$i]}"
3333+ cp "${sources[$i]}" boot.img
4334 chmod u+w boot.img
4444- sources_[$i]=boot.img
3535+ sources[$i]=boot.img
4536 fi
4637 done
4738···665767586859# Add the individual files.
6969-for ((i = 0; i < ${#targets_[@]}; i++)); do
7070- stripSlash "${targets_[$i]}"
7171- addPath "$res" "${sources_[$i]}"
6060+for ((i = 0; i < ${#targets[@]}; i++)); do
6161+ stripSlash "${targets[$i]}"
6262+ addPath "$res" "${sources[$i]}"
7263done
73647465