You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pm_apply: Do convert multiple libpath references etc.
[pm_apply] Do convert multiple libpath references
[pm_apply]Simplify code
[pm_apply] Let log output be more expressive and consistent
[pm_apply] Enhance checks&balances and debug output
pm_apply: improve regexp (#237)
[pm_apply] (Re-)move misplaced log output and counter initialisation (#239)
[pm_apply] De-indent the whole function mangle_libpath
printf'#\n# Patch converted to %sbit library paths from its original by Patchmanager > 3.1\n# Date: %s\n#\n'$SYS_BITNESS$(date -Iseconds)>"$patch_edited_path"
128
-
sed "s@^+++ $p@+++ $pr@;s@^--- $p@--- $pr@""$PATCH_PATH">>"$patch_edited_path"
129
-
if [ $?-ne 0 ];then
130
-
failure
131
-
fi
132
-
break
133
-
done
134
-
if [ $found-eq 0 ];then
135
-
log
136
-
log "OK, found nothing to convert."
137
-
log
138
-
else
139
-
log
140
-
log "OK, replaced $found libpath references and created: $patch_edited_path"
141
-
log
142
-
# set the patch to apply to the new one:
143
-
PATCH_PATH="$patch_edited_path"
125
+
printf'#\n# Patch converted to %sbit library paths from its original by Patchmanager > 3.1\n# Date: %s\n#\n'$SYS_BITNESS$(date -Iseconds) \
126
+
| cat - "$PATCH_PATH">"$patch_edited_path"
144
127
fi
128
+
sed -i "s@^\+\+\+ \([^/]*\)$p@+++ \1$pr@;s@^--- \([^/]*\)$p@--- \1$pr@""$patch_edited_path"|| failure ||true# patch the Patch
129
+
done
130
+
if [ $found-eq 0 ];then
131
+
log
132
+
log "OK, found nothing to convert."
133
+
log
134
+
else
135
+
log
136
+
log "OK, replaced $found libpath references and created: $patch_edited_path"
0 commit comments