mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-23 07:19:24 +02:00
build/release/src: re-create symlinks, don't copy
if you copy a symlink, you create a whole new file with the contents of what that symlink points to. what we need to do instead is re-create the symlinks. this is relevant for all symlinks to the main lbmk script, from the main directory of lbmk.git. this avoids there being multiple copies of the main lbmk script, in release archives. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -30,9 +30,9 @@ simple_fetch_list="flashrom grub memtest86plus me_cleaner uefitool"
|
|||||||
simple_fetch_list="${simple_fetch_list} bios_extract biosutilities"
|
simple_fetch_list="${simple_fetch_list} bios_extract biosutilities"
|
||||||
|
|
||||||
dirlist="config util script include"
|
dirlist="config util script include"
|
||||||
|
linklist="build update handle" # symlinks in main directory, to script: lbmk
|
||||||
filelist="lbmk modify build README.md COPYING update version handle"
|
filelist="lbmk README.md COPYING version versiondate projectname checkgit"
|
||||||
filelist="${filelist} versiondate projectname checkgit checkversion"
|
filelist="${filelist} checkversion"
|
||||||
|
|
||||||
version="version-unknown"
|
version="version-unknown"
|
||||||
versiondate="version-date-unknown"
|
versiondate="version-date-unknown"
|
||||||
@@ -123,6 +123,13 @@ copy_files()
|
|||||||
cp "${i}" "${srcdir}/" || \
|
cp "${i}" "${srcdir}/" || \
|
||||||
err "copy_files: !cp ${i} ${srcdir}/"
|
err "copy_files: !cp ${i} ${srcdir}/"
|
||||||
done
|
done
|
||||||
|
(
|
||||||
|
cd "${srcdir}/" || err "copy_files: can't enter dir: ${srcdir}/"
|
||||||
|
for i in ${linklist}; do
|
||||||
|
ln -s lbmk "${i}" || \
|
||||||
|
err "copy_files: cannot create symlink: ${i} -> lbmk"
|
||||||
|
done
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
purge_files()
|
purge_files()
|
||||||
|
|||||||
Reference in New Issue
Block a user