Skip to content
This repository was archived by the owner on Jan 7, 2023. It is now read-only.

Commit 2a1d2ff

Browse files
committed
new file: .gitignore
new file: .pre-commit-config.yaml new file: CMakeLists.txt new file: Config/.distfiles new file: Config/clean.mk new file: Config/config.mk new file: Config/config_vats.mk new file: Config/definitions.mk.in new file: Config/version.mk new file: LICENSE new file: README.md new file: VATS/.distfiles new file: VATS/A01input.ztst new file: VATS/A02input.ztst new file: VATS/B01output.ztst new file: VATS/Makefile.in new file: VATS/README.md new file: VATS/__error1.def new file: VATS/runtests.zsh new file: VATS/vtest.conf new file: VATS/zsh-valgrind-parse.cmd new file: VATSMakefile.in new file: aclocal.m4 new file: autogen.sh new file: cmake/Modules/compiler_req.cmake new file: cmake/Modules/uninstall.cmake new file: cmake/Modules/use_cxx11.cmake new file: coding_functions.cpp new file: coding_functions.h new file: config.guess new file: config.sub new file: configure.ac new file: install-sh new file: main.cpp new file: math_functions.cpp new file: math_functions.h new file: optionparser.h new file: util.cpp new file: util.h
1 parent 37bfb33 commit 2a1d2ff

39 files changed

Lines changed: 10513 additions & 0 deletions

.gitignore

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
### CMake
2+
CMakeCache.txt
3+
CMakeFiles
4+
CMakeScripts
5+
Makefile
6+
cmake_install.cmake
7+
install_manifest.txt
8+
9+
### C++
10+
# Compiled Object files
11+
*.slo
12+
*.lo
13+
*.o
14+
*.obj
15+
16+
# Precompiled Headers
17+
*.gch
18+
*.pch
19+
20+
# Compiled Dynamic libraries
21+
*.so
22+
*.dylib
23+
*.dll
24+
25+
# Fortran module files
26+
*.mod
27+
28+
# Compiled Static libraries
29+
*.lai
30+
*.la
31+
*.a
32+
*.lib
33+
34+
# Executables
35+
*.exe
36+
*.out
37+
*.app

.pre-commit-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v4.0.1
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
- id: check-yaml
10+
- id: check-added-large-files

CMakeLists.txt

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
cmake_minimum_required( VERSION 2.8.12 )
2+
project( cgiturl )
3+
4+
set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules" )
5+
6+
include( FindPkgConfig )
7+
include( compiler_req )
8+
include( use_cxx11 )
9+
10+
compiler_req() # test required compiler versions
11+
use_cxx11() # configure c++11 usage
12+
13+
# Find includes in corresponding build directories
14+
set( CMAKE_INCLUDE_CURRENT_DIR ON )
15+
16+
#
17+
# Follow source files, headers
18+
#
19+
20+
SET( SRCS
21+
main.cpp
22+
coding_functions.cpp
23+
math_functions.cpp
24+
util.cpp
25+
)
26+
27+
28+
if(NOT DEFINED ENV{GITURL_NO_CGITURL})
29+
add_executable( cgiturl ${SRCS} )
30+
endif()
31+
32+
if(NOT DEFINED ENV{GITURL_NO_CGITURL})
33+
install( TARGETS cgiturl RUNTIME DESTINATION bin )
34+
endif()
35+
36+
add_custom_target( uninstall "${CMAKE_COMMAND}" -P "${CMAKE_MODULE_PATH}/uninstall.cmake" )

Config/.distfiles

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
DISTFILES_SRC='
2+
'

Config/clean.mk

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# dnl License -> cgiturl.git/LICENSE
2+
3+
mostlyclean: mostlyclean-recursive mostlyclean-here
4+
clean: clean-recursive clean-here
5+
distclean: distclean-recursive distclean-here
6+
realclean: realclean-recursive realclean-here
7+
8+
mostlyclean-here:
9+
clean-here: mostlyclean-here
10+
distclean-here: clean-here
11+
realclean-here: distclean-here
12+
13+
mostlyclean-recursive clean-recursive distclean-recursive realclean-recursive:
14+
@subdirs='$(SUBDIRS)'; if test -n "$$subdirs"; then \
15+
ctarget=`echo $@ | sed 's/-recursive//'`; \
16+
for subdir in $$subdirs; do \
17+
( cd $$subdir && $(MAKE) $(MAKEDEFS) $$ctarget ) || exit 1; \
18+
done; \
19+
fi

