-
Notifications
You must be signed in to change notification settings - Fork 7
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 #41 from DLR-SC/integration
Release 0.4.0
- Loading branch information
Showing
43 changed files
with
472 additions
and
228 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/bin/bash | ||
|
||
#/******************************************************************************* | ||
# * Copyright (c) 2008-2019 German Aerospace Center (DLR), Simulation and Software Technology, Germany. | ||
# * | ||
# * This program and the accompanying materials are made available under the | ||
# * terms of the Eclipse Public License 2.0 which is available at | ||
# * http://www.eclipse.org/legal/epl-2.0. | ||
# * | ||
# * SPDX-License-Identifier: EPL-2.0 | ||
# *******************************************************************************/ | ||
|
||
# -------------------------------------------------------------------------- | ||
# This script handles setting an ssh key and using a pasword that was given by command line | ||
# -------------------------------------------------------------------------- | ||
|
||
COMMAND=$0 | ||
|
||
printUsage() { | ||
echo "usage: ${COMMAND} -k <keyfile> -p <password>" | ||
echo "" | ||
echo "Options:" | ||
echo " -k, --keyfile <keyfile> The keyfile to be added to ssh agent." | ||
echo " -p, --password <password> The password to be used when adding the keyfile." | ||
echo " -h, --help Show this help." | ||
echo "" | ||
echo "Copyright by DLR (German Aerospace Center)" | ||
} | ||
|
||
|
||
while [ "$1" != "" ]; do | ||
case $1 in | ||
-k | --keyfile ) shift | ||
KEY_FILE=$1 | ||
;; | ||
-p | --password ) shift | ||
PASSWORD=$1 | ||
;; | ||
-h | --help ) printUsage | ||
exit | ||
;; | ||
* ) printUsage | ||
exit 1 | ||
esac | ||
shift | ||
done | ||
|
||
expect << EOF | ||
spawn ssh-add $KEY_FILE | ||
expect "Enter passphrase" | ||
send "$PASSWORD\r" | ||
expect eof | ||
EOF |
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,12 +1,12 @@ | ||
<?xml version="1.0"?> | ||
|
||
<!DOCTYPE suppressions PUBLIC | ||
"-//Puppy Crawl//DTD Suppressions 1.1//EN" | ||
"http://www.puppycrawl.com/dtds/suppressions_1_1.dtd"> | ||
|
||
<suppressions> | ||
<suppress files="[\\/]src-gen[\\/]" checks="[a-zA-Z0-9]*"/> | ||
<suppress files="[\\/]src-dmf[\\/]" checks="[a-zA-Z0-9]*"/> | ||
<suppress files="[\\/]src/gen/java[\\/]" checks="[a-zA-Z0-9]*"/> | ||
<suppress files="[\\/]xtend-gen[\\/]" checks="[a-zA-Z0-9]*"/> | ||
<?xml version="1.0"?> | ||
|
||
<!DOCTYPE suppressions PUBLIC | ||
"-//Puppy Crawl//DTD Suppressions 1.1//EN" | ||
"http://www.puppycrawl.com/dtds/suppressions_1_1.dtd"> | ||
|
||
<suppressions> | ||
<suppress files="[\\/]src-gen[\\/]" checks="[a-zA-Z0-9]*"/> | ||
<suppress files="[\\/]src-dmf[\\/]" checks="[a-zA-Z0-9]*"/> | ||
<suppress files="[\\/]src/gen/java[\\/]" checks="[a-zA-Z0-9]*"/> | ||
<suppress files="[\\/]xtend-gen[\\/]" checks="[a-zA-Z0-9]*"/> | ||
</suppressions> |
Oops, something went wrong.