summaryrefslogtreecommitdiffstats
path: root/common/mkpkg
diff options
context:
space:
mode:
Diffstat (limited to 'common/mkpkg')
-rwxr-xr-xcommon/mkpkg7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/mkpkg b/common/mkpkg
new file mode 100755
index 0000000..41cc3c6
--- /dev/null
+++ b/common/mkpkg
@@ -0,0 +1,7 @@
+version=`grep "#define VERSION" config.h | awk -F\" '{print $2}'`
+packageName=`grep CPACK_PACKAGE_NAME CPackSourceConfig.cmake | grep -v "Package project name" | awk -F\" '{print $2}' | sed y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/`
+maintainer=`grep $USER /etc/passwd | awk -F: '{print $5}'`
+
+checkinstall --nodoc --pkgname="$packageName" --pkgversion="$version" \
+ --pkgrelease="0" --exclude="/" --include=install_manifest.txt \
+ --pakdir="/tmp/checkinstall-$packageName" sleep 1