checking for zip program

master
Martin Scheidt 2022-02-14 18:06:21 +01:00
parent 3c83ea03cd
commit 0e47498055
3 changed files with 23 additions and 0 deletions

View File

@ -28,6 +28,9 @@ jobs:
- name: "install ghostscript"
run: sudo apt-get install -y ghostscript
- name: "install zip"
run: sudo apt-get install -y zip
###### multiple options for a TeX environment
# ##

View File

@ -18,6 +18,9 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
uses: actions/checkout@v2
- name: "install zip"
run: sudo apt-get install -y zip
## create varibale ${{ steps.tag.outputs.tag }}
- name: "get tag"
id: tag

View File

@ -82,11 +82,28 @@ check_versionhistory() {
exit 1
}
# check for zip
check_zip() {
status=0
command -v zip >/dev/null 2>&1 || status=1
if [ $status = 0 ]; then
if [ $verbose = 1 ]; then
echo "zip found"
fi
return 0
fi
echo "Program 'zip' not found."
echo "Be sure to have zip installed!"
exit 1
}
## -- creating the release
## check if $VERSION is present in README.md and versionhistory.tex
check_readme
check_versionhistory
check_zip
## extract DATE from versionhistory.tex
LINE=$(grep "vhEntry{$VERSION_NUM" doc/versionhistory.tex)