mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:38:12 +00:00
Meta: get rid of sync.sh using the technique used in the previous commit
This commit is contained in:
parent
e42f4abd61
commit
4a784d4d1b
3 changed files with 3 additions and 8 deletions
|
@ -13,7 +13,7 @@ set(CMAKE_INSTALL_MESSAGE NEVER)
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
|
||||||
add_custom_target(image
|
add_custom_target(image
|
||||||
COMMAND ${CMAKE_COMMAND} -E env "SERENITY_ROOT=${CMAKE_SOURCE_DIR}" ${CMAKE_SOURCE_DIR}/Meta/sync.sh
|
COMMAND ${CMAKE_COMMAND} -E env "SERENITY_ROOT=${CMAKE_SOURCE_DIR}" ${CMAKE_SOURCE_DIR}/Meta/build-image-qemu.sh
|
||||||
BYPRODUCTS ${CMAKE_BINARY_DIR}/_disk_image
|
BYPRODUCTS ${CMAKE_BINARY_DIR}/_disk_image
|
||||||
USES_TERMINAL
|
USES_TERMINAL
|
||||||
)
|
)
|
||||||
|
|
|
@ -8,8 +8,9 @@ die() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "$(id -u)" != 0 ]; then
|
if [ "$(id -u)" != 0 ]; then
|
||||||
die "this script needs to run as root"
|
exec sudo -E -- "$0" "$@" || die "this script needs to run as root"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(uname -s)" = "Darwin" ]; then
|
if [ "$(uname -s)" = "Darwin" ]; then
|
||||||
export PATH="/usr/local/opt/e2fsprogs/bin:$PATH"
|
export PATH="/usr/local/opt/e2fsprogs/bin:$PATH"
|
||||||
export PATH="/usr/local/opt/e2fsprogs/sbin:$PATH"
|
export PATH="/usr/local/opt/e2fsprogs/sbin:$PATH"
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
set -e
|
|
||||||
|
|
||||||
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
|
||||||
|
|
||||||
sudo -E PATH="$PATH" "$script_path/build-image-qemu.sh"
|
|
Loading…
Add table
Add a link
Reference in a new issue