Skip to content

Commit

Permalink
[sipify] Add name of source file to generated headers
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Apr 1, 2017
1 parent 22272c6 commit 5148b7a
Show file tree
Hide file tree
Showing 10 changed files with 129 additions and 37 deletions.
18 changes: 14 additions & 4 deletions python/core/qgsactionscope.sip
@@ -1,7 +1,10 @@
/******************************************************************
* This file has been generated automatically by sipify.pl *
* Do not edit manually ! Edit header file and generate it again. *
*****************************************************************/
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsactionscope.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/


class QgsActionScope
Expand Down Expand Up @@ -115,3 +118,10 @@ class QgsActionScope
};


/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsactionscope.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
18 changes: 14 additions & 4 deletions python/core/qgsactionscoperegistry.sip
@@ -1,7 +1,10 @@
/******************************************************************
* This file has been generated automatically by sipify.pl *
* Do not edit manually ! Edit header file and generate it again. *
*****************************************************************/
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsactionscoperegistry.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/


class QgsActionScopeRegistry : QObject
Expand Down Expand Up @@ -78,3 +81,10 @@ class QgsActionScopeRegistry : QObject

};

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsactionscoperegistry.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
18 changes: 14 additions & 4 deletions python/core/qgsanimatedicon.sip
@@ -1,7 +1,10 @@
/******************************************************************
* This file has been generated automatically by sipify.pl *
* Do not edit manually ! Edit header file and generate it again. *
*****************************************************************/
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsanimatedicon.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/



Expand Down Expand Up @@ -86,3 +89,10 @@ class QgsAnimatedIcon : QObject

};

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsanimatedicon.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
18 changes: 14 additions & 4 deletions python/core/qgsattributes.sip
@@ -1,7 +1,10 @@
/******************************************************************
* This file has been generated automatically by sipify.pl *
* Do not edit manually ! Edit header file and generate it again. *
*****************************************************************/
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsattributes.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/



Expand Down Expand Up @@ -103,3 +106,10 @@ typedef QVector<QVariant> QgsAttributes;
};


/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsattributes.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
18 changes: 14 additions & 4 deletions python/core/qgsfeature.sip
@@ -1,7 +1,10 @@
/******************************************************************
* This file has been generated automatically by sipify.pl *
* Do not edit manually ! Edit header file and generate it again. *
*****************************************************************/
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsfeature.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/



Expand Down Expand Up @@ -444,3 +447,10 @@ typedef QList<QgsFeature> QgsFeatureList;



/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsfeature.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
18 changes: 14 additions & 4 deletions python/core/qgssettings.sip
@@ -1,7 +1,10 @@
/******************************************************************
* This file has been generated automatically by sipify.pl *
* Do not edit manually ! Edit header file and generate it again. *
*****************************************************************/
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgssettings.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/



Expand Down Expand Up @@ -225,3 +228,10 @@ Removes all entries in the user settings

};

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgssettings.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
18 changes: 14 additions & 4 deletions python/core/qgsvectorlayer.sip
@@ -1,7 +1,10 @@
/******************************************************************
* This file has been generated automatically by sipify.pl *
* Do not edit manually ! Edit header file and generate it again. *
*****************************************************************/
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsvectorlayer.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/



Expand Down Expand Up @@ -1908,3 +1911,10 @@ Set the extent
QgsVectorLayer( const QgsVectorLayer &rhs );
};

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsvectorlayer.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
18 changes: 14 additions & 4 deletions scripts/sipify.pl
Expand Up @@ -22,10 +22,13 @@
my $private_section_line = '';
my $line;

print "/******************************************************************\n";
print " * This file has been generated automatically by sipify.pl *\n";
print " * Do not edit manually ! Edit header file and generate it again. *\n";
print " *****************************************************************/\n";
print "/************************************************************************\n";
print " * This file has been generated automatically from *\n";
print " * *\n";
printf " * %-*s *\n", 68, $headerfile;
print " * *\n";
print " * Do not edit manually ! Edit header and run scripts/sipify.pl again *\n";
print " ************************************************************************/\n";


while(!eof $header){
Expand Down Expand Up @@ -325,3 +328,10 @@
$comment = '';
}
}
print "/************************************************************************\n";
print " * This file has been generated automatically from *\n";
print " * *\n";
printf " * %-*s *\n", 68, $headerfile;
print " * *\n";
print " * Do not edit manually ! Edit header and run scripts/sipify.pl again *\n";
print " ************************************************************************/\n";
18 changes: 14 additions & 4 deletions tests/scripts/sipifyheader.expected.sip
@@ -1,7 +1,10 @@
/******************************************************************
* This file has been generated automatically by sipify.pl *
* Do not edit manually ! Edit header file and generate it again. *
*****************************************************************/
/************************************************************************
* This file has been generated automatically from *
* *
* tests/scripts/sipifyheader.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/



Expand Down Expand Up @@ -129,3 +132,10 @@ A constructor with definition in header on several lines
}


/************************************************************************
* This file has been generated automatically from *
* *
* tests/scripts/sipifyheader.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
4 changes: 3 additions & 1 deletion tests/scripts/test_sipify.sh
Expand Up @@ -4,7 +4,9 @@

DIR=$(git rev-parse --show-toplevel)

outdiff=$(${DIR}/scripts/sipify.pl ${DIR}/tests/scripts/sipifyheader.h | diff ${DIR}/tests/scripts/sipifyheader.expected.sip -)
pushd ${DIR}
outdiff=$(./scripts/sipify.pl tests/scripts/sipifyheader.h | diff tests/scripts/sipifyheader.expected.sip -)
popd

if [[ $outdiff ]]; then
echo " *** sipify.pl did not output expected file"
Expand Down

0 comments on commit 5148b7a

Please sign in to comment.