Skip to content

Commit

Permalink
Merge branch 'release/2.94.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
tomschr committed May 16, 2024
2 parents 9ce772f + 8534411 commit 3dae7af
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .versionrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 2.94.6
version: 2.94.7
files: Makefile README.adoc
changesfile: ChangeLog
format: (0|[1-9][0-9]*)\.(0|[1-9][0-9]{0,1})\.(0|[1-9][0-9]{0,1})
Expand Down
14 changes: 13 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
-------------------------------------------------------------------
Wed May 16 13:19:00 UTC 2024 - [email protected]

Update 2.94.7
- Corrected handling of dateModified & datePublished (#624, DOCTEAM-1367)
Also allow datePublished <= dateModified
- Fix some JSON-LD problems (#626)
- No JSON-LD was generated for SBP & TRD
- Simplify XPath for extracting revhistory
- Improve handling of SBP series (#624, #628)
- Improve handling of TRD series/partners (#627)

-------------------------------------------------------------------
Wed Mar 27 16:19:56 UTC 2024 - [email protected]

Update 2.95.6
Update 2.94.6
- Fix JSON-LD generation for single & chunked HTML (#622)
- Metadata: Make checking for content more stable (#622)
- Check for $content != '' instead of just $content
Expand Down
102 changes: 102 additions & 0 deletions create-archive.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
#!/bin/bash
#
# Create an archive of project directory for OBS
#
# Author: Tom Schraitle, 2022-2023


set -o errexit
set -o pipefail
set -o nounset
# set -o xtrace

ME="${0##*/}"
NAME="suse-xsl"
OUTDIR="/tmp"
SUFFIX=".tar.gz"
FROM="HEAD"

function exit_on_error {
echo "ERROR: ${1}" >&2
exit 1;
}

function usage {
cat << EOF
Create archive of current repo
SYNOPSIS
$ME [OPTIONS] [VERSION]
$ME -h|--help
OPTIONS
-h, --help Output this help text.
--outdir=OUTDIR Store archive in OUTDIR (default ${OUTDIR@Q})
-f FROM, --from=FROM
The tree or commit to produce an archive for
(default ${FROM@Q})
ARGUMENTS
VERSION Use this version to create the archive
If omitted, the version is retrieved through "git describe"
Any "v" prefix is removed.
EXAMPLES:
1. $ME
creates an archive and stores it under $OUTDIR
2. $ME --outdir=/local/repo
creates an archive and stores it under /local/repo
3. $ME v3.0.0
creates an archive /tmp/$NAME-3.0.0.tar.bz2
EOF
}

# -- CLI parsing
ARGS=$(getopt -o h,f: -l help,from:,outdir: -n "$ME" -- "$@")
eval set -- "$ARGS"
while true; do
case "$1" in
--help|-h)
usage
exit 0
shift
;;
-f|--from)
FROM="$2"
shift 2
;;
--outdir)
OUTDIR="$2"
if [ ! -d "$OUTDIR" ]; then
mkdir -p "$OUTDIR"
fi
shift 2
;;
--) shift ; break ;;
*) exit_on_error "Wrong parameter: $1" ;;
esac
done

# Remove last slash and expand ~ with $HOME
OUTDIR=${OUTDIR%*/}
OUTDIR=${OUTDIR/#\~/$HOME}

# Get version from git:
VERSION=$(git describe)

# Overwrite VERSION with first argument
if [ "$#" -ne 0 ]; then
VERSION="$1"
fi

# Remove "v" prefix:
VERSION=${VERSION#v*}
FILE="${OUTDIR}/${NAME}-${VERSION}${SUFFIX}"
echo "Generating version ${FILE@Q}..."

git archive --worktree-attributes --format=${SUFFIX#.*} \
--prefix="suse-xsl-${VERSION}/" \
--output="${FILE}" \
"$FROM"

0 comments on commit 3dae7af

Please sign in to comment.