From 3128bf57a7ef34b3840debfcbd981e062c5a11f8 Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@robotics.uk.to>
Date: Fri, 16 Jan 2015 21:45:28 +0000
Subject: [PATCH] manpage

---
 Makefile             |   6 +++---
 debian.sh            |  28 ++++++++++++++++++++++++++++
 man/freedombone.1.gz | Bin 0 -> 1072 bytes
 3 files changed, 31 insertions(+), 3 deletions(-)
 create mode 100755 debian.sh
 create mode 100644 man/freedombone.1.gz

diff --git a/Makefile b/Makefile
index e5186dff..8cc0ae69 100644
--- a/Makefile
+++ b/Makefile
@@ -10,9 +10,9 @@ source:
 	gzip -f9n ../${APP}_${VERSION}.orig.tar
 install:
 	mkdir -p ${DESTDIR}${PREFIX}/bin
-	install -m 755 -s src/${APP} ${DESTDIR}${PREFIX}/bin
-	install -m 755 -s src/${APP}-prep ${DESTDIR}${PREFIX}/bin
-	install -m 755 -s src/${APP}-tordongle ${DESTDIR}${PREFIX}/bin
+	install -m 755 src/${APP} ${DESTDIR}${PREFIX}/bin
+	install -m 755 src/${APP}-prep ${DESTDIR}${PREFIX}/bin
+	install -m 755 src/${APP}-tordongle ${DESTDIR}${PREFIX}/bin
 	mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/man/man1
 	install -m 644 man/${APP}.1.gz ${DESTDIR}${PREFIX}/share/man/man1
 uninstall:
diff --git a/debian.sh b/debian.sh
new file mode 100755
index 00000000..0d9685ee
--- /dev/null
+++ b/debian.sh
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+APP=freedombone
+PREV_VERSION=1.00
+VERSION=1.00
+ARCH_TYPE="all"
+DIR=${APP}-${VERSION}
+
+#update version numbers automatically - so you don't have to
+sed -i 's/VERSION='${PREV_VERSION}'/VERSION='${VERSION}'/g' Makefile
+sed -i 's/VERSION="'${PREV_VERSION}'"/VERSION="'${VERSION}'"/g' src/freedombone
+
+# change the parent directory name to debian format
+mv ../${APP} ../${DIR}
+
+# Create a source archive
+make clean
+make source
+
+# Build the package
+dpkg-buildpackage -F
+
+# sign files
+gpg -ba ../${APP}_${VERSION}-1_${ARCH_TYPE}.deb
+gpg -ba ../${APP}_${VERSION}.orig.tar.gz
+
+# restore the parent directory name
+mv ../${DIR} ../${APP}
diff --git a/man/freedombone.1.gz b/man/freedombone.1.gz
new file mode 100644
index 0000000000000000000000000000000000000000..7ebf6e16e95ebff60f894dc06fa8e73980becf60
GIT binary patch
literal 1072
zcmV-01kd{)iwFQQhPhM#18r4nZ|X)6{qA2eLaHiN!6d0#-J+^0B)NoJAc#lPR{gSG
z4|p%@9cv#D|NG9aLqgh02#h^5d(NCQ<9zc7JBwISU64Vzf!@uJ@I@H7y}tRO2R;6L
zzIeWMXuowZ7bXbZ%d&j^2#eADA-gQ{cOOPjQH{XSN3<Zx?9@J3;T4%KY5nKoX}O-R
zvwVCBpnG`#u)bSOmz(L+BHL65mk3<zJk}r?Vu7HH^FnJZfs7{*Fh;T0m?Fno$io$o
z1!3Cvyhaonfp%bnG0N=W9t*|QzMyjouQ<2_E=eZ`Ed}7J6*(WTEzrpT)<WqNb;2Ss
zR1#ed&&pRHkjCr?6U|p@!P|gmrYT#Q5*y?%BO?#+OjK$LWe!u%EvwPR+X9ZlD)eoH
zywl>yI9#4(0N=sqp!K;0Lzs3K4)BPrub5g2nls#jUWPC_V}DiU6ai0`69y=4+eB>=
zuox5jqLuTh!d*l)gmon>Q&1Y+RSYs-Bz#h6rXg%fmZY^Ph^6Kp8z@PJ8jS}ml|Lg|
zlT?BMcfVlJpU58KkqOd@)tn1&)k~^4S!`b;J33rR3}F?FgF0TnNdPX$3WS6E*<uuR
zYqV&g4o=Bvf}<*tTm+S*EHNden$K2wv_p7&6S~l}?=)5i)it3Keh3d;s~F*Qb(aGE
zm@k*_5O#bJYv1?Oj~3|KY1;Td{(|Hxsoa80eHP}w!U4WWY<wygeQ~K<mTiqz2Q~}Z
zqyTY*<%fFLk4}y0jis+Bz5C$Did$2Yjnx{yR;d>bWnlJgg4$Sh6tZP6S7<)W*8f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