<commit_before>#/bin/sh
#Actual date Folder =  create timestamp dir or text file  with optional name linux/windows - http://safrm.net/projects/af
#author:  <NAME> <EMAIL>
BINDIR=/usr/local/bin/
MANDIR=/usr/share/man

#root check
USERID=`id -u`
[ $USERID -eq "0" ] || {
    echo "I cannot continue, you should be root or run it with sudo!"
    exit 0
}

#automatic version
if command -v appver 1>/dev/null 2>&1 ; then . appver; else APP_SHORT_VERSION=NA ; APP_FULL_VERSION_TAG=NA ; APP_BUILD_DATE=`date +'%Y%m%d_%H%M'`; fi

#test
for TEST in $(  grep -r -l -h --exclude-dir=test --exclude-dir=.git  "#\!/bin/sh" . )
do
    sh -n $TEST
    if  [ $? != 0 ]; then
        echo "syntax error in $TEST, exiting.."
        exit 1
    fi
done

#update documentation
jss-docs-update ./doc


mkdir -p -m 0755 $BINDIR
install -m 0777 -v ./af  $BINDIR
install -m 0777 -v ./aff  $BINDIR
install -m 0777 -v ./ax  $BINDIR

MANPAGES=`find ./doc/manpages -type f`
sudo install -d -m 755 $MANDIR/man1
sudo install -m 644 $MANPAGES $MANDIR/man1
<commit_msg>Changes: appver-installer 1.3.0 in use<commit_after>#/bin/sh
#Actual date Folder =  create timestamp dir or text file  with optional name linux/windows
#web: http://safrm.net/projects/af
#author:  <NAME> <<EMAIL>>
. appver-installer

appver_basic_scripts_test

$INSTALL_755 ./af $BINDIR
$INSTALL_755 ./aff $BINDIR
$INSTALL_755 ./ax $BINDIR
appver_update_version_and_date $BINDIR/af
appver_update_version_and_date $BINDIR/aff
appver_update_version_and_date $BINDIR/ax


{'fraction_non_alphanumeric': 0.1341301460823373, 'fraction_numerical': 0.028552456839309428, 'mean_word_length': 3.4851190476190474, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3244874', 'n_tokens_mistral': 625, 'n_tokens_neox': 582, 'n_words': 170}