[openrtm-commit:00928] r76 - trunk/ImageProcessing/opencv/packages/deb

openrtm @ openrtm.org openrtm @ openrtm.org
2012年 11月 26日 (月) 18:23:32 JST


Author: n-ando
Date: 2012-11-26 18:23:32 +0900 (Mon, 26 Nov 2012)
New Revision: 76

Added:
   trunk/ImageProcessing/opencv/packages/deb/dpkg_build.sh.old
Log:
test


Copied: trunk/ImageProcessing/opencv/packages/deb/dpkg_build.sh.old (from rev 75, trunk/ImageProcessing/opencv/packages/deb/dpkg_build.sh)
===================================================================
--- trunk/ImageProcessing/opencv/packages/deb/dpkg_build.sh.old	                        (rev 0)
+++ trunk/ImageProcessing/opencv/packages/deb/dpkg_build.sh.old	2012-11-26 09:23:32 UTC (rev 76)
@@ -0,0 +1,118 @@
+#!/bin/sh 
+#
+# Debian package build script
+#
+# the following files are constant
+# - README.Debian
+# - changelog
+# - compat
+# - control
+# - copyright
+# - dirs
+# - docs
+# - rules         
+#
+# the following files shoud be generated at make-dist
+# - files
+#
+# Package build process
+#
+# 1. edit "changelog" file with appropriate package version number
+#    like "1.1.0-2." This version number will be used for actual 
+#    deb package files.
+#
+# 2. Check permissions of the parent directory of distribution sourcecode
+#    extracted directory. (ex. parent of OpenRTM-aist-1.0.0)
+#    Package build script create deb packages there.
+#
+# 3. Run package build script debpkg_build.sh
+#    This script do everithings.
+#
+
+export PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/local/X11R6/bin:/usr/local/sbin:/usr/sbin:/sbin
+export LANG=C
+export LC_ALL=C
+
+# system information
+os=`uname -s`
+release=`uname -r`-`uname -p`
+
+dist_name=""
+dist_key=""
+# Check the lsb distribution name
+if test -f /etc/lsb-release ; then
+    . /etc/lsb-release
+    if test "x$DISTRIB_DESCRIPTION" != "x" ; then
+	dist_name=$DISTRIB_DESCRIPTION-`uname -m`
+	dist_key=$DISTRIB_ID
+    fi
+fi
+# Check the Fedora version
+if test "x$dist_name" = "x" && test -f /etc/fedora-release ; then
+    dist_name=`cat /etc/fedora-release`-`uname -m`
+    dist_key=`sed -e 's/.[^0-9]*\([0-9]\).*/fc\1/' /etc/fedora-release`
+fi
+# Check the Debian version
+if test "x$dist_name" = "x" && test -f /etc/debian_version ; then
+    dist_name="Debian"`cat /etc/debian_version`-`uname -m`
+    dist_key="Debian"
+fi
+# Check the Vine version
+if test "x$dist_name" = "x" && test -f /etc/vine-release ; then
+    dist_name=`cat /etc/vine-release`-`uname -m`
+    dist_key=`sed -e 's/.*\([0-9]\)\.\([0-9]\).*/vl\1\2/' /etc/vine-release`
+fi
+# Check the TuboLinux version
+if test "x$dist_name" = "x" && test -f /etc/turbolinux-release ; then
+    dist_name=`cat /etc/tubolinux-release`-`uname -m`
+    dist_key=""
+fi
+
+if test "x$dist_name" = "x" ; then
+    dist_name=$os$release
+fi
+# Check the RedHat/Fedora version
+if test "x$dist_name" = "x" && test -f /etc/redhat-release ; then
+    dist_name=`cat /etc/redhat-release`-`uname -m`
+fi
+
+# only fedora and vine
+if test ! "x$dist_key" = "xDebian" -a ! "x$dist_key" = "xUbuntu" ; then
+    echo $dist_key
+    echo "This is not debian/ubuntu"
+    exit 0
+fi
+
+#------------------------------------------------------------
+# create "files" file
+#------------------------------------------------------------
+if test ! -f "files" ; then
+    PKGVER=`head -n 1 changelog | sed 's/.*(\([0-9\.\-]*\).*/\1/'`
+    echo "opencv-rtcs_"${PKGVER}"_amd64.deb main extra" > files
+fi
+
+#------------------------------------------------------------
+# package build process
+#------------------------------------------------------------
+packagedir=`pwd`/../../
+mkdir $packagedir/debian
+
+rm -f $packagedir/packages/opencv-rtcs*
+
+cp README.Debian $packagedir/debian/
+cp changelog $packagedir/debian/
+cp compat $packagedir/debian/
+cp control $packagedir/debian/
+cp copyright $packagedir/debian/
+cp dirs $packagedir/debian/
+cp docs $packagedir/debian/
+cp files $packagedir/debian/
+chmod 444 $packagedir/debian/files
+cp rules $packagedir/debian/
+chmod 755 $packagedir/debian/rules
+
+cd $packagedir
+
+dpkg-buildpackage -W -us -uc -rfakeroot
+
+#mv $packagedir/../opencv-rtcs* $packagedir/packages/



More information about the openrtm-commit mailing list