Page MenuHomeHEPForge

create_store_pathname_HS.bat
No OneTemporary

create_store_pathname_HS.bat

#!/bin/bash
#This script is part of HiggsSignals
# -TS
#It is called by configure. It creates the module store_pathname,
#which contains the path to the HiggsBounds package
#startdir="$PWD"
startdir=`pwd -P`
nameofpath=$startdir
teststring=$nameofpath
teststringlength=${#teststring}
maxlength=100
pathnamelength=`expr $teststringlength + 1` #because we're adding another '/' to the end
newstring=$teststring
echo '!******************************************************************'
echo 'module store_pathname_HS'
echo '!******************************************************************'
echo ' implicit none'
echo ''
echo ' integer,parameter:: pathname_length= '$pathnamelength
echo ' character(len=pathname_length),parameter :: pathname_HS= &'
echo ' & "'${newstring:0:maxlength}'" // &'
newstring=${newstring:maxlength}
while [ "${#newstring}" -gt "$maxlength" ]
do
echo ' & "'${newstring:0:maxlength}'" // &'
newstring=${newstring:maxlength}
done
echo ' & "'$newstring'/"'
echo ''
echo 'end module store_pathname_HS'
echo '!******************************************************************'

File Metadata

Mime Type
text/x-shellscript
Expires
Wed, May 14, 11:25 AM (14 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5069986
Default Alt Text
create_store_pathname_HS.bat (1 KB)

Event Timeline