Skip to content

Commit

Permalink
Renamed installer script.
Browse files Browse the repository at this point in the history
  • Loading branch information
tfpf committed Sep 23, 2023
1 parent af484a6 commit 1ccc5c4
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 13 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ analysis, go to [`benchmarks`](benchmarks).
## Installation Requirements
These are the versions I have tested the installation with. Older versions may also work. You may not need all of
these, depending on how and what you are installing
* CMake ≥ 3.22
* cURL ≥ 7.68.0
* GCC ≥ 9.4.0 or Clang ≥ 12.0.0
* Git ≥ 2.30.2
Expand All @@ -34,13 +35,13 @@ The installation commands mentioned below must be entered in

## Install for C (and C++)
```shell
curl https://raw.githubusercontent.com/tfpf/hash-drbg/main/install.sh | sh
curl https://raw.githubusercontent.com/tfpf/hash-drbg/main/run.sh | sh
```
or
```shell
git clone https://github.com/tfpf/hash-drbg.git
cd hash-drbg
./install.sh
./run.sh
```

### Quick Start
Expand Down
11 changes: 0 additions & 11 deletions install.sh

This file was deleted.

26 changes: 26 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#! /usr/bin/env sh

if [ "$1" = uninstall ]
then
im=build/install_manifest.txt
if [ ! -f $im ]
then
printf "Cannot find install manifest!\n" >&2
exit 1
fi
while read fname
do
sudo rm $fname
done < $im
exit
fi

if [ "$0" = sh ]
then
target=/tmp/hash-drbg-$(date +%s)
git clone https://github.com/tfpf/hash-drbg.git $target
cd $target
fi
mkdir -p build && cd build
cmake ..
sudo make --jobs=4 install

0 comments on commit 1ccc5c4

Please sign in to comment.