-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
32828fb
commit 3222929
Showing
148 changed files
with
10,442 additions
and
1,039 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,53 @@ | ||
# Script to generate the necessary files for a msvscpp build | ||
# | ||
# Version: 20150105 | ||
# Version: 20161110 | ||
|
||
$WinFlex = "..\win_flex_bison\win_flex.exe" | ||
$WinBison = "..\win_flex_bison\win_bison.exe" | ||
|
||
$Library = Get-Content -Path configure.ac | select -skip 3 -first 1 | % { $_ -Replace " \[","" } | % { $_ -Replace "\],","" } | ||
$Version = Get-Content -Path configure.ac | select -skip 4 -first 1 | % { $_ -Replace " \[","" } | % { $_ -Replace "\],","" } | ||
$Prefix = ${Library}.Substring(3) | ||
|
||
Get-Content -Path "include\${Library}.h.in" > "include\${Library}.h" | ||
Get-Content -Path "include\${Library}\definitions.h.in" | % { $_ -Replace "@VERSION@","${Version}" } > "include\${Library}\definitions.h" | ||
Get-Content -Path "include\${Library}\features.h.in" | % { $_ -Replace "@[A-Z0-9_]*@","0" } > "include\${Library}\features.h" | ||
Get-Content -Path "include\${Library}\types.h.in" | % { $_ -Replace "@[A-Z0-9_]*@","0" } > "include\${Library}\types.h" | ||
Get-Content -Path "common\types.h.in" | % { $_ -Replace "@PACKAGE@","${Library}" } > "common\types.h" | ||
Get-Content -Path "${Library}\${Library}_definitions.h.in" | % { $_ -Replace "@VERSION@","${Version}" } > "${Library}\${Library}_definitions.h" | ||
Get-Content -Path "${Library}\${Library}.rc.in" | % { $_ -Replace "@VERSION@","${Version}" } > "${Library}\${Library}.rc" | ||
|
||
If (Test-Path "${Prefix}.net") | ||
{ | ||
Get-Content -Path "${Prefix}.net\${Prefix}.net.rc.in" | % { $_ -Replace "@VERSION@","${Version}" } > "${Prefix}.net\${Prefix}.net.rc" | ||
} | ||
|
||
$NamePrefix = "" | ||
|
||
ForEach (${DirectoryElement} in Get-ChildItem -Path "${Library}\*.l") | ||
{ | ||
$OutputFile = ${DirectoryElement} -Replace ".l$",".c" | ||
|
||
$NamePrefix = Split-Path -path ${DirectoryElement} -leaf | ||
$NamePrefix = ${NamePrefix} -Replace "^${Library}_","" | ||
$NamePrefix = ${NamePrefix} -Replace ".l$","_" | ||
|
||
# PowerShell will raise NativeCommandError if win_flex writes to stdout or stderr | ||
# therefore 2>&1 is added and the output is stored in a variable. | ||
$Output = Invoke-Expression -Command "& '${WinFlex}' -Cf ${DirectoryElement} 2>&1" | ||
Write-Host ${Output} | ||
|
||
# Moving manually since win_flex -o <filename> does not provide the expected behavior. | ||
Move-Item "lex.yy.c" ${OutputFile} -force | ||
} | ||
|
||
ForEach (${DirectoryElement} in Get-ChildItem -Path "${Library}\*.y") | ||
{ | ||
$OutputFile = ${DirectoryElement} -Replace ".y$",".c" | ||
|
||
Get-Content -Path include\${Library}.h.in > include\${Library}.h | ||
Get-Content -Path include\${Library}\definitions.h.in | % { $_ -Replace "@VERSION@",${Version} } > include\${Library}\definitions.h | ||
Get-Content -Path include\${Library}\features.h.in | % { $_ -Replace "@[A-Z0-9_]*@","0" } > include\${Library}\features.h | ||
Get-Content -Path include\${Library}\types.h.in | % { $_ -Replace "@[A-Z0-9_]*@","0" } > include\${Library}\types.h | ||
Get-Content -Path common\types.h.in | % { $_ -Replace "@PACKAGE@",${Library} } > common\types.h | ||
Get-Content -Path ${Library}\${Library}_definitions.h.in | % { $_ -Replace "@VERSION@",${Version} } > ${Library}\${Library}_definitions.h | ||
Get-Content -Path ${Library}\${Library}.rc.in | % { $_ -Replace "@VERSION@",${Version} } > ${Library}\${Library}.rc | ||
# PowerShell will raise NativeCommandError if win_bison writes to stdout or stderr | ||
# therefore 2>&1 is added and the output is stored in a variable. | ||
$Output = Invoke-Expression -Command "& '${WinBison}' -d -v -l -p ${NamePrefix} -o ${OutputFile} ${DirectoryElement} 2>&1" | ||
Write-Host ${Output} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ AC_PREREQ( 2.59 ) | |
|
||
AC_INIT( | ||
[libpff], | ||
[20161108], | ||
[20161111], | ||
[[email protected]]) | ||
|
||
AC_CONFIG_SRCDIR( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,5 +44,5 @@ int libpff_allocation_table_read( | |
} | ||
#endif | ||
|
||
#endif | ||
#endif /* !defined( _LIBPFF_ALLOCATION_TABLE_H ) */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,5 +82,5 @@ int libpff_attachment_get_item( | |
} | ||
#endif | ||
|
||
#endif | ||
#endif /* !defined( _LIBPFF_ATTACHMENT_H ) */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,5 +75,5 @@ int libpff_column_definition_free( | |
} | ||
#endif | ||
|
||
#endif | ||
#endif /* !defined( _LIBPFF_COLUMN_DEFINITION_H ) */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,5 +43,5 @@ int libpff_decompress_data( | |
} | ||
#endif | ||
|
||
#endif | ||
#endif /* !defined( _LIBPFF_COMPRESS_H ) */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,5 +129,5 @@ int libpff_data_array_decrypt_entry_data( | |
} | ||
#endif | ||
|
||
#endif | ||
#endif /* !defined( _LIBPFF_DATA_ARRAY_H ) */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,5 +61,5 @@ int libpff_data_array_entry_clone( | |
} | ||
#endif | ||
|
||
#endif | ||
#endif /* !defined( _LIBPFF_DATA_ARRAY_ENTRY_H ) */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,5 +113,5 @@ int libpff_data_block_decrypt_data( | |
} | ||
#endif | ||
|
||
#endif | ||
#endif /* !defined( _LIBPFF_DATA_BLOCK_H ) */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,5 +99,5 @@ int libpff_debug_print_read_offsets( | |
} | ||
#endif | ||
|
||
#endif | ||
#endif /* !defined( _LIBPFF_DEBUG_H ) */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -138,5 +138,5 @@ int libpff_deflate_decompress( | |
} | ||
#endif | ||
|
||
#endif | ||
#endif /* !defined( _LIBPFF_DEFLATE_COMPRESSION_H ) */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,5 +42,5 @@ ssize_t libpff_encryption_decrypt( | |
} | ||
#endif | ||
|
||
#endif | ||
#endif /* !defined( _LIBPFF_ENCRYPTION_H ) */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -290,5 +290,5 @@ int libpff_file_get_recovered_item( | |
} | ||
#endif | ||
|
||
#endif | ||
#endif /* !defined( _LIBPFF_INTERNAL_FILE_H ) */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -155,5 +155,5 @@ int libpff_folder_get_unknowns( | |
} | ||
#endif | ||
|
||
#endif | ||
#endif /* !defined( _LIBPFF_FOLDER_H ) */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,5 +44,5 @@ int libpff_free_map_read( | |
} | ||
#endif | ||
|
||
#endif | ||
#endif /* !defined( _LIBPFF_FREE_MAP_H ) */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -124,5 +124,5 @@ int libpff_index_read_sub_nodes( | |
} | ||
#endif | ||
|
||
#endif | ||
#endif /* !defined( _LIBPFF_INDEX_H ) */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,5 +108,5 @@ int libpff_index_node_check_for_empty_block( | |
} | ||
#endif | ||
|
||
#endif | ||
#endif /* !defined( _LIBPFF_NODE_INDEX_H ) */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,5 +99,5 @@ int libpff_index_tree_insert_value( | |
} | ||
#endif | ||
|
||
#endif | ||
#endif /* !defined( _LIBPFF_INDEX_TREE_H ) */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,5 +106,5 @@ int libpff_index_value_compare( | |
} | ||
#endif | ||
|
||
#endif | ||
#endif /* !defined( _LIBPFF_INDEX_VALUES_H ) */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,5 +130,5 @@ int libpff_io_handle_read_index_node( | |
} | ||
#endif | ||
|
||
#endif | ||
#endif /* !defined( _LIBPFF_IO_HANDLE_H ) */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,5 +52,5 @@ int libpff_io_handle_read_descriptor_data_list( | |
} | ||
#endif | ||
|
||
#endif | ||
#endif /* !defined( _LIBPFF_IO_HANDLE2_H ) */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.