summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/punani4
-rwxr-xr-xdeploy14
-rw-r--r--lib/punani2
-rw-r--r--out/.placeholder0
4 files changed, 19 insertions, 1 deletions
diff --git a/bin/punani b/bin/punani
new file mode 100755
index 00000000..1e3fab87
--- /dev/null
+++ b/bin/punani
@@ -0,0 +1,4 @@
+#!/bin/sh
+# include core
+# include punani
+punani "$@"
diff --git a/deploy b/deploy
new file mode 100755
index 00000000..5c282398
--- /dev/null
+++ b/deploy
@@ -0,0 +1,14 @@
+#!/bin/sh
+set -x
+cd $(dirname $0)
+bindir=$PWD/bin/
+libdir=$PWD/lib/
+outdir=$PWD/out/
+# Hill-Billy style package builder
+for file in `ls -1 $bindir`;do
+ # cat every lib and the file itself afterwards into outfile
+ find $libdir -type f -exec cat '{}' \; > $outdir/$file
+ cat $bindir/$file >> $outdir/$file
+ chmod 755 $outdir/$file
+done
+
diff --git a/lib/punani b/lib/punani
index d0a16c51..beaee27c 100644
--- a/lib/punani
+++ b/lib/punani
@@ -52,7 +52,7 @@ _punani_resolve_package(){
}
_punani_aptget_install(){ apt-get -y install "$@" ;}
_punani_aptget_remove(){ apt-get -y remove "$@" ;}
-_punani_aptget_has() { dpkg -s "$1" >/dev/null 2>/dev/null ;}
+_punani_aptget_has() { dpkg -s "$1" | grep -q "Status: install";}
_punani_yum_install(){ yum -y install "$@" ;}
_punani_yum_remove(){ yum -y remove "$@" ;}
_punani_yum_has() { rpm -qa --qf "%{NAME}\n"| egrep "^${1}\$" >/dev/null ;}
diff --git a/out/.placeholder b/out/.placeholder
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/out/.placeholder