mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-07 22:02:12 +08:00

Automated using the following commands: $ mv src/{dring,jami} $ git grep -l src/dring | xargs sed -i 's,src/dring,src/jami,g' $ git grep -l '#include "dring/' | \ xargs sed -i 's,#include "dring/,#include "jami/,g' $ git grep -l 'dring.h' | xargs sed -i 's,dring.h,jami.h,g' And finally, $ git grep -l 'dring' | xargs sed -i 's,dring,jami,g' $ files=$(find -name '*dring*' | sort) $ for f in $files; do mkdir -p "$(dirname "$f")"; \ mv "$f" "$(echo $f | sed 's/dring/jami/g')"; done To resolve a bad renaming favorably: $ git grep -l -i AlsaCarjami | \ xargs sed -i -E 's/([Aa])lsaCarjami/\1lsaCardRingtone/g' The above renaming command is not perfect, so some hand-tuning was required to complete it. * src/manager.cpp (Manager::ManagerPimpl::retrieveConfigPath): Preserve the dring.yml configuration file name, until we add something to migrate (rename) it to jami.yml. * man/dring.pod: Delete. * bin/dbus/jamid.pod: Move to ... * man/jamid.pod: here. * bin/dbus/meson.build (jamid_targets): Normalize man section to the pre-existing 1 and adjust accordingly. * src/jami/def.h (dring_EXPORTS): Rename to ... (jami_EXPORTS): ... this. change-Id: I9828be6da9c711ab2f22c4d1b9539fea89d7b6fb
32 lines
810 B
Makefile
32 lines
810 B
Makefile
# Global variables
|
|
|
|
src=$(abs_top_srcdir)
|
|
|
|
ASTYLERC="$(top_srcdir)/../astylerc"
|
|
indent="/usr/bin/astyle"
|
|
|
|
RING_DIRTY_REPO ?= $(shell git diff-index --quiet HEAD 2>/dev/null || echo dirty)
|
|
RING_REVISION ?= $(shell git log -1 --format="%h" --abbrev=10 2>/dev/null)
|
|
|
|
# Preprocessor flags
|
|
AM_CPPFLAGS += \
|
|
-I$(src)/src \
|
|
-I$(src)/src/config \
|
|
-I$(src)/src/media \
|
|
-I$(src)/test \
|
|
-I$(src)/src/jami \
|
|
$(SIP_CFLAGS) \
|
|
-DPREFIX=\"$(prefix)\" \
|
|
-DPROGSHAREDIR=\"$(datadir)/jami\" \
|
|
-DENABLE_TRACE \
|
|
-DRING_REVISION=\"$(RING_REVISION)\" \
|
|
-DRING_DIRTY_REPO=\"$(RING_DIRTY_REPO)\" \
|
|
-DPJSIP_MAX_PKT_LEN=8000 \
|
|
-DPJ_AUTOCONF=1
|
|
|
|
indent:
|
|
@echo "Indenting code:"
|
|
if [ -f $(ASTYLERC) ] ; then \
|
|
find $(top_srcdir)/src/ -name \*.cpp -o -name \*.h | xargs $(indent) --options=$(ASTYLERC) ; \
|
|
fi
|