Skip to content

Commit

Permalink
Applied updates
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz committed Jan 20, 2024
1 parent 1a6339a commit ee17232
Show file tree
Hide file tree
Showing 189 changed files with 281 additions and 213 deletions.
2 changes: 1 addition & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Acknowledgements: liblnk

Copyright (C) 2009-2023, Joachim Metz <[email protected]>
Copyright (C) 2009-2024, Joachim Metz <[email protected]>

72 changes: 62 additions & 10 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,66 @@ environment:
CFLAGS: "-I/usr/local/include"
LDFLAGS: "-L/usr/local/lib"
CONFIGURE_OPTIONS: "--disable-dependency-tracking --prefix=/usr/local --enable-python --with-pyprefix"
- TARGET: python311
BUILD_ENVIRONMENT: python
- TARGET: windows-tox-py38-32bit
BUILD_ENVIRONMENT: python-tox
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
PYTHON: "C:\\Python38\\python.exe"
PYTHON_VERSION: 3.8
TOXENV: py38
- TARGET: windows-tox-py38-64bit
BUILD_ENVIRONMENT: python-tox
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
PYTHON: "C:\\Python38-x64\\python.exe"
PYTHON_VERSION: 3.8
TOXENV: py38
- TARGET: windows-tox-py39-32bit
BUILD_ENVIRONMENT: python-tox
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
PYTHON: "C:\\Python39\\python.exe"
PYTHON_VERSION: 3.9
TOXENV: py39
- TARGET: windows-tox-py39-64bit
BUILD_ENVIRONMENT: python-tox
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
PYTHON: "C:\\Python39-x64\\python.exe"
PYTHON_VERSION: 3.9
TOXENV: py39
- TARGET: windows-tox-py310-32bit
BUILD_ENVIRONMENT: python-tox
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
PYTHON: "C:\\Python310\\python.exe"
PYTHON_VERSION: 3.10
TOXENV: py310
- TARGET: windows-tox-py310-64bit
BUILD_ENVIRONMENT: python-tox
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
PYTHON: "C:\\Python310-x64\\python.exe"
PYTHON_VERSION: 3.10
TOXENV: py310
- TARGET: windows-tox-py311-32bit
BUILD_ENVIRONMENT: python-tox
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
PYTHON: "C:\\Python311\\python.exe"
- TARGET: python311-x64
BUILD_ENVIRONMENT: python
PYTHON_VERSION: 3.11
TOXENV: py311
- TARGET: windows-tox-py311-64bit
BUILD_ENVIRONMENT: python-tox
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
PYTHON: "C:\\Python311-x64\\python.exe"
PYTHON_VERSION: 3.11
TOXENV: py311
- TARGET: windows-tox-py312-32bit
BUILD_ENVIRONMENT: python-tox
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
PYTHON: "C:\\Python312\\python.exe"
PYTHON_VERSION: 3.12
TOXENV: py312
- TARGET: windows-tox-py312-64bit
BUILD_ENVIRONMENT: python-tox
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
PYTHON: "C:\\Python312-x64\\python.exe"
PYTHON_VERSION: 3.12
TOXENV: py312
- TARGET: macos-tox-py38
BUILD_ENVIRONMENT: python-tox
APPVEYOR_BUILD_WORKER_IMAGE: macos-monterey
Expand Down Expand Up @@ -201,9 +253,9 @@ install:
git clone https://github.com/libyal/vstools.git ..\vstools )
- sh: if test ${BUILD_ENVIRONMENT} = "python-tox" || test ${BUILD_ENVIRONMENT} = "xcode"; then brew update-reset && brew update -q; fi
- sh: if test ${BUILD_ENVIRONMENT} = "python-tox" || test ${BUILD_ENVIRONMENT} = "xcode"; then brew install -q autoconf automake gettext gnu-sed libtool pkg-config || true; fi
- cmd: if [%BUILD_ENVIRONMENT%]==[python-tox] (
"%PYTHON%" -m pip install -U tox twine )
- sh: if test ${BUILD_ENVIRONMENT} = "python-tox"; then brew install -q python@${PYTHON_VERSION} tox twine-pypi || true; fi
- cmd: if [%BUILD_ENVIRONMENT%]==[python] (
"%PYTHON%" -m pip install -U pip setuptools twine wheel )
- ps: If ($env:BUILD_ENVIRONMENT -eq "cygwin64") {
(New-Object Net.WebClient).DownloadFile("https://cygwin.com/setup-x86_64.exe", "C:\\cygwin64\\setup-x86_64.exe") }
- cmd: if [%BUILD_ENVIRONMENT%]==[cygwin64] (
Expand All @@ -214,7 +266,7 @@ install:
$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri https://uploader.codecov.io/latest/windows/codecov.exe -Outfile ..\codecov.exe }

build_script:
- ps: If ($env:BUILD_ENVIRONMENT -eq "msbuild" -or ($env:BUILD_ENVIRONMENT -eq "python" -and $isWindows)) {
- ps: If ($env:BUILD_ENVIRONMENT -eq "msbuild" -or ($env:BUILD_ENVIRONMENT -eq "python-tox" -and $isWindows)) {
.\synclibs.ps1;
.\autogen.ps1 }
- ps: If ($env:TARGET -eq "vs2008") {
Expand All @@ -233,8 +285,8 @@ build_script:
move vs2022 msvscpp &&
nuget pack liblnk.nuspec )
- sh: if test ${BUILD_ENVIRONMENT} = "xcode"; then export PATH="/usr/local/opt/gettext/bin:$PATH"; export SED="/usr/local/bin/gsed"; tests/build.sh ${CONFIGURE_OPTIONS}; fi
- cmd: if [%BUILD_ENVIRONMENT%]==[python] (
"%PYTHON%" setup.py bdist_wheel )
- cmd: if [%BUILD_ENVIRONMENT%]==[python-tox] (
"%PYTHON%" -m tox -e%TOXENV% )
- sh: if test ${BUILD_ENVIRONMENT} = "python-tox"; then export PATH="/usr/local/opt/gettext/bin:$PATH"; export SED="/usr/local/bin/gsed"; ./synclibs.sh && ./autogen.sh && ./configure --disable-nls --disable-shared-libs && make sources >/dev/null && tox -e${TOXENV}; fi
- cmd: if [%BUILD_ENVIRONMENT%]==[cygwin64] (
xcopy /i /q /s C:\projects\liblnk C:\cygwin64\home\appveyor\liblnk &&
Expand Down Expand Up @@ -270,7 +322,7 @@ artifacts:
deploy_script:
- ps: If ($env:APPVEYOR_REPO_TAG -eq "true" -and $isWindows -and $env:TARGET -eq "vs2022-nuget") {
Invoke-Expression "nuget push *.nupkg -NonInteractive -NoSymbols -Source https://api.nuget.org/v3/index.json -ApiKey ${env:NUGET_TOKEN}" }
- ps: If ($env:APPVEYOR_REPO_TAG -eq "true" -and $isWindows -and $env:BUILD_ENVIRONMENT -eq "python") {
- ps: If ($env:APPVEYOR_REPO_TAG -eq "true" -and $isWindows -and $env:BUILD_ENVIRONMENT -eq "python-tox") {
Invoke-Expression "${env:PYTHON} -m twine upload dist/*.whl --username __token__ --password ${env:PYPI_TOKEN} --skip-existing" }
- sh: if test ${APPVEYOR_REPO_TAG} = "true" && test ${BUILD_ENVIRONMENT} = "python-tox"; then twine upload dist/*.whl --username __token__ --password ${PYPI_TOKEN} --skip-existing; fi

25 changes: 15 additions & 10 deletions autogen.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Script to generate the necessary files for a msvscpp build
#
# Version: 20230104
# Version: 20230118

$WinFlex = "..\win_flex_bison\win_flex.exe"
$WinBison = "..\win_flex_bison\win_bison.exe"
Expand All @@ -9,17 +9,22 @@ $Library = Get-Content -Path configure.ac | select -skip 3 -first 1 | % { $_ -Re
$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"
Get-Content -Path "include\${Library}.h.in" | Out-File -Encoding ascii "include\${Library}.h"
Get-Content -Path "include\${Library}\definitions.h.in" | % { $_ -Replace "@VERSION@","${Version}" } | Out-File -Encoding ascii "include\${Library}\definitions.h"
Get-Content -Path "include\${Library}\features.h.in" | % { $_ -Replace "@[A-Z0-9_]*@","0" } | Out-File -Encoding ascii "include\${Library}\features.h"
Get-Content -Path "include\${Library}\types.h.in" | % { $_ -Replace "@[A-Z0-9_]*@","0" } | Out-File -Encoding ascii "include\${Library}\types.h"
Get-Content -Path "common\types.h.in" | % { $_ -Replace "@PACKAGE@","${Library}" } | Out-File -Encoding ascii "common\types.h"
Get-Content -Path "${Library}\${Library}_definitions.h.in" | % { $_ -Replace "@VERSION@","${Version}" } | Out-File -Encoding ascii "${Library}\${Library}_definitions.h"
Get-Content -Path "${Library}\${Library}.rc.in" | % { $_ -Replace "@VERSION@","${Version}" } | Out-File -Encoding ascii "${Library}\${Library}.rc"

If (Test-Path "setup.cfg.in")
{
Get-Content -Path "setup.cfg.in" | % { $_ -Replace "@VERSION@","${Version}" } | Out-File -Encoding ascii "setup.cfg"
}

If (Test-Path "${Prefix}.net")
{
Get-Content -Path "${Prefix}.net\${Prefix}.net.rc.in" | % { $_ -Replace "@VERSION@","${Version}" } > "${Prefix}.net\${Prefix}.net.rc"
Get-Content -Path "${Prefix}.net\${Prefix}.net.rc.in" | % { $_ -Replace "@VERSION@","${Version}" } | Out-File -Encoding ascii "${Prefix}.net\${Prefix}.net.rc"
}

$NamePrefix = ""
Expand All @@ -38,7 +43,7 @@ ForEach (${DirectoryElement} in Get-ChildItem -Path "${Library}\*.l")
$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.
# Moving manually since `win_flex -o filename' does not provide the expected behavior.
Move-Item "lex.yy.c" ${OutputFile} -force
}

Expand Down
2 changes: 1 addition & 1 deletion common/byte_stream.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Byte stream functions
*
* Copyright (C) 2009-2023, Joachim Metz <[email protected]>
* Copyright (C) 2009-2024, Joachim Metz <[email protected]>
*
* Refer to AUTHORS for acknowledgements.
*
Expand Down
2 changes: 1 addition & 1 deletion common/common.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Common include file
*
* Copyright (C) 2009-2023, Joachim Metz <[email protected]>
* Copyright (C) 2009-2024, Joachim Metz <[email protected]>
*
* Refer to AUTHORS for acknowledgements.
*
Expand Down
2 changes: 1 addition & 1 deletion common/config_borlandc.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Configuration for the Borland/CodeGear C++ Builder compiler
*
* Copyright (C) 2009-2023, Joachim Metz <[email protected]>
* Copyright (C) 2009-2024, Joachim Metz <[email protected]>
*
* Refer to AUTHORS for acknowledgements.
*
Expand Down
2 changes: 1 addition & 1 deletion common/config_msc.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Configuration for the Microsoft Visual Studio C++ compiler
*
* Copyright (C) 2009-2023, Joachim Metz <[email protected]>
* Copyright (C) 2009-2024, Joachim Metz <[email protected]>
*
* Refer to AUTHORS for acknowledgements.
*
Expand Down
2 changes: 1 addition & 1 deletion common/config_winapi.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Configuration file for WINAPI
*
* Copyright (C) 2009-2023, Joachim Metz <[email protected]>
* Copyright (C) 2009-2024, Joachim Metz <[email protected]>
*
* Refer to AUTHORS for acknowledgements.
*
Expand Down
2 changes: 1 addition & 1 deletion common/file_stream.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* FILE stream functions
*
* Copyright (C) 2009-2023, Joachim Metz <[email protected]>
* Copyright (C) 2009-2024, Joachim Metz <[email protected]>
*
* Refer to AUTHORS for acknowledgements.
*
Expand Down
2 changes: 1 addition & 1 deletion common/memory.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Memory functions
*
* Copyright (C) 2009-2023, Joachim Metz <[email protected]>
* Copyright (C) 2009-2024, Joachim Metz <[email protected]>
*
* Refer to AUTHORS for acknowledgements.
*
Expand Down
2 changes: 1 addition & 1 deletion common/narrow_string.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Narrow character string functions
*
* Copyright (C) 2009-2023, Joachim Metz <[email protected]>
* Copyright (C) 2009-2024, Joachim Metz <[email protected]>
*
* Refer to AUTHORS for acknowledgements.
*
Expand Down
2 changes: 1 addition & 1 deletion common/system_string.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* System character string functions
*
* Copyright (C) 2009-2023, Joachim Metz <[email protected]>
* Copyright (C) 2009-2024, Joachim Metz <[email protected]>
*
* Refer to AUTHORS for acknowledgements.
*
Expand Down
2 changes: 1 addition & 1 deletion common/types.h.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Type and type-support definitions
*
* Copyright (C) 2009-2023, Joachim Metz <[email protected]>
* Copyright (C) 2009-2024, Joachim Metz <[email protected]>
*
* Refer to AUTHORS for acknowledgements.
*
Expand Down
2 changes: 1 addition & 1 deletion common/wide_string.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Wide character string functions
*
* Copyright (C) 2009-2023, Joachim Metz <[email protected]>
* Copyright (C) 2009-2024, Joachim Metz <[email protected]>
*
* Refer to AUTHORS for acknowledgements.
*
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ AC_PREREQ([2.71])

AC_INIT(
[liblnk],
[20231120],
[20240120],
[[email protected]])

AC_CONFIG_SRCDIR(
Expand Down
2 changes: 1 addition & 1 deletion dpkg/copyright
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Upstream-Name: liblnk
Source: https://github.com/libyal/liblnk

Files: *
Copyright: 2009-2023, Joachim Metz <[email protected]>
Copyright: 2009-2024, Joachim Metz <[email protected]>
License: LGPL-3.0+

License: LGPL-3.0+
Expand Down
2 changes: 1 addition & 1 deletion include/liblnk.h.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Library to access the Windows Shortcut File (LNK) format
*
* Copyright (C) 2009-2023, Joachim Metz <[email protected]>
* Copyright (C) 2009-2024, Joachim Metz <[email protected]>
*
* Refer to AUTHORS for acknowledgements.
*
Expand Down
2 changes: 1 addition & 1 deletion include/liblnk/codepage.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Codepage definitions for liblnk
*
* Copyright (C) 2009-2023, Joachim Metz <[email protected]>
* Copyright (C) 2009-2024, Joachim Metz <[email protected]>
*
* Refer to AUTHORS for acknowledgements.
*
Expand Down
2 changes: 1 addition & 1 deletion include/liblnk/definitions.h.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Definitions for liblnk
*
* Copyright (C) 2009-2023, Joachim Metz <[email protected]>
* Copyright (C) 2009-2024, Joachim Metz <[email protected]>
*
* Refer to AUTHORS for acknowledgements.
*
Expand Down
2 changes: 1 addition & 1 deletion include/liblnk/error.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* The error code definitions for liblnk
*
* Copyright (C) 2009-2023, Joachim Metz <[email protected]>
* Copyright (C) 2009-2024, Joachim Metz <[email protected]>
*
* Refer to AUTHORS for acknowledgements.
*
Expand Down
2 changes: 1 addition & 1 deletion include/liblnk/extern.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This header should be included in header files that export or import
* library functions
*
* Copyright (C) 2009-2023, Joachim Metz <[email protected]>
* Copyright (C) 2009-2024, Joachim Metz <[email protected]>
*
* Refer to AUTHORS for acknowledgements.
*
Expand Down
2 changes: 1 addition & 1 deletion include/liblnk/features.h.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Features of liblnk
*
* Copyright (C) 2009-2023, Joachim Metz <[email protected]>
* Copyright (C) 2009-2024, Joachim Metz <[email protected]>
*
* Refer to AUTHORS for acknowledgements.
*
Expand Down
2 changes: 1 addition & 1 deletion include/liblnk/types.h.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Type definitions for liblnk
*
* Copyright (C) 2009-2023, Joachim Metz <[email protected]>
* Copyright (C) 2009-2024, Joachim Metz <[email protected]>
*
* Refer to AUTHORS for acknowledgements.
*
Expand Down
6 changes: 3 additions & 3 deletions liblnk.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
<package >
<metadata>
<id>liblnk</id>
<version>20231120</version>
<version>20240120</version>
<authors>Joachim Metz</authors>
<owners>joachimmetz</owners>
<license type="expression">LGPL-3.0-or-later</license>
<projectUrl>https://github.com/libyal/liblnk</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<title>liblnk</title>
<description>Library to access the Windows Shortcut File (LNK) format</description>
<releaseNotes>Release of liblnk 20231120</releaseNotes>
<copyright>Copyright (C) 2009-2023</copyright>
<releaseNotes>Release of liblnk 20240120</releaseNotes>
<copyright>Copyright (C) 2009-2024</copyright>
<tags>native</tags>
</metadata>
<files>
Expand Down
2 changes: 1 addition & 1 deletion liblnk/liblnk.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Library to access the Windows Shortcut File (LNK) format
*
* Copyright (C) 2009-2023, Joachim Metz <[email protected]>
* Copyright (C) 2009-2024, Joachim Metz <[email protected]>
*
* Refer to AUTHORS for acknowledgements.
*
Expand Down
2 changes: 1 addition & 1 deletion liblnk/liblnk.rc.in
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ BEGIN
VALUE "FileDescription", "Library to access the Windows Shortcut File (LNK) format\0"
VALUE "FileVersion", "@VERSION@" "\0"
VALUE "InternalName", "liblnk.dll\0"
VALUE "LegalCopyright", "(C) 2009-2023, Joachim Metz <[email protected]>\0"
VALUE "LegalCopyright", "(C) 2009-2024, Joachim Metz <[email protected]>\0"
VALUE "OriginalFilename", "liblnk.dll\0"
VALUE "ProductName", "liblnk\0"
VALUE "ProductVersion", "@VERSION@" "\0"
Expand Down
2 changes: 1 addition & 1 deletion liblnk/liblnk_codepage.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Codepage functions
*
* Copyright (C) 2009-2023, Joachim Metz <[email protected]>
* Copyright (C) 2009-2024, Joachim Metz <[email protected]>
*
* Refer to AUTHORS for acknowledgements.
*
Expand Down
Loading

0 comments on commit ee17232

Please sign in to comment.