mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-13 08:29:32 +02:00
using BUILD_NUM instead of RELEASE everywhere
This commit is contained in:
@@ -1,2 +1 @@
|
|||||||
#define VERSION "3.1.0"
|
#define VERSION "3.1.0"
|
||||||
#define RELEASE_NUM ""
|
|
||||||
|
|||||||
@@ -24,14 +24,9 @@ AC_SUBST(FWB_VERSION)
|
|||||||
SHORTVERSION=${FWB_MAJOR_VERSION}${FWB_MINOR_VERSION}${FWB_MICRO_VERSION}
|
SHORTVERSION=${FWB_MAJOR_VERSION}${FWB_MINOR_VERSION}${FWB_MICRO_VERSION}
|
||||||
AC_SUBST(SHORTVERSION)
|
AC_SUBST(SHORTVERSION)
|
||||||
|
|
||||||
AC_SUBST(RELEASE_NUM)
|
|
||||||
AC_DEFINE_UNQUOTED(RELEASE_NUM, "$RELEASE_NUM", [release_num])
|
|
||||||
|
|
||||||
echo "Creating VERSION.h file..."
|
echo "Creating VERSION.h file..."
|
||||||
|
|
||||||
echo "#define VERSION \"$VERSION\"" > VERSION.h
|
echo "#define VERSION \"$VERSION\"" > VERSION.h
|
||||||
echo "#define RELEASE_NUM \"$RELEASE_NUM\"" >> VERSION.h
|
|
||||||
|
|
||||||
|
|
||||||
dnl try to find QT
|
dnl try to find QT
|
||||||
dnl
|
dnl
|
||||||
@@ -297,16 +292,8 @@ else
|
|||||||
DATADIR="${PREFIX}/share/"
|
DATADIR="${PREFIX}/share/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
ICONSDIR=""
|
ICONSDIR=""
|
||||||
|
|
||||||
if test -z ${RELEASE_NUM}; then
|
|
||||||
RPMRELEASE="1"
|
|
||||||
else
|
|
||||||
RPMRELEASE="${RELEASE_NUM}";
|
|
||||||
fi
|
|
||||||
AC_SUBST(RPMRELEASE)
|
|
||||||
|
|
||||||
AC_MSG_CHECKING(what OS this is)
|
AC_MSG_CHECKING(what OS this is)
|
||||||
|
|
||||||
case ${host} in
|
case ${host} in
|
||||||
|
|||||||
@@ -326,7 +326,7 @@ string CompilerDriver_iosacl::run(const std::string &cluster_id,
|
|||||||
script << "!\n\
|
script << "!\n\
|
||||||
! This is automatically generated file. DO NOT MODIFY !\n\
|
! This is automatically generated file. DO NOT MODIFY !\n\
|
||||||
!\n\
|
!\n\
|
||||||
! Firewall Builder fwb_iosacl v" << VERSION << "-" << RELEASE_NUM << " \n\
|
! Firewall Builder fwb_iosacl v" << VERSION << "-" << BUILD_NUM << " \n\
|
||||||
!\n\
|
!\n\
|
||||||
! Generated " << timestr
|
! Generated " << timestr
|
||||||
<< " "
|
<< " "
|
||||||
|
|||||||
@@ -24,6 +24,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../../config.h"
|
#include "../../config.h"
|
||||||
|
#include "../../build_num"
|
||||||
|
|
||||||
#include "fwbuilder/libfwbuilder-config.h"
|
#include "fwbuilder/libfwbuilder-config.h"
|
||||||
#include "fwbuilder/Constants.h"
|
#include "fwbuilder/Constants.h"
|
||||||
|
|
||||||
@@ -140,7 +142,7 @@ void usage()
|
|||||||
{
|
{
|
||||||
cout << "Firewall Builder: general purpose object tree editing tool"
|
cout << "Firewall Builder: general purpose object tree editing tool"
|
||||||
<< endl;
|
<< endl;
|
||||||
cout << "Version " << VERSION << "-" << RELEASE_NUM << endl;
|
cout << "Version " << VERSION << "-" << BUILD_NUM << endl;
|
||||||
cout << endl;
|
cout << endl;
|
||||||
cout << "Usage: fwbedit command [options]" << endl;
|
cout << "Usage: fwbedit command [options]" << endl;
|
||||||
cout << endl;
|
cout << endl;
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ FWBAboutDialog::FWBAboutDialog()
|
|||||||
m_aboutDialog->titleLbl->setText(
|
m_aboutDialog->titleLbl->setText(
|
||||||
QString("Firewall Builder v%1").arg(VERSION) );
|
QString("Firewall Builder v%1").arg(VERSION) );
|
||||||
m_aboutDialog->revLbl->setText(
|
m_aboutDialog->revLbl->setText(
|
||||||
tr("Revision: %1 ( Build: %2 )").arg(RELEASE_NUM).arg(BUILD_NUM) );
|
tr("Build: %1").arg(BUILD_NUM) );
|
||||||
m_aboutDialog->apiLbl->setText(
|
m_aboutDialog->apiLbl->setText(
|
||||||
tr("Using Firewall Builder API %1").arg(
|
tr("Using Firewall Builder API %1").arg(
|
||||||
libfwbuilder::Constants::getLibraryVersion().c_str() ) );
|
libfwbuilder::Constants::getLibraryVersion().c_str() ) );
|
||||||
|
|||||||
@@ -26,6 +26,7 @@
|
|||||||
|
|
||||||
#include "../../config.h"
|
#include "../../config.h"
|
||||||
#include "../../build_num"
|
#include "../../build_num"
|
||||||
|
|
||||||
#include "global.h"
|
#include "global.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#include "VERSION.h"
|
#include "VERSION.h"
|
||||||
@@ -99,8 +100,8 @@ debugDialog::debugDialog(QWidget *parent) :
|
|||||||
m_dialog->debugText->append( QString("Versions:") );
|
m_dialog->debugText->append( QString("Versions:") );
|
||||||
m_dialog->debugText->append( QString(" Firewall Builder %1")
|
m_dialog->debugText->append( QString(" Firewall Builder %1")
|
||||||
.arg(VERSION) );
|
.arg(VERSION) );
|
||||||
m_dialog->debugText->append( QString(" Revision %1 Build %2")
|
m_dialog->debugText->append( QString(" Build %2")
|
||||||
.arg(RELEASE_NUM).arg(BUILD_NUM) );
|
.arg(BUILD_NUM) );
|
||||||
m_dialog->debugText->append( QString(" Using libfwbuilder %1")
|
m_dialog->debugText->append( QString(" Using libfwbuilder %1")
|
||||||
.arg( libfwbuilder::Constants::getLibraryVersion().c_str() ) );
|
.arg( libfwbuilder::Constants::getLibraryVersion().c_str() ) );
|
||||||
|
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../../config.h"
|
#include "../../config.h"
|
||||||
|
#include "../../build_num"
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
@@ -82,7 +83,7 @@ void usage(const char *name)
|
|||||||
{
|
{
|
||||||
cout << "Firewall Builder: policy compiler for Cisco IOS ACL" << endl;
|
cout << "Firewall Builder: policy compiler for Cisco IOS ACL" << endl;
|
||||||
cout << "Copyright 2007-2009 NetCitadel, LLC" << endl;
|
cout << "Copyright 2007-2009 NetCitadel, LLC" << endl;
|
||||||
cout << "Version " << VERSION << "-" << RELEASE_NUM << endl;
|
cout << "Version " << VERSION << "-" << BUILD_NUM << endl;
|
||||||
cout << "Usage: " << name << " [-tvV] [-f filename.xml] [-d destdir] [-o output.fw] firewall_object_name" << endl;
|
cout << "Usage: " << name << " [-tvV] [-f filename.xml] [-d destdir] [-o output.fw] firewall_object_name" << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -24,6 +24,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../../config.h"
|
#include "../../config.h"
|
||||||
|
#include "../../build_num"
|
||||||
|
|
||||||
#ifdef HAVE_LOCALE_H
|
#ifdef HAVE_LOCALE_H
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
@@ -90,7 +91,7 @@ class UpgradePredicate: public XMLTools::UpgradePredicate
|
|||||||
void usage(const char *name)
|
void usage(const char *name)
|
||||||
{
|
{
|
||||||
cout << "Firewall Builder: policy compiler for ipfilter" << endl;
|
cout << "Firewall Builder: policy compiler for ipfilter" << endl;
|
||||||
cout << "Version " << VERSION << RELEASE_NUM << endl;
|
cout << "Version " << VERSION << "-" << BUILD_NUM << endl;
|
||||||
cout << "Usage: " << name
|
cout << "Usage: " << name
|
||||||
<< " [-x] [-v] [-V] [-f filename.xml] [-o output.fw] [-d destdir] [-m] firewall_object_name" << endl;
|
<< " [-x] [-v] [-V] [-f filename.xml] [-o output.fw] [-d destdir] [-m] firewall_object_name" << endl;
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-1
@@ -24,6 +24,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../../config.h"
|
#include "../../config.h"
|
||||||
|
#include "../../build_num"
|
||||||
|
|
||||||
#ifdef HAVE_LOCALE_H
|
#ifdef HAVE_LOCALE_H
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
@@ -87,7 +88,7 @@ class UpgradePredicate: public XMLTools::UpgradePredicate
|
|||||||
void usage(const char *name)
|
void usage(const char *name)
|
||||||
{
|
{
|
||||||
cout << "Firewall Builder: policy compiler for ipfw" << endl;
|
cout << "Firewall Builder: policy compiler for ipfw" << endl;
|
||||||
cout << "Version " << VERSION << RELEASE_NUM << endl;
|
cout << "Version " << VERSION << "-" << BUILD_NUM << endl;
|
||||||
cout << "Usage: " << name << " [-x] [-v] [-V] [-f filename.xml] [-o output.fw] [-d destdir] [-m] firewall_object_name" << endl;
|
cout << "Usage: " << name << " [-x] [-v] [-V] [-f filename.xml] [-o output.fw] [-d destdir] [-m] firewall_object_name" << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -66,7 +66,7 @@ void usage(const char *name)
|
|||||||
{
|
{
|
||||||
cout << "Firewall Builder: policy compiler for "
|
cout << "Firewall Builder: policy compiler for "
|
||||||
"Linux 2.4.x and 2.6.x iptables" << endl;
|
"Linux 2.4.x and 2.6.x iptables" << endl;
|
||||||
cout << "Version " << VERSION << "-" << RELEASE_NUM << endl;
|
cout << "Version " << VERSION << "-" << BUILD_NUM << endl;
|
||||||
cout << "Usage: " << name
|
cout << "Usage: " << name
|
||||||
<< " [-x level] [-v] [-V] [-q] [-f filename.xml] [-d destdir] "
|
<< " [-x level] [-v] [-V] [-q] [-f filename.xml] [-d destdir] "
|
||||||
"[-m] [-4|-6] firewall_object_name" << endl;
|
"[-m] [-4|-6] firewall_object_name" << endl;
|
||||||
|
|||||||
+2
-1
@@ -24,6 +24,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../../config.h"
|
#include "../../config.h"
|
||||||
|
#include "../../build_num"
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
@@ -66,7 +67,7 @@ class UpgradePredicate: public XMLTools::UpgradePredicate
|
|||||||
void usage(const char *name)
|
void usage(const char *name)
|
||||||
{
|
{
|
||||||
cout << "Firewall Builder: policy compiler for OpenBSD PF" << endl;
|
cout << "Firewall Builder: policy compiler for OpenBSD PF" << endl;
|
||||||
cout << "Version " << VERSION << RELEASE_NUM << endl;
|
cout << "Version " << VERSION << "-" << BUILD_NUM << endl;
|
||||||
cout << "Usage: " << name << " [-x] [-v] [-V] [-f filename.xml] [-o output.fw] [-d destdir] [-m] [-4|-6] firewall_object_name" << endl;
|
cout << "Usage: " << name << " [-x] [-v] [-V] [-f filename.xml] [-o output.fw] [-d destdir] [-m] [-4|-6] firewall_object_name" << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -370,7 +370,7 @@ string CompilerDriver_ipf::run(const std::string &cluster_id,
|
|||||||
script << "#\n\
|
script << "#\n\
|
||||||
# This is automatically generated file. DO NOT MODIFY !\n\
|
# This is automatically generated file. DO NOT MODIFY !\n\
|
||||||
#\n\
|
#\n\
|
||||||
# Firewall Builder fwb_ipf v" << VERSION << "-" << RELEASE_NUM << " \n\
|
# Firewall Builder fwb_ipf v" << VERSION << "-" << BUILD_NUM << " \n\
|
||||||
#\n\
|
#\n\
|
||||||
# Generated " << timestr << " " << tzname[stm->tm_isdst] << " by "
|
# Generated " << timestr << " " << tzname[stm->tm_isdst] << " by "
|
||||||
<< user_name << "\n#\n#\n";
|
<< user_name << "\n#\n#\n";
|
||||||
|
|||||||
@@ -330,7 +330,7 @@ string CompilerDriver_ipfw::run(const std::string &cluster_id,
|
|||||||
script << "#\n\
|
script << "#\n\
|
||||||
# This is automatically generated file. DO NOT MODIFY !\n\
|
# This is automatically generated file. DO NOT MODIFY !\n\
|
||||||
#\n\
|
#\n\
|
||||||
# Firewall Builder fwb_ipfw v" << VERSION << "-" << RELEASE_NUM << " \n\
|
# Firewall Builder fwb_ipfw v" << VERSION << "-" << BUILD_NUM << " \n\
|
||||||
#\n\
|
#\n\
|
||||||
# Generated " << timestr << " " << tzname[stm->tm_isdst] << " by "
|
# Generated " << timestr << " " << tzname[stm->tm_isdst] << " by "
|
||||||
<< user_name << "\n#\n";
|
<< user_name << "\n#\n";
|
||||||
|
|||||||
@@ -492,7 +492,7 @@ string CompilerDriver_pf::run(const std::string &cluster_id,
|
|||||||
script << "#\n\
|
script << "#\n\
|
||||||
# This is automatically generated file. DO NOT MODIFY !\n\
|
# This is automatically generated file. DO NOT MODIFY !\n\
|
||||||
#\n\
|
#\n\
|
||||||
# Firewall Builder fwb_pf v" << VERSION << "-" << RELEASE_NUM << " \n\
|
# Firewall Builder fwb_pf v" << VERSION << "-" << BUILD_NUM << " \n\
|
||||||
#\n\
|
#\n\
|
||||||
# Generated " << timestr << " " << tzname[stm->tm_isdst] << " by "
|
# Generated " << timestr << " " << tzname[stm->tm_isdst] << " by "
|
||||||
<< user_name << "\n#\n";
|
<< user_name << "\n#\n";
|
||||||
|
|||||||
+2
-1
@@ -24,6 +24,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../../config.h"
|
#include "../../config.h"
|
||||||
|
#include "../../build_num"
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
@@ -84,7 +85,7 @@ void usage(const char *name)
|
|||||||
{
|
{
|
||||||
cout << "Firewall Builder: policy compiler for Cisco PIX firewall (with support for FWSM)" << endl;
|
cout << "Firewall Builder: policy compiler for Cisco PIX firewall (with support for FWSM)" << endl;
|
||||||
cout << "Copyright 2002-2009 NetCitadel, LLC" << endl;
|
cout << "Copyright 2002-2009 NetCitadel, LLC" << endl;
|
||||||
cout << "Version " << VERSION << "-" << RELEASE_NUM << endl;
|
cout << "Version " << VERSION << "-" << BUILD_NUM << endl;
|
||||||
cout << "Usage: " << name << " [-tvV] [-f filename.xml] [-d destdir] [-o output.fw] firewall_object_name" << endl;
|
cout << "Usage: " << name << " [-tvV] [-f filename.xml] [-d destdir] [-o output.fw] firewall_object_name" << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user