Config/config.mk

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# License -> cgiturl.git/LICENSE
2+
3+
config: Makefile
4+
@subdirs='$(SUBDIRS)'; for subdir in $$subdirs; do \
5+
( cd $$subdir && $(MAKE) $(MAKEDEFS) $@ ) || exit 1; \
6+
done
7+
8+
CONFIG_INCS = \
9+
$(dir_top)/Config/definitions.mk $(dir_top)/Config/version.mk \
10+
$(dir_top)/Config/clean.mk $(dir_top)/Config/config.mk
11+
12+
Makefile: Makefile.in $(dir_top)/config.status $(CONFIG_INCS)
13+
cd $(dir_top) && $(SHELL) ./config.status `echo $(subdir)/$@ | sed 's%^./%%'`
14+
15+
$(dir_top)/Config/definitions.mk: $(top_sdir)/Config/definitions.mk.in $(dir_top)/config.status
16+
cd $(dir_top) && $(SHELL) ./config.status Config/definitions.mk

Config/config_vats.mk

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# License -> cgiturl.git/LICENSE
2+
3+
config: VATSMakefile
4+
@subdirs='$(SUBDIRS)'; for subdir in $$subdirs; do \
5+
( cd $$subdir && $(MAKE) $(MAKEDEFS) $@ ) || exit 1; \
6+
done
7+
8+
CONFIG_INCS = \
9+
$(dir_top)/Config/definitions.mk $(dir_top)/Config/version.mk \
10+
$(dir_top)/Config/clean.mk $(dir_top)/Config/config.mk
11+
12+
VATSMakefile: VATSMakefile.in $(dir_top)/config.status $(CONFIG_INCS)
13+
cd $(dir_top) && $(SHELL) ./config.status `echo $(subdir)/$@ | sed 's%^./%%'`
14+
15+
$(dir_top)/Config/definitions.mk: $(top_sdir)/Config/definitions.mk.in $(dir_top)/config.status
16+
cd $(dir_top) && $(SHELL) ./config.status Config/definitions.mk

Config/definitions.mk.in

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# License -> cgiturl.git/LICENSE
2+
3+
SHELL = /bin/sh
4+
@SET_MAKE@
5+
EXEEXT = @EXEEXT@
6+
7+
# prefix directories
8+
prefix = @prefix@
9+
exec_prefix = @exec_prefix@
10+
bindir = @bindir@
11+
libdir = @libdir@
12+
infodir = @infodir@
13+
mandir = @mandir@
14+
datarootdir = @datarootdir@
15+
datadir = @datadir@
16+
MODDIR = $(libdir)/VATS/$(VERSION)
17+
18+
# compiler
19+
CC = @CC@
20+
CPP = @CPP@
21+
CPPFLAGS = @CPPFLAGS@
22+
DEFS = @DEFS@
23+
CFLAGS = @CFLAGS@
24+
LDFLAGS = @LDFLAGS@
25+
LIBS = @LIBS@
26+
27+
# utils
28+
AWK = @AWK@
29+
30+
# install program
31+
INSTALL_PROGRAM = @INSTALL_PROGRAM@
32+
INSTALL_DATA = @INSTALL_DATA@
33+
34+
# passed to recursive makes in subdirectories
35+
MAKEDEFS = \
36+
prefix='$(prefix)' exec_prefix='$(exec_prefix)' bindir='$(bindir)' \
37+
libdir='$(libdir)' datadir='$(datadir)' mandir='$(mandir)' infodir='$(infodir)' \
38+
MODDIR='$(MODDIR)' \
39+
CC='$(CC)' CPPFLAGS='$(CPPFLAGS)' DEFS='$(DEFS)' CFLAGS='$(CFLAGS)' \
40+
LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' \
41+
AWK='$(AWK)'
42+
43+
# to override built-in suffix list
44+
.SUFFIXES:
45+
46+
# no support for parallel build (pmake, gmake)
47+
.NOTPARALLEL:
48+
49+
# no support for parallel build (dmake)
50+
.NO_PARALLEL:

Config/version.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# License -> cgiturl.git/LICENSE
2+
3+
VERSION=0.9
4+
VERSION_DATE='June 16, 2017'

0 commit comments

Comments
 (0)