mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 14:57:34 +00:00
POSIX compliance: (most) shell scripts converted to generic shell
Ports/.port_include.sh, Toolchain/BuildIt.sh, Toolchain/UseIt.sh have been left largely untouched due to use of Bash-exclusive functions and variables such as $BASH_SOURCE, pushd and popd.
This commit is contained in:
parent
2cc5f3a93f
commit
704f48d7f3
43 changed files with 152 additions and 144 deletions
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
SERENITY_ROOT=../../
|
||||
|
@ -8,7 +8,7 @@ mkdir -p $SERENITY_ROOT/Root/usr/include/bits/
|
|||
mkdir -p $SERENITY_ROOT/Root/usr/include/netinet/
|
||||
mkdir -p $SERENITY_ROOT/Root/usr/include/arpa/
|
||||
mkdir -p $SERENITY_ROOT/Root/usr/lib/
|
||||
cp *.h $SERENITY_ROOT/Root/usr/include/
|
||||
cp ./*.h $SERENITY_ROOT/Root/usr/include/
|
||||
cp sys/*.h $SERENITY_ROOT/Root/usr/include/sys/
|
||||
cp bits/*.h $SERENITY_ROOT/Root/usr/include/bits/
|
||||
cp arpa/*.h $SERENITY_ROOT/Root/usr/include/arpa/
|
||||
|
|
|
@ -4,5 +4,5 @@ set -e
|
|||
SERENITY_ROOT=../../
|
||||
|
||||
mkdir -p $SERENITY_ROOT/Root/usr/include/LibCore/
|
||||
cp *.h $SERENITY_ROOT/Root/usr/include/LibCore/
|
||||
cp ./*.h $SERENITY_ROOT/Root/usr/include/LibCore/
|
||||
cp libcore.a $SERENITY_ROOT/Root/usr/lib/
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
SERENITY_ROOT=../../
|
||||
|
||||
mkdir -p $SERENITY_ROOT/Root/usr/include/LibDraw/
|
||||
cp *.h $SERENITY_ROOT/Root/usr/include/LibDraw/
|
||||
cp ./*.h $SERENITY_ROOT/Root/usr/include/LibDraw/
|
||||
cp libdraw.a $SERENITY_ROOT/Root/usr/lib/
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
SERENITY_ROOT=../../
|
||||
|
||||
mkdir -p $SERENITY_ROOT/Root/usr/include/LibGUI/
|
||||
cp *.h $SERENITY_ROOT/Root/usr/include/LibGUI/
|
||||
cp ./*.h $SERENITY_ROOT/Root/usr/include/LibGUI/
|
||||
cp libgui.a $SERENITY_ROOT/Root/usr/lib/
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
echo "extern const char $1[];"
|
||||
echo "const char $1[] = \"\\"
|
||||
IFS=$'\n'
|
||||
for line in $(cat $2); do
|
||||
echo $line"\\"
|
||||
grep -v '^ *#' < "$2" | while IFS= read -r line; do
|
||||
echo "$line""\\"
|
||||
done
|
||||
echo "\";"
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
SERENITY_ROOT=../../
|
||||
|
||||
mkdir -p $SERENITY_ROOT/Root/usr/include/LibIPC/
|
||||
cp *.h $SERENITY_ROOT/Root/usr/include/LibIPC/
|
||||
cp ./*.h $SERENITY_ROOT/Root/usr/include/LibIPC/
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
SERENITY_ROOT=../../
|
||||
|
||||
mkdir -p $SERENITY_ROOT/Root/usr/include/sys/
|
||||
mkdir -p $SERENITY_ROOT/Root/usr/lib/
|
||||
cp *.h $SERENITY_ROOT/Root/usr/include/
|
||||
cp ./*.h $SERENITY_ROOT/Root/usr/include/
|
||||
cp libm.a $SERENITY_ROOT/Root/usr/lib/
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
SERENITY_ROOT=../../
|
||||
|
||||
mkdir -p $SERENITY_ROOT/Root/usr/include/LibPCIDB/
|
||||
cp *.h $SERENITY_ROOT/Root/usr/include/LibPCIDB/
|
||||
cp ./*.h $SERENITY_ROOT/Root/usr/include/LibPCIDB/
|
||||
cp libpcidb.a $SERENITY_ROOT/Root/usr/lib/
|
||||
|
|
|
@ -4,5 +4,5 @@ set -e
|
|||
SERENITY_ROOT=../../
|
||||
|
||||
mkdir -p $SERENITY_ROOT/Root/usr/include/LibThread/
|
||||
cp *.h $SERENITY_ROOT/Root/usr/include/LibThread/
|
||||
cp ./*.h $SERENITY_ROOT/Root/usr/include/LibThread/
|
||||
cp libthread.a $SERENITY_ROOT/Root/usr/lib/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue