add packaging to tricorder, as in the future this will need to be privileged
authorRobert Kaiser <kairo@kairo.at>
Sat, 22 Dec 2012 18:20:30 +0000 (19:20 +0100)
committerRobert Kaiser <kairo@kairo.at>
Sat, 22 Dec 2012 18:20:30 +0000 (19:20 +0100)
package/make-package.sh [new file with mode: 0755]
package/manifest.package [new file with mode: 0644]

diff --git a/package/make-package.sh b/package/make-package.sh
new file mode 100755 (executable)
index 0000000..c9f3d95
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+pkgdir=`pwd`
+cd `dirname $0`
+cd ..
+origdir=`pwd`
+
+rm -v $pkgdir/*
+zip -r -D -0 $pkgdir/package.zip * -x package/*
+dver=`date +%y.%j.%k`
+sed -e "s/DVER/$dver/" package/manifest.package > $pkgdir/manifest.package
diff --git a/package/manifest.package b/package/manifest.package
new file mode 100644 (file)
index 0000000..6027d6f
--- /dev/null
@@ -0,0 +1,5 @@
+{
+  "name": "Tricorder",
+  "package_path": "http://tricorder.kairo.at/package.zip",
+  "version": "0.DVER"
+}