-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #212 from BenediktMKuehne/pipdev
Pipdev
- Loading branch information
Showing
4 changed files
with
42 additions
and
10 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
@@ -1 +1 @@ | ||
0.1-02a5f8d9 | ||
0.1-3040c41a |
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,30 @@ | ||
#!/bin/bash | ||
# EMBArk - The firmware security scanning environment | ||
# | ||
# Copyright 2024 Siemens Energy AG | ||
# | ||
# EMBArk comes with ABSOLUTELY NO WARRANTY. | ||
# | ||
# EMBArk is licensed under MIT | ||
# | ||
# Author(s): Benedikt Kuehne | ||
|
||
# Description: Automates updating the pipfile | ||
|
||
# 1. find out which installation | ||
INSTALL="" | ||
|
||
INSTALL="deploy" | ||
|
||
if grep -q "EMBARK_INSTALL=dev" ./.env ; then | ||
INSTALL="dev" | ||
fi | ||
|
||
# 2. update pipfile | ||
if [[ "${INSTALL}" == "dev" ]]; then | ||
MYSQLCLIENT_LDFLAGS='-L/usr/mysql/lib -lmysqlclient -lssl -lcrypto -lresolv' MYSQLCLIENT_CFLAGS='-I/usr/include/mysql/' PIPENV_VENV_IN_PROJECT=1 pipenv update --dev | ||
else | ||
echo "This is not a developer setup...still trying to update" | ||
MYSQLCLIENT_LDFLAGS='-L/usr/mysql/lib -lmysqlclient -lssl -lcrypto -lresolv' MYSQLCLIENT_CFLAGS='-I/usr/include/mysql/' PIPENV_VENV_IN_PROJECT=1 pipenv update | ||
fi | ||
# push to web-dir if available |
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