-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplify staged frontend starter scripts (#4341)
* simplify staged frontend starter scripts Simply invoke the staged x2cpg.sh script without defining additional JVM properties. If we want to define those by default, it should rather be done in `src/universal/x2cpg.sh` N.b. we can't just symlink to the `target/universal/stage/bin/x2cpg.sh` because of the `SCRIPT_ABS_PATH` handling - we wouldn't be able to invoke the frontend from different directories any longer. For now only c2cpg to gather feedback, if it's to your liking I'll apply the same to all frontends. * make other frontends setup more similar there's still some differences, at the same time I'm afraid to break things downstream...
- Loading branch information
1 parent
cea9697
commit 7947bee
Showing
15 changed files
with
115 additions
and
8 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
17 changes: 17 additions & 0 deletions
17
joern-cli/frontends/csharpsrc2cpg/src/universal/bin/csharpsrc2cpg.sh
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env sh | ||
|
||
if [ "$(uname -s)" = "Darwin" ]; then | ||
SCRIPT_ABS_PATH="$0" | ||
else | ||
SCRIPT_ABS_PATH=$(readlink -f "$0") | ||
fi | ||
|
||
SCRIPT_ABS_DIR=$(dirname "$0") | ||
SCRIPT="$SCRIPT_ABS_DIR"/csharpsrc2cpg | ||
|
||
if [ ! -f "$SCRIPT" ]; then | ||
echo "Unable to find $SCRIPT, have you created the distribution?" | ||
exit 1 | ||
fi | ||
|
||
$SCRIPT -J-XX:+UseG1GC -J-XX:CompressedClassSpaceSize=128m -Dlog4j.configurationFile="$SCRIPT_ABS_DIR"/conf/log4j2.xml "$@" |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env sh | ||
|
||
SCRIPT_ABS_PATH=$(readlink -f "$0") | ||
SCRIPT_ABS_DIR=$(dirname $SCRIPT_ABS_PATH) | ||
|
||
$SCRIPT_ABS_DIR/target/universal/stage/bin/ghidra2cpg.sh $@ |
17 changes: 17 additions & 0 deletions
17
joern-cli/frontends/ghidra2cpg/src/universal/bin/ghidra2cpg.sh
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env sh | ||
|
||
if [ "$(uname -s)" = "Darwin" ]; then | ||
SCRIPT_ABS_PATH="$0" | ||
else | ||
SCRIPT_ABS_PATH=$(readlink -f "$0") | ||
fi | ||
|
||
SCRIPT_ABS_DIR=$(dirname "$0") | ||
SCRIPT="$SCRIPT_ABS_DIR"/ghidra2cpg | ||
|
||
if [ ! -f "$SCRIPT" ]; then | ||
echo "Unable to find $SCRIPT, have you created the distribution?" | ||
exit 1 | ||
fi | ||
|
||
$SCRIPT -J-XX:+UseG1GC -J-XX:CompressedClassSpaceSize=128m -Dlog4j.configurationFile="$SCRIPT_ABS_DIR"/conf/log4j2.xml "$@" |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env sh | ||
|
||
SCRIPT_ABS_PATH=$(readlink -f "$0") | ||
SCRIPT_ABS_DIR=$(dirname $SCRIPT_ABS_PATH) | ||
|
||
$SCRIPT_ABS_DIR/target/universal/stage/bin/javasrc2cpg.sh $@ |
17 changes: 17 additions & 0 deletions
17
joern-cli/frontends/javasrc2cpg/src/universal/bin/javasrc2cpg.sh
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env sh | ||
|
||
if [ "$(uname -s)" = "Darwin" ]; then | ||
SCRIPT_ABS_PATH="$0" | ||
else | ||
SCRIPT_ABS_PATH=$(readlink -f "$0") | ||
fi | ||
|
||
SCRIPT_ABS_DIR=$(dirname "$0") | ||
SCRIPT="$SCRIPT_ABS_DIR"/javasrc2cpg | ||
|
||
if [ ! -f "$SCRIPT" ]; then | ||
echo "Unable to find $SCRIPT, have you created the distribution?" | ||
exit 1 | ||
fi | ||
|
||
$SCRIPT -J-XX:+UseG1GC -J-XX:CompressedClassSpaceSize=128m -Dlog4j.configurationFile="$SCRIPT_ABS_DIR"/conf/log4j2.xml "$@" |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env sh | ||
|
||
SCRIPT_ABS_PATH=$(readlink -f "$0") | ||
SCRIPT_ABS_DIR=$(dirname $SCRIPT_ABS_PATH) | ||
|
||
$SCRIPT_ABS_DIR/target/universal/stage/bin/jimple2cpg.sh $@ |
17 changes: 17 additions & 0 deletions
17
joern-cli/frontends/jimple2cpg/src/universal/bin/jimple2cpg.sh
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env sh | ||
|
||
if [ "$(uname -s)" = "Darwin" ]; then | ||
SCRIPT_ABS_PATH="$0" | ||
else | ||
SCRIPT_ABS_PATH=$(readlink -f "$0") | ||
fi | ||
|
||
SCRIPT_ABS_DIR=$(dirname "$0") | ||
SCRIPT="$SCRIPT_ABS_DIR"/jimple2cpg | ||
|
||
if [ ! -f "$SCRIPT" ]; then | ||
echo "Unable to find $SCRIPT, have you created the distribution?" | ||
exit 1 | ||
fi | ||
|
||
$SCRIPT -J-XX:+UseG1GC -J-XX:CompressedClassSpaceSize=128m -Dlog4j.configurationFile="$SCRIPT_ABS_DIR"/conf/log4j2.xml "$@" |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env sh | ||
|
||
SCRIPT_ABS_PATH=$(readlink -f "$0") | ||
SCRIPT_ABS_DIR=$(dirname $SCRIPT_ABS_PATH) | ||
|
||
$SCRIPT_ABS_DIR/target/universal/stage/bin/php2cpg.sh $@ |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env sh | ||
|
||
if [ "$(uname -s)" = "Darwin" ]; then | ||
SCRIPT_ABS_PATH="$0" | ||
else | ||
SCRIPT_ABS_PATH=$(readlink -f "$0") | ||
fi | ||
|
||
SCRIPT_ABS_DIR=$(dirname "$0") | ||
SCRIPT="$SCRIPT_ABS_DIR"/php2cpg | ||
|
||
if [ ! -f "$SCRIPT" ]; then | ||
echo "Unable to find $SCRIPT, have you created the distribution?" | ||
exit 1 | ||
fi | ||
|
||
$SCRIPT -J-XX:+UseG1GC -J-XX:CompressedClassSpaceSize=128m -Dlog4j.configurationFile="$SCRIPT_ABS_DIR"/conf/log4j2.xml "$@" |
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