Skip to content
Snippets Groups Projects
Unverified Commit 4f7059bc authored by STEVAN Antoine's avatar STEVAN Antoine :crab:
Browse files

set the version in the Makefile

parent 597f23ae
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ install:
chmod +x ~/.local/bin/gplt
cp src/plot.py ~/.local/bin/
cp src/multi_bar.py ~/.local/bin/
sed 's/{{VERSION}}/foo/g' ~/.local/bin/gplt
./scripts/set-version.sh ~/.local/bin
uninstall:
rm ~/.local/bin/gplt
......
#!/usr/bin/env bash
[[ -z $1 ]] && {
echo "please give the path to the installation directory"
exit 1
}
sed --in-place "s/{{VERSION}}/$(git describe)/g" "$1/gplt"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment