Fix install script

This commit is contained in:
Mateusz Piątkowski 2022-09-18 21:40:44 +02:00
parent 07317e19eb
commit 5589094034
3 changed files with 6 additions and 4 deletions

BIN
scripts/.release.swp Normal file

Binary file not shown.

View File

@ -2,7 +2,9 @@
set -xe set -xe
mkdir -p /usr/local/bin BINDIR=/usr/local/bin
cp -f bin/musique /usr/local/bin
chmod 755 /usr/local/bin/musique mkdir -p "$BINDIR"
cp -f bin/musique "$BINDIR"
chmod 755 "$BINDIR"/musique
echo "Musique installed." echo "Musique installed."

View File

@ -21,7 +21,7 @@ echo "Copy bin/musique, examples, license and documentation"
cp bin/musique "$Target"/ cp bin/musique "$Target"/
cp LICENSE "$Target"/LICENSE cp LICENSE "$Target"/LICENSE
cp -r examples "$Target"/examples cp -r examples "$Target"/examples
sed "s/bin\/musique/musique/g" scripts/install > "$Target"/install.sh sed "s/bin\/musique/musique/" scripts/install > "$Target"/install.sh
chmod 0755 "$Target"/install.sh chmod 0755 "$Target"/install.sh
lowdown -s doc/overview.md -m "title:Omówienie języka Musique" -o "$Target"/overview.html lowdown -s doc/overview.md -m "title:Omówienie języka Musique" -o "$Target"/overview.html