Skip to content

Commit

Permalink
Merge pull request #42 from ansasaki/file_header
Browse files Browse the repository at this point in the history
Adds the application name to generated files
  • Loading branch information
ansasaki authored May 9, 2018
2 parents 7e4abce + c2293a9 commit 9024501
Show file tree
Hide file tree
Showing 21 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions src/smap/symver.py
Original file line number Diff line number Diff line change
Expand Up @@ -1295,11 +1295,11 @@ def update(args):
# Write out to the output
if args.out:
with open(args.out, "w") as outfile:
outfile.write("# This map file was automatically updated\n\n")
outfile.write("# This map file was updated with smap\n\n")
outfile.write(str(cur_map))
else:
# Print to stdout
sys.stdout.write("# This map file was automatically updated\n\n")
sys.stdout.write("# This map file was updated with smap\n\n")
sys.stdout.write(str(cur_map))


Expand Down
2 changes: 1 addition & 1 deletion tests/data/test_check_files/out.map
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This map file was automatically updated
# This map file was updated with smap

LIBX_1_1_0
{
Expand Down
2 changes: 1 addition & 1 deletion tests/data/test_script/update_add.stdout
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Added:
symbol

# This map file was automatically updated
# This map file was updated with smap

BASE_1_1_0
{
Expand Down
2 changes: 1 addition & 1 deletion tests/data/test_script/update_remove.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Removed:
one_symbol

Merging all symbols in a single new release
# This map file was automatically updated
# This map file was updated with smap

TO_REMOVE_2_0_0
{
Expand Down
2 changes: 1 addition & 1 deletion tests/data/test_script/update_symbols.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Removed:
one_symbol

Merging all symbols in a single new release
# This map file was automatically updated
# This map file was updated with smap

BASE_2_0_0
{
Expand Down
2 changes: 1 addition & 1 deletion tests/data/test_update/add.outfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This map file was automatically updated
# This map file was updated with smap

LIBTC1_1_1_0
{
Expand Down
2 changes: 1 addition & 1 deletion tests/data/test_update/add_present.stdout
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Added:
symbol

# This map file was automatically updated
# This map file was updated with smap

ADD_PRESENT_1_1_0
{
Expand Down
2 changes: 1 addition & 1 deletion tests/data/test_update/add_with_wildcard.map
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This map file was automatically updated
# This map file was updated with smap

WITH_WILDCARD_1_0_0
{
Expand Down
2 changes: 1 addition & 1 deletion tests/data/test_update/add_with_wildcard.stdout
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Added:
symbol

# This map file was automatically updated
# This map file was updated with smap

WITH_WILDCARD_1_1_0
{
Expand Down
2 changes: 1 addition & 1 deletion tests/data/test_update/baseless.outfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This map file was automatically updated
# This map file was updated with smap

BASELESS_2_0_0
{
Expand Down
2 changes: 1 addition & 1 deletion tests/data/test_update/duplicated.outfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This map file was automatically updated
# This map file was updated with smap

LIBTC5_2_0_0
{
Expand Down
2 changes: 1 addition & 1 deletion tests/data/test_update/duplicated_symbol.map
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This map file was automatically updated
# This map file was updated with smap

DUPLICATED_1_0_0
{
Expand Down
2 changes: 1 addition & 1 deletion tests/data/test_update/duplicated_symbol.stdout
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Added:
symbol

# This map file was automatically updated
# This map file was updated with smap

DUPLICATED_1_1_0
{
Expand Down
2 changes: 1 addition & 1 deletion tests/data/test_update/missing_visibility.outfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This map file was automatically updated
# This map file was updated with smap

LIBTC5_6_0_0
{
Expand Down
2 changes: 1 addition & 1 deletion tests/data/test_update/mixed_names.stdout
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Added:
symbol

# This map file was automatically updated
# This map file was updated with smap

ROGUE_RELEASE_4_6_0
{
Expand Down
2 changes: 1 addition & 1 deletion tests/data/test_update/overwrite.out
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This map file was automatically updated
# This map file was updated with smap

LIBTC4_2_0_0
{
Expand Down
2 changes: 1 addition & 1 deletion tests/data/test_update/remove.out
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This map file was automatically updated
# This map file was updated with smap

LIBTC2_2_0_0
{
Expand Down
2 changes: 1 addition & 1 deletion tests/data/test_update/remove_with_wildcard.map
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This map file was automatically updated
# This map file was updated with smap

WITH_WILDCARD_1_0_0
{
Expand Down
2 changes: 1 addition & 1 deletion tests/data/test_update/remove_with_wildcard.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Removed:
symbol

Merging all symbols in a single new release
# This map file was automatically updated
# This map file was updated with smap

WITH_WILDCARD_2_0_0
{
Expand Down
2 changes: 1 addition & 1 deletion tests/data/test_update/symbols.out
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This map file was automatically updated
# This map file was updated with smap

LIBTC3_1_1_0
{
Expand Down
2 changes: 1 addition & 1 deletion tests/data/test_update/wildcard_warnings.outfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This map file was automatically updated
# This map file was updated with smap

SCOPES_2_0_0
{
Expand Down

0 comments on commit 9024501

Please sign in to comment.