source: trunk/make_deb_pkg.sh @ 67

Last change on this file since 67 was 41, checked in by bas, 20 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
Line 
1#!/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
8#
9# SVN Info:
10#       $Id: make_deb_pkg.sh 41 2004-07-09 08:48:21Z bas $     
11
12TOPDIR=tmp
13DEST_BIN=$TOPDIR/usr/bin
14DEST_SBIN=$TOPDIR/usr/sbin
15DEST_DOC=$TOPDIR/usr/share/doc/beo-pxeconfig
16
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 "----------------"
51rm -rf $TOPDIR
Note: See TracBrowser for help on using the repository browser.