mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
projects-dir.mk: Add support for listing all versioned files
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
3995287a46
commit
fd16c59809
1 changed files with 16 additions and 1 deletions
|
|
@ -76,6 +76,7 @@ PURGE_SH = /bin/bash $(firstword $(wildcard $(MOD_SCRIPT_DIR)/purge
|
|||
RELEASE_SH = /bin/bash $(firstword $(wildcard $(MOD_SCRIPT_DIR)/build-release.sh /opt/jw-build/bin/build-release.sh) release-not-found)
|
||||
PKG_MANAGER_SH ?= /bin/bash $(firstword $(wildcard $(MOD_SCRIPT_DIR)/pkg-manager.sh /opt/jw-build/bin/pkg-manager.sh) pkg-manager-not-found)
|
||||
CREATE_PROJECT_SH ?= /bin/bash $(firstword $(wildcard $(MOD_SCRIPT_DIR)/jw-build-create-project.sh /opt/jw-build/bin/jw-build-create-project.sh) jw-build-create-project-not-found)
|
||||
LIST_VCS_FILES = /bin/bash $(firstword $(wildcard $(MOD_SCRIPT_DIR)/list-cvs-files.sh /opt/jw-build/bin/list-cvs-files.sh) list-cvs-files-not-found)
|
||||
BROWSER ?= firefox
|
||||
GIT_SRV_ADMIN_SH = JW_BUILD_SSH_EXTRA_OPTS="$(JW_BUILD_SSH_EXTRA_OPTS)" $(GIT_SSH) $(JANWARE_USER)@git.jannet.de /opt/jw-build/bin/git-srv-admin.sh
|
||||
CVS_ADMIN_SH = JW_BUILD_SSH_EXTRA_OPTS="$(JW_BUILD_SSH_EXTRA_OPTS)" $(GIT_SSH) $(JANWARE_USER)@git.jannet.de /opt/jw-build/bin/cvs-admin.sh
|
||||
|
|
@ -246,7 +247,21 @@ clone.done: ssh-wrapper.sh
|
|||
$(PGIT) clone
|
||||
touch $@
|
||||
|
||||
loc:
|
||||
list-files:
|
||||
@for p in $(PROJECTS); do \
|
||||
$(LIST_VCS_FILES) -nf $$p | sed "s/^/$$p\//" | \
|
||||
xargs realpath --relative-to=. \
|
||||
done
|
||||
|
||||
list-text-files:
|
||||
@make --no-print-directory list-files | xargs file -N | grep ":.*text" | cut -d: -f1
|
||||
|
||||
loc-all:
|
||||
@make --no-print-directory list-text-files \
|
||||
grep -v "iow-standalone\|jux3\|ntv2/contrib\|\.dia$$\|\.dat\$$\|bootsrap\.css\|mpegplayer/contrib\|gitweb.cgi" | \
|
||||
xargs wc -l
|
||||
|
||||
find-code-files:
|
||||
find . -name '*.c' -o -name '*.cpp' -o -name '*.h' \
|
||||
-o -name Makefile -o -name '*.mk' \
|
||||
-o -name '*.sh' -o -name '*.pl' -o -name '*.py' \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue