mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 21:17:45 +00:00
Meta: Add 'copy-src' command to serenity.sh
This command copies the project's source tree to /home/anon/Source/serenity in the built disk image. This will be useful for working on serenity inside serenity :^)
This commit is contained in:
parent
f6f429bfbc
commit
6f4324e64e
2 changed files with 20 additions and 1 deletions
|
@ -155,6 +155,15 @@ cp -r "$SERENITY_SOURCE_DIR"/Userland/Libraries/LibCpp/Tests/parser mnt/home/ano
|
|||
cp -r "$SERENITY_SOURCE_DIR"/Userland/Libraries/LibCpp/Tests/preprocessor mnt/home/anon/cpp-tests/preprocessor
|
||||
cp -r "$SERENITY_SOURCE_DIR"/Userland/Libraries/LibWasm/Tests mnt/home/anon/wasm-tests
|
||||
cp -r "$SERENITY_SOURCE_DIR"/Userland/Libraries/LibJS/Tests/test-common.js mnt/home/anon/wasm-tests
|
||||
|
||||
if [ -n "$SERENITY_COPY_SOURCE" ] ; then
|
||||
printf "\ncopying Serenity's source... "
|
||||
rm -fr mnt/home/anon/Source/serenity
|
||||
mkdir -p mnt/home/anon/Source/serenity
|
||||
git clone --depth=1 file://"$SERENITY_SOURCE_DIR" mnt/home/anon/Source/serenity
|
||||
rm -fr mnt/home/anon/Source/serenity/.git
|
||||
fi
|
||||
|
||||
chmod 700 mnt/root
|
||||
chmod 700 mnt/home/anon
|
||||
chmod 700 mnt/home/nona
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue