Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
a3a0ae847b |
6 changed files with 51 additions and 126 deletions
67
.gitignore
vendored
67
.gitignore
vendored
|
|
@ -1,55 +1,16 @@
|
||||||
*.a
|
|
||||||
*.dep.mk
|
|
||||||
*.dist
|
|
||||||
*.done
|
|
||||||
*.jw-secret
|
|
||||||
*.jw-secret-file
|
|
||||||
*.ldscript
|
|
||||||
*.o
|
|
||||||
*.old
|
|
||||||
*.orig
|
|
||||||
*.out
|
|
||||||
*.pc
|
|
||||||
*.pyc
|
|
||||||
*.rep
|
|
||||||
*.secret
|
|
||||||
*.so
|
|
||||||
*.so.*
|
|
||||||
*.swp
|
|
||||||
*_generated_*
|
|
||||||
*tmp*
|
|
||||||
*~
|
|
||||||
-test-out.txt
|
|
||||||
.cache-project.mk
|
|
||||||
.exrc
|
|
||||||
.feedfs_history
|
|
||||||
.gdb_history
|
|
||||||
.jw-agit
|
|
||||||
.mypy_cache
|
|
||||||
.ruff_cache
|
|
||||||
__init__.py
|
|
||||||
__pycache__
|
|
||||||
bin/*.bat
|
|
||||||
bin/*.pl
|
|
||||||
bin/*.pm
|
|
||||||
bin/*.py
|
|
||||||
bin/*.sh
|
|
||||||
bin/*.tcl
|
|
||||||
conftest.py
|
|
||||||
core
|
|
||||||
dist
|
dist
|
||||||
ld-*.conf
|
bin/*.sh
|
||||||
local.conf
|
bin/*.py
|
||||||
local.mk
|
*.done
|
||||||
local.mk
|
*.dist
|
||||||
local.yaml
|
*.out
|
||||||
make/*.pc
|
test-out.txt
|
||||||
mkspec.sh
|
make/.cache.mk
|
||||||
pr-descr*.txt
|
make/jw-pkg.pc
|
||||||
pre-local.mk
|
minimal-to-master.sh
|
||||||
pyproject.toml
|
pkg-build.dist
|
||||||
pyrightconfig.json
|
pkgconfig/
|
||||||
!*.jw-tmpl
|
rebase.sh
|
||||||
!*.tmpl
|
__pycache__
|
||||||
|
.cache-project.mk
|
||||||
.cache-projects.mk
|
.cache-projects.mk
|
||||||
make/ssh-wrapper.sh
|
|
||||||
|
|
|
||||||
4
Makefile
4
Makefile
|
|
@ -4,16 +4,12 @@ PKG_UPLOAD_URLPREFIX ?= rsync_ssh://$(JANWARE_USER)@pkg.janware.com:/srv/da
|
||||||
all:
|
all:
|
||||||
all: cache-projects
|
all: cache-projects
|
||||||
|
|
||||||
GITIGNORE_PATTERNS_TOP =
|
|
||||||
GITIGNORE_PATTERNS_END = .cache-projects.mk make/ssh-wrapper.sh
|
|
||||||
|
|
||||||
include $(TOPDIR)/make/proj.mk
|
include $(TOPDIR)/make/proj.mk
|
||||||
include $(JWBDIR)/make/topdir.mk
|
include $(JWBDIR)/make/topdir.mk
|
||||||
include $(JWBDIR)/make/srcdist.mk
|
include $(JWBDIR)/make/srcdist.mk
|
||||||
include $(JWBDIR)/make/git-cvs-bridge.mk
|
include $(JWBDIR)/make/git-cvs-bridge.mk
|
||||||
include $(JWBDIR)/make/py-topdir.mk
|
include $(JWBDIR)/make/py-topdir.mk
|
||||||
|
|
||||||
|
|
||||||
clean: clean.pkgconfig
|
clean: clean.pkgconfig
|
||||||
clean.pkgconfig:
|
clean.pkgconfig:
|
||||||
rm -rf pkgconfig
|
rm -rf pkgconfig
|
||||||
|
|
|
||||||
|
|
@ -1,55 +0,0 @@
|
||||||
{top}
|
|
||||||
*.a
|
|
||||||
*.dep.mk
|
|
||||||
*.dist
|
|
||||||
*.done
|
|
||||||
*.jw-secret
|
|
||||||
*.jw-secret-file
|
|
||||||
*.ldscript
|
|
||||||
*.o
|
|
||||||
*.old
|
|
||||||
*.orig
|
|
||||||
*.out
|
|
||||||
*.pc
|
|
||||||
*.pyc
|
|
||||||
*.rep
|
|
||||||
*.secret
|
|
||||||
*.so
|
|
||||||
*.so.*
|
|
||||||
*.swp
|
|
||||||
*_generated_*
|
|
||||||
*tmp*
|
|
||||||
*~
|
|
||||||
-test-out.txt
|
|
||||||
.cache-project.mk
|
|
||||||
.exrc
|
|
||||||
.feedfs_history
|
|
||||||
.gdb_history
|
|
||||||
.jw-agit
|
|
||||||
.mypy_cache
|
|
||||||
.ruff_cache
|
|
||||||
__init__.py
|
|
||||||
__pycache__
|
|
||||||
bin/*.bat
|
|
||||||
bin/*.pl
|
|
||||||
bin/*.pm
|
|
||||||
bin/*.py
|
|
||||||
bin/*.sh
|
|
||||||
bin/*.tcl
|
|
||||||
conftest.py
|
|
||||||
core
|
|
||||||
dist
|
|
||||||
ld-*.conf
|
|
||||||
local.conf
|
|
||||||
local.mk
|
|
||||||
local.mk
|
|
||||||
local.yaml
|
|
||||||
make/*.pc
|
|
||||||
mkspec.sh
|
|
||||||
pr-descr*.txt
|
|
||||||
pre-local.mk
|
|
||||||
pyproject.toml
|
|
||||||
pyrightconfig.json
|
|
||||||
!*.jw-tmpl
|
|
||||||
!*.tmpl
|
|
||||||
{end}
|
|
||||||
|
|
@ -19,7 +19,8 @@ clean: clean.topdir
|
||||||
clean.topdir: clean.py-check
|
clean.topdir: clean.py-check
|
||||||
|
|
||||||
pyproject.toml:
|
pyproject.toml:
|
||||||
$(JW_PKG_TMPL_UPDATE) $@ --field mypypath='$(MYPY_PATH_DIRECTIVE)' $(PROJECT) > $@.tmp
|
$(PYTHON) $(JWB_SCRIPT_DIR)/jw-pkg.py -p $(PROJECTS_DIR) -t $(TOPDIR) --topdir-format unaltered projects create-file --format tmpl \
|
||||||
|
--template-name $@ --search-path $(JW_PKG_CONF_BASE_DIR)/templates --field mypypath='$(MYPY_PATH_DIRECTIVE)' $(PROJECT) > $@.tmp
|
||||||
mv $@.tmp $@
|
mv $@.tmp $@
|
||||||
|
|
||||||
pyrightconfig.json:
|
pyrightconfig.json:
|
||||||
|
|
|
||||||
|
|
@ -95,13 +95,6 @@ ifneq ($(SUBDIRS_TO_ITERATE),)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
JW_PKG_TMPL_SEARCH_PATH ?= $(JW_PKG_CONF_BASE_DIR)/templates
|
|
||||||
JW_PKG_TMPL_UPDATE ?= $(PYTHON) $(JWB_SCRIPT_DIR)/jw-pkg.py -p $(PROJECTS_DIR) -t $(TOPDIR) --topdir-format unaltered \
|
|
||||||
projects create-file --format tmpl --search-path $(subst $(space),:,$(JW_PKG_TMPL_SEARCH_PATH)) --template-name
|
|
||||||
|
|
||||||
GITIGNORE_PATTERNS_TOP ?= $(PROJECT)
|
|
||||||
GITIGNORE_PATTERNS_END ?= $(addprefix !,$(shell git ls-files 2>/dev/null | grep "\(\b$(PROJECT)\b\|__init__.py\)" | xargs))
|
|
||||||
|
|
||||||
all: topdir config
|
all: topdir config
|
||||||
test: all
|
test: all
|
||||||
|
|
||||||
|
|
@ -314,10 +307,3 @@ Makefile: ;
|
||||||
%: $(TD_COPY_SRC)/% $$(foreach path,$$(TD_COPY_SRC_PATH),$$(wildcard $$(addprefix $$(path)/,$$@))) $$(wildcard $$@.*)
|
%: $(TD_COPY_SRC)/% $$(foreach path,$$(TD_COPY_SRC_PATH),$$(wildcard $$(addprefix $$(path)/,$$@))) $$(wildcard $$@.*)
|
||||||
cat $^ > $@.tmp
|
cat $^ > $@.tmp
|
||||||
mv $@.tmp $@
|
mv $@.tmp $@
|
||||||
|
|
||||||
gitignore:
|
|
||||||
$(JW_PKG_TMPL_UPDATE) gitignore --field-keys top,end \
|
|
||||||
$(addprefix --field top=,$(GITIGNORE_PATTERNS_TOP)) \
|
|
||||||
$(addprefix --field end=,$(GITIGNORE_PATTERNS_END)) \
|
|
||||||
--field-separator='%n' $(PROJECT) | grep -v '^[[:space:]]*$$' > .gitignore.tmp
|
|
||||||
mv .gitignore.tmp .gitignore
|
|
||||||
|
|
|
||||||
|
|
@ -97,6 +97,42 @@ cat_make_project_conf()
|
||||||
EOT
|
EOT
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cat_gitignore()
|
||||||
|
{
|
||||||
|
cat <<-EOT
|
||||||
|
*.done
|
||||||
|
*.dist
|
||||||
|
*.dep.mk
|
||||||
|
.cache-project.mk
|
||||||
|
*.o
|
||||||
|
*.so.*
|
||||||
|
*.so
|
||||||
|
*.a
|
||||||
|
*.rep
|
||||||
|
ld-*.conf
|
||||||
|
*.ldscript
|
||||||
|
*.pc
|
||||||
|
$name
|
||||||
|
*_generated_*
|
||||||
|
*.secret
|
||||||
|
local.mk
|
||||||
|
.gdb_history
|
||||||
|
dist
|
||||||
|
mkspec.sh
|
||||||
|
*.out
|
||||||
|
*.orig
|
||||||
|
*.old
|
||||||
|
.feedfs_history
|
||||||
|
.exrc
|
||||||
|
*.swp
|
||||||
|
*tmp*
|
||||||
|
__init__.py
|
||||||
|
__pycache__
|
||||||
|
pyproject.toml
|
||||||
|
pyrightconfig.json
|
||||||
|
EOT
|
||||||
|
}
|
||||||
|
|
||||||
# ---------------------- here we go
|
# ---------------------- here we go
|
||||||
|
|
||||||
myname=`basename $0`
|
myname=`basename $0`
|
||||||
|
|
@ -157,7 +193,7 @@ cat_make_Makefile > make/Makefile
|
||||||
cat_VERSION > VERSION
|
cat_VERSION > VERSION
|
||||||
cat_make_proj_mk > make/proj.mk
|
cat_make_proj_mk > make/proj.mk
|
||||||
cat_make_project_conf > make/project.conf
|
cat_make_project_conf > make/project.conf
|
||||||
make gitignore
|
cat_gitignore > .gitignore
|
||||||
|
|
||||||
log Successfully created project template \"$name\".
|
log Successfully created project template \"$name\".
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue