Skip to content

Commit

Permalink
Add version checks to makesrcdist script.
Browse files Browse the repository at this point in the history
Update VC and Xcode project versions.
  • Loading branch information
michaelrsweet committed Mar 20, 2023
1 parent 5c06517 commit 8dd18b7
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 5 deletions.
19 changes: 19 additions & 0 deletions scripts/makesrcdist
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,25 @@ if test "$changes" = "0"; then
exit 0
fi

# Check that the various version numbers are up to date...
temp="$(grep '^version:' snap/snapcraft.yaml | awk -F: '{print $2}' | tr -d ' ')"
if test "v$temp" != "v$version"; then
echo "snap/snapcraft.yaml needs to be updated."
exit 1
fi

temp="$(grep IPPSAMPLE_VERSION vcnet/config.h | awk -F\" '{print $2}')"
if test "v$temp" != "v$version"; then
echo "vcnet/config.h needs to be updated."
exit 1
fi

temp="$(grep IPPSAMPLE_VERSION xcode/config.h | awk -F\" '{print $2}')"
if test "v$temp" != "v$version"; then
echo "xcode/config.h needs to be updated."
exit 1
fi

# Create the tag for this release...
echo "Creating tag v$version for release..."
git tag -m "Tag $version" v$version
Expand Down
4 changes: 2 additions & 2 deletions vcnet/config.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// Visual Studio configuration file for the IPP sample code.
//
// Copyright © 2014-2022 by the Printer Working Group.
// Copyright © 2014-2023 by the Printer Working Group.
//
// Licensed under Apache License v2.0. See the file "LICENSE" for more
// information.
Expand Down Expand Up @@ -86,7 +86,7 @@ typedef unsigned long useconds_t;


// Version number
#define IPPSAMPLE_VERSION "1.0b1"
#define IPPSAMPLE_VERSION "2023.04"


// PAM support
Expand Down
4 changes: 2 additions & 2 deletions xcode/config.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// Xcode configuration file for the IPP sample code.
//
// Copyright © 2014-2022 by the Printer Working Group.
// Copyright © 2014-2023 by the Printer Working Group.
//
// Licensed under Apache License v2.0. See the file "LICENSE" for more
// information.
Expand All @@ -12,7 +12,7 @@


// Version number
#define IPPSAMPLE_VERSION "1.0b1"
#define IPPSAMPLE_VERSION "2023.04"


// PAM support
Expand Down
2 changes: 1 addition & 1 deletion xcode/ippsample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "-";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1.0;
CURRENT_PROJECT_VERSION = 2023.04;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
Expand Down

0 comments on commit 8dd18b7

Please sign in to comment.