Commit 291acc21 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add version detecting to eterbuild / functions/common

parent 43a8bc68
# Public script for include in your scripts. Example:
## load common functions, compatible with local and installed script
#. /usr/share/eterbuild/eterbuild
#. /usr/share/eterbuild/eterbuild [VERSION]
# load_mod spec
ETERBUILDETC=/etc/eterbuild
ETERBUILDDIR=/usr/share/eterbuild
. /usr/share/eterbuild/functions/common
. /usr/share/eterbuild/functions/common $@
load_mod rpm
#!/bin/bash
# 2003-2008 Etersoft www.etersoft.ru
# 2003-2009 Etersoft www.etersoft.ru
# Author: Vitaly Lipatov <lav@etersoft.ru>
# Public domain
# $1 - needed VERSION of etersoft-build-utils. f.i. 162
# check for needed version
if [ -n "$1" ] ; then
if [ "$1" -lt $ETERBUILDVERSION ] ; then
echo "Obsoleted version of etersoft-build-utils version is used. Please upgrade it to $1 version."
exit 1
fi
fi
set_eterbuilddir()
{
[ -z "$ETERBUILDDIR" ] || return 0
......
......@@ -3,6 +3,8 @@
# Author: Vitaly Lipatov <lav@etersoft.ru>
# Public domain
ETERBUILDVERSION=162
# SUDO
SUDO="sudo"
# for some shells? not for bash
......
# Mandriva 64bit base replacements rules
libXext-devel|lib64xext6-devel
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment