mirror of
https://github.com/unpoller/unpoller.git
synced 2026-10-19 07:41:32 +02:00
Projectize the project.
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
OUTPUT=$1
|
||||
|
||||
# This requires the installation of `ronn`: sudo gem install ronn
|
||||
for f in cmd/*/README.md;do
|
||||
# Strtip off cmd/ then strip off README to get the man-file name.
|
||||
PKGNOCMD="${f#cmd/}"
|
||||
PKG="${PKGNOCMD%/README.md}"
|
||||
echo "Creating Man Page: ${f} -> ${OUTPUT}${PKG}.1.gz"
|
||||
ronn < "$f" | gzip -9 > "${OUTPUT}${PKG}.1.gz"
|
||||
done
|
||||
@@ -1,9 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Load the environment variables needed for testing
|
||||
export $(cat .env | grep -v ^# | xargs)
|
||||
|
||||
go clean
|
||||
go build -o unifi
|
||||
./unifi
|
||||
Reference in New Issue
Block a user