Execute source files from compiled languages as scripts.
This repository has been archived on 2019-10-11. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
tastytea e4531464b5
All checks were successful
continuous-integration/drone/push Build is passing
Merge branch 'develop' into main
* Use regex to extract compiler arguments.
* Added --compiler.
2019-10-11 13:25:52 +02:00
man Add --compiler, to override compiler command. 2019-10-10 22:52:51 +02:00
src Add --compiler, to override compiler command. 2019-10-10 22:52:51 +02:00
xdgcfg@9337964266 Improve build process. 2019-10-01 11:10:03 +02:00
.drone.yml Shrunk CI recipe. 2019-05-24 17:02:31 +02:00
.gitignore
.gitmodules
CMakeLists.txt Update short description in manpage and version bump 0.4.1. 2019-10-01 12:05:51 +02:00
LICENSE
README.adoc Fix manpage location. 2019-10-01 12:03:52 +02:00

compilescript

compilescript allows you to execute files from compiled languages like scripts. By default it uses g++.

It compiles the source file, stores the binary in ${XDG_CACHE_HOME}/compilescript/ and executes it. If the binary in cache is newer than the source file, the compilation is skipped.

Usage

Have a look at the manpage.

Install

Gentoo

Gentoo ebuilds are available via my repository.

From source

Dependencies

Get sourcecode

Download the current release and copy xdgcfg into xdgcfg/,

or clone with git:
git clone https://schlomp.space/tastytea/compilescript.git
cd compilescript
git submodule init
git submodule update

Compile

mkdir build
cd build
cmake ..
make
make install
cmake options:
  • -DCMAKE_BUILD_TYPE=Debug for a debug build

  • -DWITH_MAN=NO to not compile the manpage

Contributing

Contributions are always welcome. You can submit them as pull requests or via email to tastytea@tastytea.de.

Copyright © 2018, 2019 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.