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 95b4ca21ed
All checks were successful
the build was successful
Clarify what is considered an old cache file.
2019-04-13 04:22:25 +02:00
src Fixed indentation where possible. 2019-03-16 05:52:42 +01:00
xdgcfg@e22f82fc6f Simple files (without flags) work. 2018-12-29 05:15:49 +01:00
.drone.yml Added manpage 2019-01-25 04:06:41 +01:00
.gitignore Initial commit. 2018-12-28 13:56:34 +01:00
.gitmodules Initial commit. 2018-12-28 13:56:34 +01:00
build_manpage.sh Added manpage 2019-01-25 04:06:41 +01:00
CMakeLists.txt More debug flags. 2019-03-05 22:31:14 +01:00
compilescript.1.adoc Clarify what is considered an old cache file. 2019-04-13 04:22:25 +02:00
LICENSE Initial commit. 2018-12-28 13:56:34 +01:00
README.adoc Fixed markup. 2019-03-16 22:33:18 +01:00

compilescript

compilescript allows you to execute files from compiled languages as 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.