mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-06-28 15:39:02 +08:00
Remove unused packaging script
package.sh is a vestige of the cyberemissary fork.
This commit is contained in:
parent
2c72591db0
commit
16d36d700d
@ -1,48 +0,0 @@
|
|||||||
#!/bin/bash -ex
|
|
||||||
|
|
||||||
# You must run this as sudo
|
|
||||||
|
|
||||||
function usage(){
|
|
||||||
echo ""
|
|
||||||
echo "This script packages mdbtools into a .deb and .rpm packages"
|
|
||||||
echo ""
|
|
||||||
echo "Usage package.sh <version> [<release>]"
|
|
||||||
echo ""
|
|
||||||
echo "Arguments:"
|
|
||||||
echo " <version> is the version to build"
|
|
||||||
echo " <release> is the release number to build; optional (default 1)"
|
|
||||||
echo ""
|
|
||||||
}
|
|
||||||
|
|
||||||
if [ -z "$1" ]; then
|
|
||||||
echo "ERROR: Missing version"
|
|
||||||
usage
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "--help" = "$1" ]; then
|
|
||||||
usage
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
PKG_VERSION=$1
|
|
||||||
PKG_RELEASE=1
|
|
||||||
|
|
||||||
if [ ! -z "$2" ]; then
|
|
||||||
PKG_RELEASE=$2
|
|
||||||
fi
|
|
||||||
|
|
||||||
autoreconf -i -f
|
|
||||||
./configure
|
|
||||||
|
|
||||||
checkinstall -y --pkgname=cyber-mdbtools --pkgversion=${PKG_VERSION} --pkgrelease=${PKG_RELEASE} --pkggroup=Tools \
|
|
||||||
--pkgsource=https://github.com/cyberemissary/mdbtools/archive/master.zip \
|
|
||||||
--maintainer=admin@cyberemissary.com --provides=mdbtools
|
|
||||||
|
|
||||||
# remove directory in case we are rebuilding the same version and we quite prematurely before
|
|
||||||
rm -Rf cyber-mdbtools-${PKG_VERSION}
|
|
||||||
alien -r -g -v -k cyber-mdbtools_${PKG_VERSION}-${PKG_RELEASE}_amd64.deb
|
|
||||||
|
|
||||||
cd cyber-mdbtools-${PKG_VERSION}
|
|
||||||
rpmbuild --buildroot $(pwd)/ --bb cyber-mdbtools-${PKG_VERSION}-${PKG_RELEASE}.spec
|
|
||||||
cd
|
|
Loading…
Reference in New Issue
Block a user