modifs.mineures sans commentaires

This commit is contained in:
Jephté Clain 2023-12-30 18:50:38 +04:00
parent fbc70cb834
commit 77c90f02a4
1 changed files with 3 additions and 2 deletions

View File

@ -38,6 +38,7 @@ function copy_mature() {
path="$src"
fi
tsrcdir=
nurserypackage='nur\sery'; nulibpackage='nulib'
if [ -n "$path" ]; then
srcpackage="nur/sery/$path"; srcpackage="${srcpackage//\//\\}"
destpackage="nulib/$path"; destpackage="${destpackage//\//\\}"
@ -85,7 +86,7 @@ function copy_mature() {
dest="$destdir/$srcname"
estep "${src#$srcdir/}"
mkdirof "$dest"
sed "s|${srcpackage//\\/\\\\}|${destpackage//\\/\\\\}|g" <"$src" >"$dest"
sed "s|${nurserypackage//\\/\\\\}|${nulibpackage//\\/\\\\}|g" <"$src" >"$dest"
done
if [ -n "$tsrcdir" ]; then
einfo "$tsrcdir --> $tdestdir"
@ -95,7 +96,7 @@ function copy_mature() {
dest="$tdestdir/$srcname"
estep "${src#$tsrcdir/}"
mkdirof "$dest"
sed "s|${srcpackage//\\/\\\\}|${destpackage//\\/\\\\}|g" <"$src" >"$dest"
sed "s|${nurserypackage//\\/\\\\}|${nulibpackage//\\/\\\\}|g" <"$src" >"$dest"
done
fi
eend