Skip to content
GitLab
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
hpc
gekkofs
Compare revisions
46cafe39be3d9f6e32948e0c9e494d9c65dd1309 to 0bc9b21a8cfad507f5e0889d1d4dd8f139a1f590
Hide whitespace changes
Inline
Side-by-side
include/global/arithmetic/arithmetic.hpp
View file @
0bc9b21a
...
...
@@ -8,7 +8,22 @@
This software was partially supported by the
ADA-FS project under the SPPEXA project funded by the DFG.
SPDX-License-Identifier: MIT
This file is part of GekkoFS.
GekkoFS is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
GekkoFS 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with GekkoFS. If not, see <https://www.gnu.org/licenses/>.
SPDX-License-Identifier: GPL-3.0-or-later
*/
#ifndef GKFS_GLOBAL_ARITHMETIC_HPP
...
...
include/global/env_util.hpp
View file @
0bc9b21a
...
...
@@ -8,7 +8,22 @@
This software was partially supported by the
ADA-FS project under the SPPEXA project funded by the DFG.
SPDX-License-Identifier: MIT
This file is part of GekkoFS.
GekkoFS is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
GekkoFS 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with GekkoFS. If not, see <https://www.gnu.org/licenses/>.
SPDX-License-Identifier: GPL-3.0-or-later
*/
#ifndef GKFS_COMMON_ENV_UTIL_HPP
...
...
include/global/global_defs.hpp
View file @
0bc9b21a
...
...
@@ -8,7 +8,22 @@
This software was partially supported by the
ADA-FS project under the SPPEXA project funded by the DFG.
SPDX-License-Identifier: MIT
This file is part of GekkoFS.
GekkoFS is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
GekkoFS 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with GekkoFS. If not, see <https://www.gnu.org/licenses/>.
SPDX-License-Identifier: GPL-3.0-or-later
*/
#ifndef GEKKOFS_GLOBAL_DEFS_HPP
...
...
include/global/log_util.hpp
View file @
0bc9b21a
...
...
@@ -8,7 +8,22 @@
This software was partially supported by the
ADA-FS project under the SPPEXA project funded by the DFG.
SPDX-License-Identifier: MIT
This file is part of GekkoFS.
GekkoFS is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
GekkoFS 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with GekkoFS. If not, see <https://www.gnu.org/licenses/>.
SPDX-License-Identifier: GPL-3.0-or-later
*/
#ifndef GEKKOFS_LOG_UITIL_HPP
...
...
include/global/metadata.hpp
View file @
0bc9b21a
...
...
@@ -8,7 +8,22 @@
This software was partially supported by the
ADA-FS project under the SPPEXA project funded by the DFG.
SPDX-License-Identifier: MIT
This file is part of GekkoFS.
GekkoFS is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
GekkoFS 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with GekkoFS. If not, see <https://www.gnu.org/licenses/>.
SPDX-License-Identifier: GPL-3.0-or-later
*/
#ifndef FS_METADATA_H
...
...
include/global/path_util.hpp
View file @
0bc9b21a
...
...
@@ -8,7 +8,22 @@
This software was partially supported by the
ADA-FS project under the SPPEXA project funded by the DFG.
SPDX-License-Identifier: MIT
This file is part of GekkoFS.
GekkoFS is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
GekkoFS 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with GekkoFS. If not, see <https://www.gnu.org/licenses/>.
SPDX-License-Identifier: GPL-3.0-or-later
*/
#ifndef GEKKOFS_PATH_UTIL_HPP
...
...
include/global/rpc/distributor.hpp
View file @
0bc9b21a
...
...
@@ -8,7 +8,22 @@
This software was partially supported by the
ADA-FS project under the SPPEXA project funded by the DFG.
SPDX-License-Identifier: MIT
This file is part of GekkoFS.
GekkoFS is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
GekkoFS 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with GekkoFS. If not, see <https://www.gnu.org/licenses/>.
SPDX-License-Identifier: GPL-3.0-or-later
*/
#ifndef GEKKOFS_RPC_DISTRIBUTOR_HPP
...
...
include/global/rpc/rpc_types.hpp
View file @
0bc9b21a
...
...
@@ -8,7 +8,22 @@
This software was partially supported by the
ADA-FS project under the SPPEXA project funded by the DFG.
SPDX-License-Identifier: MIT
This file is part of GekkoFS.
GekkoFS is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
GekkoFS 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with GekkoFS. If not, see <https://www.gnu.org/licenses/>.
SPDX-License-Identifier: GPL-3.0-or-later
*/
#ifndef LFS_RPC_TYPES_HPP
...
...
include/global/rpc/rpc_util.hpp
View file @
0bc9b21a
...
...
@@ -8,7 +8,22 @@
This software was partially supported by the
ADA-FS project under the SPPEXA project funded by the DFG.
SPDX-License-Identifier: MIT
This file is part of GekkoFS.
GekkoFS is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
GekkoFS 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with GekkoFS. If not, see <https://www.gnu.org/licenses/>.
SPDX-License-Identifier: GPL-3.0-or-later
*/
#ifndef GEKKOFS_GLOBAL_RPC_UTILS_HPP
...
...
scripts/benchmark_check.sh
View file @
0bc9b21a
...
...
@@ -9,10 +9,24 @@
# This software was partially supported by the #
# ADA-FS project under the SPPEXA project funded by the DFG. #
# #
# SPDX-License-Identifier: MIT #
# This file is part of GekkoFS. #
# #
# GekkoFS is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# GekkoFS 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 General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with GekkoFS. If not, see <https://www.gnu.org/licenses/>. #
# #
# SPDX-License-Identifier: GPL-3.0-or-later #
################################################################################
usage_short
()
{
echo
"
usage: benchmark_check.sh [-h] [-d <TESTPATH>]
...
...
scripts/check_format.sh
View file @
0bc9b21a
...
...
@@ -9,10 +9,24 @@
# This software was partially supported by the #
# ADA-FS project under the SPPEXA project funded by the DFG. #
# #
# SPDX-License-Identifier: MIT #
# This file is part of GekkoFS. #
# #
# GekkoFS is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# GekkoFS 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 General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with GekkoFS. If not, see <https://www.gnu.org/licenses/>. #
# #
# SPDX-License-Identifier: GPL-3.0-or-later #
################################################################################
PROJECT_SRC
=
"
$(
pwd
)
/src"
PROJECT_INCLUDE
=
"
$(
pwd
)
/include"
RUN_FORMAT
=
false
...
...
scripts/ci/coverage.sh
View file @
0bc9b21a
...
...
@@ -9,10 +9,24 @@
# This software was partially supported by the #
# ADA-FS project under the SPPEXA project funded by the DFG. #
# #
# SPDX-License-Identifier: MIT #
# This file is part of GekkoFS. #
# #
# GekkoFS is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# GekkoFS 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 General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with GekkoFS. If not, see <https://www.gnu.org/licenses/>. #
# #
# SPDX-License-Identifier: GPL-3.0-or-later #
################################################################################
# default values
export
CCOV_ROOT_DIR
=
"
${
PWD
}
"
export
CCOV_BUILD_DIR
=
"
${
PWD
}
"
...
...
scripts/compile_dep.sh
View file @
0bc9b21a
...
...
@@ -9,10 +9,24 @@
# This software was partially supported by the #
# ADA-FS project under the SPPEXA project funded by the DFG. #
# #
# SPDX-License-Identifier: MIT #
# This file is part of GekkoFS. #
# #
# GekkoFS is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# GekkoFS 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 General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with GekkoFS. If not, see <https://www.gnu.org/licenses/>. #
# #
# SPDX-License-Identifier: GPL-3.0-or-later #
################################################################################
PATCH_DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
PATCH_DIR
=
"
${
PATCH_DIR
}
/patches"
DEPENDENCY
=
""
...
...
@@ -358,6 +372,17 @@ if check_dependency "capstone" "${DEP_CONFIG[@]}"; then
make
-j
"
${
CORES
}
"
install
fi
# build json-c for Margo
if
check_dependency
"json-c"
"
${
DEP_CONFIG
[@]
}
"
;
then
# XXX NOT WORKING
echo
"############################################################ Installing: json-c"
CURR
=
${
SOURCE
}
/json-c
prepare_build_dir
${
CURR
}
cd
${
CURR
}
/build
../configure
--prefix
=
${
INSTALL
}
make
-j
${
CORES
}
install
fi
# build BMI
if
check_dependency
"bmi"
"
${
DEP_CONFIG
[@]
}
"
;
then
if
[[
"
${
NA_LAYER
}
"
==
"bmi"
||
"
${
NA_LAYER
}
"
==
"all"
]]
;
then
...
...
scripts/dl_dep.sh
View file @
0bc9b21a
...
...
@@ -9,10 +9,24 @@
# This software was partially supported by the #
# ADA-FS project under the SPPEXA project funded by the DFG. #
# #
# SPDX-License-Identifier: MIT #
# This file is part of GekkoFS. #
# #
# GekkoFS is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# GekkoFS 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 General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with GekkoFS. If not, see <https://www.gnu.org/licenses/>. #
# #
# SPDX-License-Identifier: GPL-3.0-or-later #
################################################################################
COMMON_CURL_FLAGS
=
"--silent --fail --show-error --location -O"
COMMON_GIT_FLAGS
=
"--quiet --single-branch"
PATCH_DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
...
...
@@ -25,7 +39,7 @@ VERBOSE=false
VALID_DEP_OPTIONS
=
"mogon2 mogon1 ngio direct all ci"
MOGON1_DEPS
=(
"zstd"
"lz4"
"snappy"
"capstone"
"ofi-
verbs
"
"mercury"
"argobots"
"margo"
"rocksdb"
"zstd"
"lz4"
"snappy"
"capstone"
"ofi-
experimental
"
"mercury"
"argobots"
"margo"
"rocksdb"
"syscall_intercept"
"date"
)
...
...
@@ -358,6 +372,11 @@ if check_dependency "capstone" "${DEP_CONFIG[@]}"; then
wgetdeps
"capstone"
"https://github.com/aquynh/capstone/archive/4.0.1.tar.gz"
&
fi
# get json-c for Margo
if
check_dependency
"json-c"
"
${
DEP_CONFIG
[@]
}
"
;
then
wgetdeps
"json-c"
"https://github.com/json-c/json-c/archive/json-c-0.15-20200726.tar.gz"
&
fi
## Direct GekkoFS dependencies
# get BMI
...
...
@@ -370,7 +389,7 @@ fi
# get libfabric
if
[
"
${
NA_LAYER
}
"
==
"ofi"
]
||
[
"
${
NA_LAYER
}
"
==
"all"
]
;
then
if
check_dependency
"ofi-experimental"
"
${
DEP_CONFIG
[@]
}
"
;
then
clonedeps
"libfabric"
"https://github.com/ofiwg/libfabric.git"
""
"-b v1.
9
.1"
&
clonedeps
"libfabric"
"https://github.com/ofiwg/libfabric.git"
""
"-b v1.
11
.1"
&
elif
check_dependency
"ofi-verbs"
"
${
DEP_CONFIG
[@]
}
"
;
then
# libibverbs 1.2.1-1 used on mogon 1i (installed on system) which is linked to libfabric
# libfabric 1.8 random RPCs fail to be send. 1.9 RPC client cannot be started when in an MPI environment
...
...
@@ -381,29 +400,29 @@ if [ "${NA_LAYER}" == "ofi" ] || [ "${NA_LAYER}" == "all" ]; then
fi
if
check_dependency
"psm2"
"
${
DEP_CONFIG
[@]
}
"
;
then
wgetdeps
"psm2"
"https://github.com/
intel
/opa-psm2/archive/PSM2_11.2.
86
.tar.gz"
&
wgetdeps
"psm2"
"https://github.com/
cornelisnetworks
/opa-psm2/archive/PSM2_11.2.
185
.tar.gz"
&
fi
# get Mercury
if
check_dependency
"mercury"
"
${
DEP_CONFIG
[@]
}
"
;
then
clonedeps
"mercury"
"https://github.com/mercury-hpc/mercury"
"
41caa143a07ed179a3149cac4af0dc7aa3f946fd
"
"--recurse-submodules"
&
clonedeps
"mercury"
"https://github.com/mercury-hpc/mercury"
"
3b2934490fbbcc291541e9f417fed120ffc1a04f
"
"--recurse-submodules"
&
fi
# get Argobots
if
check_dependency
"argobots"
"
${
DEP_CONFIG
[@]
}
"
;
then
wgetdeps
"argobots"
"https://github.com/pmodels/argobots/archive/v1.0
rc
1.tar.gz"
&
wgetdeps
"argobots"
"https://github.com/pmodels/argobots/archive/v1.0
.
1.tar.gz"
&
fi
# get Margo
if
check_dependency
"margo"
"
${
DEP_CONFIG
[@]
}
"
;
then
clonedeps
"margo"
"https://
x
git
la
b.c
els.anl.gov/sds/margo.git"
"v0.6.3
"
&
clonedeps
"margo"
"https://git
hu
b.c
om/mochi-hpc/mochi-margo"
"084b61323933a0e014653eecf8f6b66a94196a2d
"
&
fi
# get rocksdb
if
check_dependency
"rocksdb-experimental"
"
${
DEP_CONFIG
[@]
}
"
;
then
wgetdeps
"rocksdb"
"https://github.com/facebook/rocksdb/archive/v6.1
1.4
.tar.gz"
&
wgetdeps
"rocksdb"
"https://github.com/facebook/rocksdb/archive/v6.1
5.5
.tar.gz"
&
elif
check_dependency
"rocksdb"
"
${
DEP_CONFIG
[@]
}
"
;
then
wgetdeps
"rocksdb"
"https://github.com/facebook/rocksdb/archive/v6.
2.2
.tar.gz"
&
wgetdeps
"rocksdb"
"https://github.com/facebook/rocksdb/archive/v6.
11.4
.tar.gz"
&
fi
# get syscall_intercept
...
...
scripts/maintainer-tools/copyright-headers/Dockerfile
View file @
0bc9b21a
...
...
@@ -8,7 +8,22 @@
# This software was partially supported by the #
# ADA-FS project under the SPPEXA project funded by the DFG. #
# #
# SPDX-License-Identifier: MIT #
# This file is part of GekkoFS. #
# #
# GekkoFS is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# GekkoFS 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 General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with GekkoFS. If not, see <https://www.gnu.org/licenses/>. #
# #
# SPDX-License-Identifier: GPL-3.0-or-later #
################################################################################
FROM
ruby:slim
...
...
scripts/maintainer-tools/copyright-headers/gekkofs-posix-template.erb
0 → 100644
View file @
0bc9b21a
Copyright
<%=
eval
(
copyright_years
[
0
])[
:bsc
].
join
(
'-'
)
%>
, Barcelona Supercomputing Center (BSC), Spain
Copyright
<%=
eval
(
copyright_years
[
0
])[
:jgu
].
join
(
'-'
)
%>
, Johannes Gutenberg Universitaet Mainz, Germany
This software was partially supported by the
EC H2020 funded project NEXTGenIO (Project ID: 671951, www.nextgenio.eu).
This software was partially supported by the
ADA-FS project under the SPPEXA project funded by the DFG.
This file is part of GekkoFS' POSIX interface.
GekkoFS' POSIX interface is free software: you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3 of the License,
or (at your option) any later version.
GekkoFS' POSIX interface 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 Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with GekkoFS' POSIX interface. If not, see
<https:
//
www.gnu.org
/
licenses
/>
.
SPDX-License-Identifier: LGPL-3.0-or-later
scripts/maintainer-tools/copyright-headers/gekkofs-syntax.yml
View file @
0bc9b21a
...
...
@@ -8,7 +8,22 @@
# This software was partially supported by the #
# ADA-FS project under the SPPEXA project funded by the DFG. #
# #
# SPDX-License-Identifier: MIT #
# This file is part of GekkoFS. #
# #
# GekkoFS is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# GekkoFS 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 General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with GekkoFS. If not, see <https://www.gnu.org/licenses/>. #
# #
# SPDX-License-Identifier: GPL-3.0-or-later #
################################################################################
ruby
:
...
...
scripts/maintainer-tools/copyright-headers/gekkofs-template.erb
View file @
0bc9b21a
...
...
@@ -7,4 +7,19 @@ EC H2020 funded project NEXTGenIO (Project ID: 671951, www.nextgenio.eu).
This software was partially supported by the
ADA-FS project under the SPPEXA project funded by the DFG.
SPDX-License-Identifier: MIT
This file is part of GekkoFS.
GekkoFS is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
GekkoFS 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with GekkoFS. If not, see
<https:
//
www.gnu.org
/
licenses
/>
.
SPDX-License-Identifier: GPL-3.0-or-later
scripts/maintainer-tools/copyright-headers/manage-headers.sh
View file @
0bc9b21a
...
...
@@ -9,10 +9,24 @@
# This software was partially supported by the #
# ADA-FS project under the SPPEXA project funded by the DFG. #
# #
# SPDX-License-Identifier: MIT #
# This file is part of GekkoFS. #
# #
# GekkoFS is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# GekkoFS 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 General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with GekkoFS. If not, see <https://www.gnu.org/licenses/>. #
# #
# SPDX-License-Identifier: GPL-3.0-or-later #
################################################################################
PROJECT_DIR
=
$(
readlink
-f
.
)
PROJECT_CONFIG_FILE
=
"project.config"
DOCKER_DIR
=
"/usr/src"
...
...
@@ -42,6 +56,8 @@ The following commands can be used:
Additionally, the following options are supported:
-p, --project-dir DIR The root directory of the project's target files.
Defaults to '
\$
PWD', the current directory.
-c, --config-file FILE The configuration file used for this project.
Defaults to '
\$
PWD/project.config'.
-s, --show-targets Don't actually execute, just show which targets would
be considered.
-n, --dry-run Don't actually execute, just show what would happen.
...
...
@@ -58,8 +74,8 @@ function parse_args() {
# -l is for long options with double dash like --version
# the comma separates different long options
options
=
$(
getopt
-l
\
"add,remove,help,project-dir:,dry-run,show-targets"
\
-o
"arhp:ns"
--
"
$@
"
)
"add,remove,help,project-dir:,
config-file:,
dry-run,show-targets"
\
-o
"arhp:
c:
ns"
--
"
$@
"
)
# set --:
# If no arguments follow this option, then the positional parameters are
...
...
@@ -95,6 +111,21 @@ function parse_args() {
PROJECT_DIR
=
$(
readlink
-f
"
$1
"
)
;;
-c
|
--config-file
)
shift
if
[[
-z
"
$1
"
]]
;
then
echo
"option '
${
OPT
}
' requires an argument"
exit
1
fi
if
!
[[
-f
$1
]]
;
then
echo
"file '
${
1
}
' does not exist."
exit
1
fi
PROJECT_CONFIG_FILE
=
$(
readlink
-f
"
$1
"
)
;;
-n
|
--dry-run
)
EXTRA_PROG_ARGS+
=(
"-n"
)
;;
...
...
scripts/maintainer-tools/copyright-headers/posix.config
0 → 100644
View file @
0bc9b21a
# vi: filetype=sh
################################################################################
## Variables to control how the header is generated
################################################################################
# COPYRIGHT_SOFTWARE="gekkofs"
# COPYRIGHT_DESCRIPTION="an ephemeral distributed file system for HPC applications"
COPYRIGHT_YEARS
=
"{:bsc => [2018, 2021], :jgu => [2015, 2021]}"
COPYRIGHT_LICENSE
=
"gekkofs-posix-template.erb"
COPYRIGHT_SYNTAX
=
"gekkofs-syntax.yml"
COPYRIGHT_WORD_WRAP
=
80
################################################################################
## Variables to control which files are considered
## N.B: these are **glob patterns**, NOT regular expressions
################################################################################
INCLUDE_PATTERNS
=(
"*.c"
"*.h"
"*.cpp"
"*.hpp"
"*.hpp.in"
"*.am"
"*.ac"
"*.py"
"*.sh"
"*.mk"
"*CMakeLists.txt"
"*.cmake"
"*.yml"
"*.erb"
"*.ini.in"
"*.py.in"
"*Dockerfile"
)
EXCLUDE_PATTERNS
=(
"*.git"
"*.gitlab-ci.yml"
"*build*"
"*external?*"
"*spdlog*"
"*ctypesgen*"
"./tests/catch.hpp"
"*agios.conf"
"*.diff"
"*.erb"
"*.coverage-exclusions"
"*.project.config"
)
Prev
1
2
3
4
5
6
7
8
…
10
Next