Changeset 38 for trunk


Ignore:
Timestamp:
07/09/04 10:38:43 (18 years ago)
Author:
bas
Message:

CHECKINSTALL

  • directory removed
  • switched to dpkg -b

make_deb_pkg.sh:

  • use constants and other useful commands
Location:
trunk/pxeconfig
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pxeconfig/make_deb_pkg.sh

    r37 r38  
    11#!/bin/sh
     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
    28
    3 cp hexls /usr/bin/beo_hexls
    4 cp pxeconfig /usr/bin/beo_pxeconfig
    5 cp pxeconfigd /usr/sbin/beo_pxeconfigd
     9TOPDIR=tmp
     10DEST_BIN=$TOPDIR/usr/bin
     11DEST_SBIN=$TOPDIR/usr/sbin
     12DEST_DOC=$TOPDIR/usr/share/doc/beo-pxeconfig
    613
     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 TracChangeset for help on using the changeset viewer.