source: trunk/pxeconfig/make_deb_pkg.sh @ 57

Last change on this file since 57 was 41, checked in by bas, 18 years ago

INSTALL:

Changed installtion instruction to use port 6611

make_deb_pkg.sh:

use rm -rf now

control:

changed version to 0.4.3

  • Property svn:executable set to *
  • Property svn:keywords set to Id
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
[39]8#
9# SVN Info:
10#       $Id: make_deb_pkg.sh 41 2004-07-09 08:48:21Z bas $     
[34]11
[38]12TOPDIR=tmp
13DEST_BIN=$TOPDIR/usr/bin
14DEST_SBIN=$TOPDIR/usr/sbin
15DEST_DOC=$TOPDIR/usr/share/doc/beo-pxeconfig
[34]16
[38]17PKG_NAME=`grep Package DEBIAN/control | cut -d: -f2`
18VERSION=`grep Version DEBIAN/control  | cut -d: -f2`
19VERSION=`echo $VERSION | sed 's/ //g'`
20
21
22
23echo ""
24echo "making tree"
25echo "-----------"
26mkdir -vp $DEST_BIN $DEST_SBIN $DEST_DOC
27
28echo ""
29echo "copying files to their home"
30echo "---------------------------"
31cp -v hexls $DEST_BIN/beo_hexls
32cp -v pxeconfig $DEST_BIN/beo_pxeconfig
33cp -v pxeconfigd $DEST_SBIN/beo_pxeconfigd
34cp -v AUTHORS COPYING Changelog INSTALL README $DEST_DOC
35
36echo ""
37echo "copying Debian package config files"
38echo "-----------------------------------"
39cp -rv DEBIAN $TOPDIR
40
41echo ""
42echo "Making the Debian package"
43echo "-------------------------"
44dpkg -b $TOPDIR
45echo ${PKG_NAME}_${VERSION}
46mv -v $TOPDIR.deb ${PKG_NAME}_${VERSION}.deb
47
48echo ""
49echo "removing $TOPDIR dir"
50echo "----------------"
[41]51rm -rf $TOPDIR
Note: See TracBrowser for help on using the repository browser.