Skip to content

Commit

Permalink
Final build touch-ups
Browse files Browse the repository at this point in the history
  • Loading branch information
MasFlam committed Dec 30, 2020
1 parent 98ff49a commit 4291b06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@ endif
.PHONY: help build package install

help:
@echo "make build - Build the package"
@echo "make package - Tarball the built package"
@echo "make [prefix=/usr/local/bin] install - Install to [prefix]'
@echo 'make build - Build the package'
@echo 'make package - Tarball the built package'
@echo 'make [prefix=/usr/local/bin] install - Install to [prefix]'

build:
./build.jl

package:
echo '#!/bin/sh' >> build/SatoriCLI/install.sh
echo cp -r build/SatoriCLI "$${1:-/usr/local/bin}" >> build/SatoriCLI/install.sh
echo ln -s SatoriCLI/bin/SatoriCLI "$${1:-/usr/local/bin}"/satori-cli >> build/SatoriCLI/install.sh
echo cp -r build/SatoriCLI \"$$\{1:-/usr/local/bin\}\" >> build/SatoriCLI/install.sh
echo ln -s SatoriCLI/bin/SatoriCLI \"$$\{1:-/usr/local/bin\}\"/satori-cli >> build/SatoriCLI/install.sh
chmod +x build/SatoriCLI/install.sh
cp LICENSE build/SatoriCLI/LICENSE
tar -czf build/SatoriCLI.tar.gz build/SatoriCLI

Expand Down
1 change: 0 additions & 1 deletion build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ cd(projdir) do
push!(sofiles, dest |> basename)
dest = joinpath("build/SatoriCLI/lib/", readlink(dest))
end
occursin("pcre", filename) && println("after while, dest=$dest")
push!(sofiles, dest |> basename)
end
end
Expand Down

0 comments on commit 4291b06

Please # to comment.