Initial commit

This commit is contained in:
Frederic Branczyk 2018-04-24 15:19:40 +01:00
commit cb59934d1d
No known key found for this signature in database
GPG key ID: 7741A52782A90069
14 changed files with 711 additions and 0 deletions

10
scripts/check_license.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
licRes=$(
for file in $(find . -type f -iname '*.go' ! -path '*/vendor/*'); do
head -n3 "${file}" | grep -Eq "(Copyright|generated|GENERATED)" || echo -e " ${file}"
done;)
if [ -n "${licRes}" ]; then
echo -e "license header checking failed:\n${licRes}"
exit 255
fi

8
scripts/generate-help-txt.sh Executable file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
BINARY_NAME=jb
HELP_FILE=$PWD/_output/help.txt
echo "$ $BINARY_NAME -h" > $HELP_FILE
PATH=$PATH:$PWD/_output/linux/amd64 $BINARY_NAME -h 2>> $HELP_FILE
exit 0