Compare commits

...

3 Commits

Author SHA1 Message Date
Bartek Kryza
29ad94a13c Added autocomplete scripts to Fedora packages 2023-10-22 16:34:23 +02:00
Bartek Kryza
ad4363acaa Added autocomplete scripts to Ubuntu packages 2023-10-22 14:40:24 +02:00
Bartek Kryza
ce754086ee Merge pull request #197 from bkryza/add-message-comments-in-sequence-diagrams
Add message comments in sequence diagrams
2023-10-21 22:21:07 +02:00
15 changed files with 25 additions and 35 deletions

View File

@@ -1,5 +1,6 @@
# CHANGELOG # CHANGELOG
### 0.4.1
* Enabled manual call expression injection through comments (#196) * Enabled manual call expression injection through comments (#196)
* Added support for generating sequence diagram notes from comments (#194) * Added support for generating sequence diagram notes from comments (#194)
* Added Bash and Zsh autocomplete scripts (#193) * Added Bash and Zsh autocomplete scripts (#193)

View File

@@ -38,7 +38,7 @@ PROJECT_NAME = "clang-uml"
# could be handy for archiving the generated documentation or if some version # could be handy for archiving the generated documentation or if some version
# control system is used. # control system is used.
PROJECT_NUMBER = 0.4.0 PROJECT_NUMBER = 0.4.1
# Using the PROJECT_BRIEF tag one can provide an optional one line description # Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a # for a project that appears at the top of each page and should give viewer a

View File

@@ -4,7 +4,7 @@
[![Build status](https://github.com/bkryza/clang-uml/actions/workflows/build.yml/badge.svg)](https://github.com/bkryza/clang-uml/actions) [![Build status](https://github.com/bkryza/clang-uml/actions/workflows/build.yml/badge.svg)](https://github.com/bkryza/clang-uml/actions)
[![Coverage](https://codecov.io/gh/bkryza/clang-uml/branch/master/graph/badge.svg)](https://codecov.io/gh/bkryza/clang-uml) [![Coverage](https://codecov.io/gh/bkryza/clang-uml/branch/master/graph/badge.svg)](https://codecov.io/gh/bkryza/clang-uml)
[![Version](https://img.shields.io/badge/version-0.4.0-blue)](https://github.com/bkryza/clang-uml/releases) [![Version](https://img.shields.io/badge/version-0.4.1-blue)](https://github.com/bkryza/clang-uml/releases)
[![Version](https://img.shields.io/badge/LLVM-12,13,14,15,16,17-orange)](https://github.com/bkryza/clang-uml/releases) [![Version](https://img.shields.io/badge/LLVM-12,13,14,15,16,17-orange)](https://github.com/bkryza/clang-uml/releases)
[![Doxygen](https://img.shields.io/badge/Docs-Doxygen-gainsboro)](https://clang-uml.github.io) [![Doxygen](https://img.shields.io/badge/Docs-Doxygen-gainsboro)](https://clang-uml.github.io)

View File

@@ -184,18 +184,19 @@ installed manually. The completion scripts are available in directory:
* [`packaging/autocomplete`](./packaging/autocomplete) * [`packaging/autocomplete`](./packaging/autocomplete)
#### Bash #### Bash
The `clang-uml.bash-completion` script can be either directly loaded to the The `clang-uml` script can be either directly loaded to the
current Bash session using: current Bash session using:
```shell ```shell
source clang-uml.bash-completion source clang-uml
``` ```
or the script can be copied to the `/etc/bash_completion.d` on Linux or or the script can be copied to `/usr/share/bash-completion/completions/`
to `/usr/local/etc/bash_completion.d` on `macos` with `Homebrew`. or `/etc/bash_completion.d` on Linux or to `/usr/local/etc/bash_completion.d` on
`macos` with `Homebrew`.
```shell ```shell
sudo cp clang-uml.bash-completion /etc/bash_completion.d/clang-uml sudo cp packaging/autocomplete/clang-uml /usr/share/bash-completion/completions/
``` ```
Make sure autocompletion is enabled in your `~/.bashrc` or `~/.bash_profile`: Make sure autocompletion is enabled in your `~/.bashrc` or `~/.bash_profile`:

View File

@@ -119,9 +119,9 @@ deb: _BUILD/$(SOURCE_ARCHIVE_DEB)
#mk-origtargz ../$(NAME)-$(VERSION)-$(REBUILD).tar.$(TAR_EXT) #mk-origtargz ../$(NAME)-$(VERSION)-$(REBUILD).tar.$(TAR_EXT)
cp debian/control.$(DIST) debian/control cp debian/control.$(DIST) debian/control
# BUILD SOURCE PACKAGE FOR LAUNCHPAD # BUILD SOURCE PACKAGE FOR LAUNCHPAD
debuild -S -sa -us -d -k$(GPG_KEY) # debuild -S -sa -us -d -k$(GPG_KEY)
# BUILD LOCALLY BINARY PACKAGE # BUILD LOCALLY BINARY PACKAGE
# debuild -us -uc DEB_BUILD_OPTIONS='parallel=16' debuild -us -uc
conda: conda:
echo "############################" echo "############################"

View File

@@ -9,7 +9,7 @@
cd packaging cd packaging
make DIST=focal deb make DIST=focal deb
make DIST=jammy deb make DIST=jammy deb
make DIST=kinetic deb make DIST=lunar deb
cd _BUILD/ubuntu/focal cd _BUILD/ubuntu/focal
dput ppa:bkryza/clang-uml *.changes dput ppa:bkryza/clang-uml *.changes

View File

@@ -0,0 +1 @@
packaging/autocomplete/clang-uml

View File

@@ -2,7 +2,7 @@ Source: clang-uml
Maintainer: Bartek Kryza <bkryza@gmail.com> Maintainer: Bartek Kryza <bkryza@gmail.com>
Section: devel Section: devel
Priority: optional Priority: optional
Build-Depends: debhelper, git, make, gcc-10, g++-10, cmake (>= 3.16), libyaml-cpp-dev, llvm-12, llvm-12-dev, clang-12, libclang-12-dev, libclang-cpp12-dev Build-Depends: debhelper, git, make, gcc-10, g++-10, cmake (>= 3.16), libyaml-cpp-dev, llvm-12, llvm-12-dev, clang-12, libclang-12-dev, libclang-cpp12-dev, bash-completion, dh-sequence-bash-completion
Standards-Version: 4.3.0 Standards-Version: 4.3.0
Vcs-Browser: https://github.com/bkryza/clang-uml Vcs-Browser: https://github.com/bkryza/clang-uml
Vcs-Git: https://github.com/bkryza/clang-uml.git Vcs-Git: https://github.com/bkryza/clang-uml.git

View File

@@ -2,7 +2,7 @@ Source: clang-uml
Maintainer: Bartek Kryza <bkryza@gmail.com> Maintainer: Bartek Kryza <bkryza@gmail.com>
Section: devel Section: devel
Priority: optional Priority: optional
Build-Depends: debhelper, git, make, gcc-12, g++-12, cmake (>= 3.16), libyaml-cpp-dev, llvm-15, llvm-15-dev, clang-15, libclang-15-dev, libclang-cpp15-dev Build-Depends: debhelper, git, make, gcc-11, g++-11, cmake (>= 3.16), libyaml-cpp-dev, llvm-15, llvm-15-dev, clang-15, libclang-15-dev, libclang-cpp15-dev, bash-completion, dh-sequence-bash-completion
Standards-Version: 4.3.0 Standards-Version: 4.3.0
Vcs-Browser: https://github.com/bkryza/clang-uml Vcs-Browser: https://github.com/bkryza/clang-uml
Vcs-Git: https://github.com/bkryza/clang-uml.git Vcs-Git: https://github.com/bkryza/clang-uml.git

View File

@@ -1,19 +0,0 @@
Source: clang-uml
Maintainer: Bartek Kryza <bkryza@gmail.com>
Section: devel
Priority: optional
Build-Depends: debhelper, git, make, gcc-12, g++-12, cmake (>= 3.16), libyaml-cpp-dev, llvm-15, llvm-15-dev, clang-15, clang-tools-15, libclang-15-dev, libclang-cpp15-dev, libmlir-15-dev, mlir-15-tools
Standards-Version: 4.3.0
Vcs-Browser: https://github.com/bkryza/clang-uml
Vcs-Git: https://github.com/bkryza/clang-uml.git
Homepage: https://github.com/bkryza/clang-uml
Package: clang-uml
Architecture: any
Section: utils
Depends: ${misc:Depends}, ${shlibs:Depends}, clang-15
Pre-Depends: ${misc:Pre-Depends}
Description: Automatic C++ UML diagram generator based on Clang.
.
This package provides the clang-uml binary.

View File

@@ -2,7 +2,7 @@ Source: clang-uml
Maintainer: Bartek Kryza <bkryza@gmail.com> Maintainer: Bartek Kryza <bkryza@gmail.com>
Section: devel Section: devel
Priority: optional Priority: optional
Build-Depends: debhelper, git, make, gcc, g++, cmake (>= 3.16), libyaml-cpp-dev, llvm-16, llvm-16-dev, clang-16, clang-tools-16, libclang-16-dev, libclang-cpp16-dev, libmlir-16-dev, mlir-16-tools Build-Depends: debhelper, git, make, gcc, g++, cmake (>= 3.16), libyaml-cpp-dev, llvm-16, llvm-16-dev, clang-16, clang-tools-16, libclang-16-dev, libclang-cpp16-dev, libmlir-16-dev, mlir-16-tools, bash-completion, dh-sequence-bash-completion
Standards-Version: 4.3.0 Standards-Version: 4.3.0
Vcs-Browser: https://github.com/bkryza/clang-uml Vcs-Browser: https://github.com/bkryza/clang-uml
Vcs-Git: https://github.com/bkryza/clang-uml.git Vcs-Git: https://github.com/bkryza/clang-uml.git

1
packaging/debian/install Normal file
View File

@@ -0,0 +1 @@
packaging/autocomplete/_clang-uml /usr/share/zsh/vendor-completions/

View File

@@ -17,4 +17,4 @@ override_dh_strip:
dh_strip --dbgsym-migration='clang-uml-dbg (<<{{VERSION}}-1~)' dh_strip --dbgsym-migration='clang-uml-dbg (<<{{VERSION}}-1~)'
%: %:
dh $@ dh $@ --with bash-completion

View File

@@ -47,6 +47,10 @@ generated in PlantUML format.
%install %install
%cmake_install %cmake_install
mkdir -p %{buildroot}/%{_datadir}/bash-completion/completions
mkdir -p %{buildroot}/%{_datadir}/zsh/site-functions
cp -p packaging/autocomplete/clang-uml %{buildroot}/%{_datadir}/bash-completion/completions/clang-uml
cp -p packaging/autocomplete/_clang-uml %{buildroot}/%{_datadir}/zsh/site-functions/_clang-uml
rm -f %{buildroot}/%{_infodir}/dir rm -f %{buildroot}/%{_infodir}/dir
%post %post
@@ -59,7 +63,8 @@ fi
%files %files
%{_bindir}/clang-uml %{_bindir}/clang-uml
%{_datadir}/bash-completion/completions/clang-uml
%{_datadir}/zsh/site-functions/_clang-uml
%doc CHANGELOG.md README.md AUTHORS.md LICENSE.md %doc CHANGELOG.md README.md AUTHORS.md LICENSE.md
%license LICENSE.md %license LICENSE.md