|
@ -58,6 +58,8 @@ python="$4" |
|
|
mode="$5" |
|
|
mode="$5" |
|
|
filespec="$6" |
|
|
filespec="$6" |
|
|
|
|
|
|
|
|
|
|
|
SED="${SED:-sed -e}" |
|
|
|
|
|
|
|
|
find "$src_dir" -name "*\.exe" -exec rm -f {} \; |
|
|
find "$src_dir" -name "*\.exe" -exec rm -f {} \; |
|
|
|
|
|
|
|
|
process_filespec "$src_dir" "$dst_dir" "$filespec" || { |
|
|
process_filespec "$src_dir" "$dst_dir" "$filespec" || { |
|
@ -68,7 +70,7 @@ process_filespec "$src_dir" "$dst_dir" "$filespec" || { |
|
|
usr_bin_dir="$dst_dir/usr/bin" |
|
|
usr_bin_dir="$dst_dir/usr/bin" |
|
|
|
|
|
|
|
|
if [ -d "$usr_bin_dir" ] ; then |
|
|
if [ -d "$usr_bin_dir" ] ; then |
|
|
sed "1"'!'"b;s,^#"'!'".*python.*,#"'!'"/usr/bin/python${ver}," -i $usr_bin_dir/* |
|
|
|
|
|
|
|
|
$SED "1"'!'"b;s,^#"'!'".*python.*,#"'!'"/usr/bin/python${ver}," -i --follow-symlinks $usr_bin_dir/* |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
if [ "$mode" == "sources" ] ; then |
|
|
if [ "$mode" == "sources" ] ; then |
|
|