2018-12-29 06:08:33 +01:00
|
|
|
**compilescript** allows you to execute files from compiled languages as
|
|
|
|
scripts. By default it uses g++.
|
2018-12-28 13:56:34 +01:00
|
|
|
|
2018-12-29 06:08:33 +01:00
|
|
|
It compiles the source file, stores the binary in
|
2018-12-29 08:11:36 +01:00
|
|
|
`${XDG_CACHE_HOME}/compilescript/` and executes it. If the binary in cache is
|
2019-01-01 09:07:39 +01:00
|
|
|
newer than the source file, the compilation is skipped.
|
2018-12-29 05:33:58 +01:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2019-01-25 04:03:30 +01:00
|
|
|
Have a look at the [manpage](https://schlomp.space/tastytea/compilescript/src/branch/master/compilescript.1.adoc).
|
2018-12-29 05:33:58 +01:00
|
|
|
|
2018-12-28 13:56:34 +01:00
|
|
|
## Install
|
|
|
|
|
2019-01-01 09:05:31 +01:00
|
|
|
### Gentoo
|
|
|
|
|
|
|
|
Gentoo ebuilds are available via my
|
|
|
|
[repository](https://schlomp.space/tastytea/overlay).
|
|
|
|
|
2018-12-28 13:56:34 +01:00
|
|
|
### From source
|
|
|
|
|
|
|
|
#### Dependencies
|
|
|
|
|
2018-12-29 05:48:52 +01:00
|
|
|
* C++ compiler (tested: [gcc](https://gcc.gnu.org/) 5/6/7/8,
|
2018-12-28 13:56:34 +01:00
|
|
|
[clang](https://llvm.org/) 3/5/6)
|
|
|
|
* [cmake](https://cmake.org/) (at least 3.2)
|
|
|
|
* [libxdg-basedir](http://repo.or.cz/w/libxdg-basedir.git) (tested: 1.2)
|
|
|
|
* [libconfig++](https://github.com/hyperrealm/libconfig) (tested: 1.5)
|
2019-01-31 18:35:46 +01:00
|
|
|
* Optional:
|
|
|
|
* Manpage: [asciidoc](http://asciidoc.org/) (tested: 8.6)
|
2018-12-28 13:56:34 +01:00
|
|
|
|
|
|
|
#### Get sourcecode
|
|
|
|
|
|
|
|
Download the current
|
2018-12-29 06:08:33 +01:00
|
|
|
[release](https://schlomp.space/tastytea/compilescript/releases) and copy
|
2018-12-28 13:56:34 +01:00
|
|
|
[xdgcfg](https://schlomp.space/tastytea/xdgcfg) into `xdgcfg/`.
|
|
|
|
|
|
|
|
If you clone from git, be sure to `git submodule init` and
|
|
|
|
`git submodule update` afterwards. See the [submodules article in the git book]
|
|
|
|
(https://git-scm.com/book/en/v2/Git-Tools-Submodules#_cloning_submodules) for
|
|
|
|
further info.
|
|
|
|
|
|
|
|
#### Compile
|
|
|
|
|
|
|
|
```SH
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
cmake ..
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
```
|
|
|
|
|
2019-01-31 18:35:46 +01:00
|
|
|
cmake options:
|
|
|
|
* `-DCMAKE_BUILD_TYPE=Debug` for a debug build
|
|
|
|
* `-DWITH_MAN=NO` to not compile the manpage
|
|
|
|
|
2018-12-28 13:56:34 +01:00
|
|
|
## Contributing
|
|
|
|
|
|
|
|
Contributions are always welcome. You can submit them as pull requests or via
|
|
|
|
email to `tastytea`@`tastytea.de`.
|
|
|
|
|
|
|
|
## License & Copyright
|
|
|
|
|
|
|
|
```PLAIN
|
|
|
|
Copyright © 2018 tastytea <tastytea@tastytea.de>.
|
|
|
|
License GPLv3: GNU GPL version 3 <https://www.gnu.org/licenses/gpl-3.0.html>.
|
|
|
|
This program comes with ABSOLUTELY NO WARRANTY. This is free software,
|
|
|
|
and you are welcome to redistribute it under certain conditions.
|
|
|
|
```
|