Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Dynamic Exposure
OpenBuildingMap
spearhead
Commits
98288fe0
Commit
98288fe0
authored
Feb 24, 2021
by
Felix Delattre
Browse files
Added initial shell project structure
parent
709dd78d
Changes
3
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
98288fe0
image
:
debian:bullseye-slim
before_script
:
-
apt update -y
-
apt install -y git make shellcheck golang-go
-
export GOPATH="$HOME/go"
-
export PATH="$PATH:$GOPATH/bin"
-
go get -u github.com/mvdan/sh/cmd/shfmt
linters
:
script
:
-
make check
Makefile
0 → 100644
View file @
98288fe0
SOURCES
=
./spearhead
LENGTH
=
96
check
:
$(SOURCES)
shellcheck
-x
$^
shfmt
-i
2
-d
$^
format
:
$(SOURCES)
shfmt
-i
2
-w
$^
spearhead
0 → 100755
View file @
98288fe0
#!/bin/bash
#
# spearhead
# Copyright (C) 2021:
# Helmholtz-Zentrum Potsdam Deutsches GeoForschungsZentrum GFZ
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
# General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see http://www.gnu.org/licenses/.
#######################################
# Main function of this script
# Globals:
# None
# Arguments:
# None
#######################################
function
main
()
{
printf
"Hello world
\n
"
}
# Call main function of the script
main
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment