source: trunk/pxeconfig/make_deb_pkg.sh @ 38

Last change on this file since 38 was 38, checked in by bas, 20 years ago

CHECKINSTALL

  • directory removed
  • switched to dpkg -b

make_deb_pkg.sh:

  • use constants and other useful commands
  • Property svn:executable set to *
File size: 1.1 KB
RevLine 
[34]1#!/bin/sh
[38]2#
3# Description: Script for generation .deb package
4# Author: Gijs Molenaar <gijs@sara.nl>
5#
6# Changed: Bas van der Vlies <basv@sara.nl>
7# Added some variables
[34]8
[38]9TOPDIR=tmp
10DEST_BIN=$TOPDIR/usr/bin
11DEST_SBIN=$TOPDIR/usr/sbin
12DEST_DOC=$TOPDIR/usr/share/doc/beo-pxeconfig
[34]13
[38]14PKG_NAME=`grep Package DEBIAN/control | cut -d: -f2`
15VERSION=`grep Version DEBIAN/control  | cut -d: -f2`
16VERSION=`echo $VERSION | sed 's/ //g'`
17
18
19
20echo ""
21echo "making tree"
22echo "-----------"
23mkdir -vp $DEST_BIN $DEST_SBIN $DEST_DOC
24
25echo ""
26echo "copying files to their home"
27echo "---------------------------"
28cp -v hexls $DEST_BIN/beo_hexls
29cp -v pxeconfig $DEST_BIN/beo_pxeconfig
30cp -v pxeconfigd $DEST_SBIN/beo_pxeconfigd
31cp -v AUTHORS COPYING Changelog INSTALL README $DEST_DOC
32
33echo ""
34echo "copying Debian package config files"
35echo "-----------------------------------"
36cp -rv DEBIAN $TOPDIR
37
38echo ""
39echo "Making the Debian package"
40echo "-------------------------"
41dpkg -b $TOPDIR
42echo ${PKG_NAME}_${VERSION}
43mv -v $TOPDIR.deb ${PKG_NAME}_${VERSION}.deb
44
45echo ""
46echo "removing $TOPDIR dir"
47echo "----------------"
48rm -rv $TOPDIR
Note: See TracBrowser for help on using the repository browser.