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