FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
CoolProp/dev/scripts/sfManageJavaScript.bsh at master · CoolProp/CoolProp · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
CoolProp
/
CoolProp
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
382
Star
1.1k
Code
Issues
57
Pull requests
31
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
CoolProp
/
dev
/
scripts
/
sfManageJavaScript.bsh
Copy path
More file actions
More file actions
Latest commit
History
History
History
30 lines (30 loc) · 778 Bytes
Breadcrumbs
CoolProp
/
dev
/
scripts
/
sfManageJavaScript.bsh
Copy path
File metadata and controls
30 lines (30 loc) · 778 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!
/bin/bash
#
A little script to build the JavaScript repository on the
#
web directory. Can be run to regenerate the repo in case
#
it gets deleted accidentally.
#
FILDIR=
"
/home/frs/project/coolprop/CoolProp
"
WEBDIR=
"
/home/project-web/coolprop/htdocs
"
#
TARGETDIR=
"
${WEBDIR}
"
/jscript
mkdir -p
"
${TARGETDIR}
"
#
function
parsePath
{
local
CURFILE=
"
$1
"
local
CPVERSION=
$(
cut -d/ -f7
<<<
"
${CURFILE}
"
)
local
RES=
"
${TARGETDIR}
/coolprop-
${CPVERSION}
.js
"
echo
"
${RES}
"
}
#
JSFILES=
"
$(
find
${FILDIR}
-iname
'
*coolprop.js
'
)
"
for
CURFILE
in
$JSFILES
;
do
TARGETFILE=
"
$(
parsePath
$CURFILE
)
"
rsync
"
${CURFILE}
"
"
${TARGETFILE}
"
done
#
pushd
"
${TARGETDIR}
"
CURVER=
"
$(
ls
|
tail -n 3
|
head -n 1
)
"
LATVER=
"
coolprop-latest.js
"
ln -sf
"
${CURVER}
"
"
${LATVER}
"
popd
exit
0
Back
|
FazBrowse Home
|
New Git URL