-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly quote unix launch scripts (#199)
* Properly quote linux scripts linux scripts * Properly quote osx scripts Properly quote osx fetch_chromium Properly quote osx build_blink * Revert line deletion
- Loading branch information
1 parent
056642f
commit 956bfb3
Showing
7 changed files
with
50 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
#!/bin/bash | ||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
|
||
export LD_LIBRARY_PATH=$DIR/lib:$LD_LIBRARY_PATH | ||
export FONTCONFIG_PATH=$DIR/etc/fonts | ||
export XDG_DATA_HOME=$DIR/xdg | ||
export LD_LIBRARY_PATH="$DIR/lib:$LD_LIBRARY_PATH" | ||
export FONTCONFIG_PATH="$DIR/etc/fonts" | ||
export XDG_DATA_HOME="$DIR/xdg" | ||
unset LD_PRELOAD | ||
|
||
cd $DIR | ||
./bin/kaleido $@ | ||
cd "$DIR" | ||
./bin/kaleido "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,43 @@ | ||
#!/bin/bash | ||
|
||
|
||
if [ $# -eq 0 ]; then | ||
echo "No architecture provided" | ||
exit 1 | ||
fi | ||
|
||
|
||
export KALEIDO_ARCH=$1 | ||
|
||
|
||
# Don't autoupdate depottools version | ||
export DEPOT_TOOLS_UPDATE=0 | ||
|
||
|
||
# full path to mac_scripts/ directory | ||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
|
||
|
||
# cd to repos directory | ||
cd $DIR/.. | ||
cd "$DIR/.." | ||
|
||
|
||
# Add depot_tools directory to PATH | ||
export PATH="$PATH:`pwd`/depot_tools" | ||
|
||
|
||
# Make output directory | ||
mkdir -p ./src/out/Kaleido_mac_$KALEIDO_ARCH/ | ||
|
||
|
||
# Write out/Kaleido_mac_$KALEIDO_ARCH/args.gn | ||
cp ./mac_scripts/args_$KALEIDO_ARCH.gn ./src/out/Kaleido_mac_$KALEIDO_ARCH/args.gn | ||
|
||
|
||
# cd to repos/src | ||
cd src | ||
|
||
|
||
# 4) Perform build, result will be out/Kaleido_mac_$KALEIDO_ARCH/kaleido | ||
gn gen out/Kaleido_mac_$KALEIDO_ARCH | ||
ninja -C out/Kaleido_mac_$KALEIDO_ARCH -j 8 gl_blink |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,41 @@ | ||
#!/bin/bash | ||
|
||
|
||
# Commits | ||
DEPOT_TOOLS_COMMIT="" # Can't set a version for Windows, maybe we can for make depending on TODO below, probably won't | ||
CHROMIUM_TAG="124.0.6367.60" | ||
export DEPOT_TOOLS_UPDATE=0 # TODO: Don't know if this will work on Mac | ||
|
||
|
||
# full path to mac_scripts/ directory | ||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
|
||
|
||
# cd to repos directory | ||
cd $DIR/.. | ||
cd "$DIR/.." | ||
|
||
|
||
# Get depot_tools | ||
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git | ||
cd depot_tools | ||
|
||
|
||
# Add cloned depot_tools directory to PATH | ||
export PATH="$PATH:`pwd`" | ||
|
||
|
||
# Reset to proper commit | ||
git reset --hard $DEPOT_TOOLS_COMMIT | ||
git clean -ffd | ||
|
||
|
||
# Move back to repos directory | ||
cd ../src | ||
|
||
|
||
gclient sync -D --force --reset --no-history --jobs=3 --revision=$CHROMIUM_TAG | ||
|
||
|
||
# Write out credits file | ||
cd .. | ||
python ./src/tools/licenses.py credits > ./CREDITS.html |