Skip to content

Commit 40f55ad

Browse files
authored
Merge pull request #63 from DrDaveD/simplify-build-instructions
Simplify build instructions
2 parents 58e11ef + f1d6834 commit 40f55ad

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,11 @@ Instructions for Generating a Release
4848

4949
SciTokens-cpp includes a submodule, jwt-cpp. Therefore, to create a release, you have to include the submodule into the release.
5050

51-
git archive --prefix "scitokens-cpp-0.3.3/" -o "scitokens-cpp-0.3.3.tar" v0.3.3
51+
VER=0.3.3 # for example
52+
git archive --prefix "scitokens-cpp-$VER/" -o "scitokens-cpp-$VER.tar" v$VER
5253
git submodule update --init
53-
git submodule foreach --recursive "git archive --prefix=scitokens-cpp-0.3.3/\$path/ --output=\$sha1.tar HEAD && tar --concatenate --file=$(pwd)/scitokens-cpp-0.3.3.tar \$sha1.tar && rm \$sha1.tar"
54-
gzip "scitokens-cpp-0.3.3.tar"
54+
git submodule foreach --recursive "git archive --prefix=scitokens-cpp-$VER/\$path/ --output=\$sha1.tar HEAD && tar --concatenate --file=$(pwd)/scitokens-cpp-$VER.tar \$sha1.tar && rm \$sha1.tar"
55+
gzip "scitokens-cpp-$VER.tar"
5556

5657
This package is built on the
5758
[cvmfs-config OpenSUSE Build Service](https://build.opensuse.org/project/show/home:cvmfs:contrib).

rpm/scitokens-cpp.spec

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ License: ASL 2.0
66
URL: https://github.com/scitokens/scitokens-cpp
77

88
# Directions to generate a proper release:
9-
# git archive --prefix "scitokens-cpp-0.3.3/" -o "scitokens-cpp-0.3.3.tar" v0.3.3
9+
# VER=0.3.3 # for example
10+
# git archive --prefix "scitokens-cpp-$VER/" -o "scitokens-cpp-$VER.tar" v$VER
1011
# git submodule update --init
11-
# git submodule foreach --recursive "git archive --prefix=scitokens-cpp-0.3.3/\$path/ --output=\$sha1.tar HEAD && tar --concatenate --file=$(pwd)/scitokens-cpp-0.3.3.tar \$sha1.tar && rm \$sha1.tar"
12-
# gzip "scitokens-cpp-0.3.3.tar"
12+
# git submodule foreach --recursive "git archive --prefix=scitokens-cpp-$VER/\$path/ --output=\$sha1.tar HEAD && tar --concatenate --file=$(pwd)/scitokens-cpp-$VER.tar \$sha1.tar && rm \$sha1.tar"
13+
# gzip "scitokens-cpp-$VER.tar"
1314
Source0: https://github.com/scitokens/scitokens-cpp/releases/download/v%{version}/%{name}-%{version}.tar.gz
1415

1516
# Scitokens-cpp bundles jwt-cpp, a header only dependency

0 commit comments

Comments
 (0)