echo ====== start script ===============================================================
echo execute  $0
## Set the current dir 3 level before the script, it sees the src/srcDir/makeScripts:
cd $(dirname $0)/../../..
echo currdir $PWD

## Determines the name of some files marked with the date.
## If it not set, the current date will be used. This is usual proper, to prevent confusion.
export VERSIONSTAMP="$(date -I)"
export VERSIONSTAMP_GETWEBF=""

## Determines the timestamp of the files in the jar. The timestamp determines the MD5 check code. 
## Do not change the timestamp on repeated build, and check the checksum and content of jar.
## If it is equal, it is a reproduces build. The $TIMEinJAR is important 
##  because it determines the timestamp and hence the checksum in the jar file. 
## Using another timestamp on equal result files forces another MD5.
## Hence let this unchanged in comparison to a pre-version 
## if it is assumed that the sources are unchanged.
## Only then a comparison of MD5 is possible. 
## The comparison byte by byte inside the jar (zip) file is always possible.
export TIMEinJAR="2025-12-22+00:00"
export TIMEinJAR_GETWEBF="2025-12-21+00:00"

## This directory contains some basic scripts. Should be exists
export MAKEBASEDIR="src/srcJava_vishiaBase/makeScripts"

## Determine the name of some files and directories with the component's name:
export DSTNAME="vishiaBase"

## Determines the sources for this component to create a jar
SRCDIRNAME="src/srcJava_vishiaBase"
export SRC_ALL="$SRCDIRNAME/java"            ## use all sources from here
export SRC_ALL2=""                           ## use all sources also from here
export SRCPATH="";                           ## search path for depending sources if FILE1SRC is given
export FILE1SRC=""                           ## use a specific source file (with depending ones)

# Determines search path for compiled sources (in jar) for this component. 
# do not left empty because it is used as argument for javac
set CLASSPATH=""

## Determines the manifest file for the jar
export MANIFEST="$SRCDIRNAME/makeScripts/$DSTNAME.manifest"

# Determines resource files to store in the jar
export RESOURCEFILES="$SRC_ALL:**/*.zbnf $SRC_ALL:**/*.txt $SRC_ALL:**/*.xml $SRC_ALL:**/*.png"

## add paths to the source.zip, should be a relative path from current dir unset it if no source.zip is desired.
export SRCADD_ZIP=".:$SRCDIRNAME/makeScripts/* .:$SRCDIRNAME/asciidoc/**/*"

export SRCZIPFILE="$DSTNAME-$VERSIONSTAMP-source.zip"  ## also used for Minisys, hence defined here. Note VERSIONSTAMP should be defined.


#now run the common script:
chmod 777 $MAKEBASEDIR/-makejar-coreScript.sh
$MAKEBASEDIR/-makejar-coreScript.sh


echo
echo
echo                             
echo
echo
echo


echo ====== build GetWebfile: =============================================================
#==============
export TIMEinJAR=$TIMEinJAR_GETWEBF

## Determine the name of some files and directories with the component's name:
export VERSIONSTAMP="$VERSION_GETWEBF"
export DSTNAME="vishiaGetWebfile"

## Determines the sources for this component to create a jar
SRCDIRNAME="src/srcJava_vishiaBase"
export SRC_ALL=""                            ## use all sources from here
export SRC_ALL2=""                           ## use all sources also from here
export FILE1SRC="@$SRCDIRNAME/makeScripts/GetWebfile.files" #files to compile contained in this file
export SRCPATH="$SRCDIRNAME/java";           ## search path for depending sources if FILE1SRC is given

# Determines search path for compiled sources (in jar) for this component. 
# do not left empty because it is used as argument for javac
unset CLASSPATH

## Determines the mainfist file for the jar
export MANIFEST=$SRCDIRNAME/makeScripts/GetWebfile.manifest

# Determines resource files to store in the jar
export RESOURCEFILES=""

unset SRCADD_ZIP   ## do not create a ...source.zip

#now run the common script:
$MAKEBASEDIR/-makejar-coreScript.sh


