fixed different handling of egrep between mac and ubuntu

master
Martin Scheidt 2022-02-14 18:56:21 +01:00
parent 0e47498055
commit 1119e991ad
3 changed files with 4 additions and 7 deletions

View File

@ -28,9 +28,6 @@ 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,9 +18,6 @@ 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

@ -107,9 +107,12 @@ check_zip
## extract DATE from versionhistory.tex
LINE=$(grep "vhEntry{$VERSION_NUM" doc/versionhistory.tex)
DATEISO=$(echo $LINE | egrep -o '\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])')
DATEISO=$(echo $LINE | egrep -o '[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])')
# DATE=$(echo $DATEISO | sed -e "s|-|\\\/|g") # with escape character for sed
# DATE=$(date "+%Y\/%m\/%d") # with escape character for sed
if [ $verbose = 1 ]; then
echo "The date $DATEISO was extracted from versionhistory.tex."
fi
## create backup-file und update VERSIONDATE in tikz-trackschematic.sty
sed -i '.backup' -e "s|VERSIONDATE|$DATEISO|g" src/tikz-trackschematic.sty