Imported Debian version 1.2.2~svn3653
This commit is contained in:
commit
ce56f3183d
35 changed files with 12965 additions and 0 deletions
46
scripts/mk_deb.sh
Executable file
46
scripts/mk_deb.sh
Executable file
|
@ -0,0 +1,46 @@
|
|||
#!/bin/bash
|
||||
|
||||
# This script makes a SRPM - a source RPM file which can be built into the
|
||||
# appropriate distro specific RPM for any platform.
|
||||
#
|
||||
# To build the binary package:
|
||||
# rpm -i n2n-<ver>.src.rpm
|
||||
# rpmbuild -bb n2n.spec
|
||||
#
|
||||
# Look for the "Wrote:" line to see where the final RPM is.
|
||||
#
|
||||
# To run this script cd to the n2n directory and run it as follows
|
||||
# scripts/mk_SRPMS.sh
|
||||
#
|
||||
|
||||
set -e
|
||||
|
||||
set -x
|
||||
|
||||
BASE=`pwd`
|
||||
|
||||
TARFILE=`${BASE}/scripts/mk_tar.sh`
|
||||
TEMPDIR="build_deb"
|
||||
|
||||
test -f ${TARFILE}
|
||||
|
||||
echo "Building .deb"
|
||||
|
||||
if [ -d ${TEMPDIR} ]; then
|
||||
echo "Removing ${TEMPDIR} directory"
|
||||
rm -rf ${TEMPDIR} >&2
|
||||
fi
|
||||
|
||||
mkdir ${TEMPDIR}
|
||||
|
||||
pushd ${TEMPDIR}
|
||||
|
||||
tar xzf ${TARFILE} #At original location
|
||||
|
||||
cd n2n*
|
||||
|
||||
dpkg-buildpackage -rfakeroot
|
||||
|
||||
popd
|
||||
|
||||
echo "Done"
|
Loading…
Add table
Add a link
Reference in a new issue