From: Lucie Scarlet Date: Fri, 12 Jul 2024 10:34:36 +0000 (+0200) Subject: Added README and install script X-Git-Url: https://git.chaotic.ninja/gitweb/lucie/?a=commitdiff_plain;h=df4ec2674d6ee092faa8a08a25ca92df7bfe0dbb;p=cmakegen.git Added README and install script Run `./install.sh` to install cmakegen --- diff --git a/README.md b/README.md new file mode 100644 index 0000000..0836884 --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +# CMakeGen +### A CMakeLists.txt generator + +## Installation +Run `sudo ./install.sh` to install. It installs to `/usr/local/bin`. + +## Usage +Run `cmakegen` on its own (make sure `/usr/local/bin` is in path) to create a C++ project. + +Run `cmakegen -c` to create a C project. diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..bf7b96d --- /dev/null +++ b/install.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +set -euxo pipefail + +if [ "$EUID" -ne 0 ]; then + echo "This script needs to run as root." +fi + +cp CMakeLists.txt.* cmakegen /usr/local/bin + +echo "Installed cmakegen"