Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fc-pregmod
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pregmodfan
fc-pregmod
Commits
ce668650
Commit
ce668650
authored
7 years ago
by
j
Browse files
Options
Downloads
Patches
Plain Diff
Noob error, forgot to login before putting.
parent
1a99745c
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1521
Reorganised files.
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
devTools/AutoGitVersionUploadBackground.sh
+1
-1
1 addition, 1 deletion
devTools/AutoGitVersionUploadBackground.sh
devTools/AutoGitVersionUploadForground.sh
+1
-1
1 addition, 1 deletion
devTools/AutoGitVersionUploadForground.sh
with
2 additions
and
2 deletions
devTools/AutoGitVersionUploadBackground.sh
+
1
−
1
View file @
ce668650
...
@@ -6,7 +6,7 @@ while [ $COUNTER -ge 0 ]; do
...
@@ -6,7 +6,7 @@ while [ $COUNTER -ge 0 ]; do
cd
$LocalDir
/
&&
AbrevHash
=
`
git log
--reverse
-n1
--abbrev-commit
|grep
-m1
commit |
sed
's/commit //'
`
cd
$LocalDir
/
&&
AbrevHash
=
`
git log
--reverse
-n1
--abbrev-commit
|grep
-m1
commit |
sed
's/commit //'
`
if
[
$COUNTER
-eq
0
]
;
then
./compile
>
/dev/null
&&
mv
bin/FC_pregmod.html
"bin/FC-pregmod-
$(
git log
-1
--format
=
'%cd'
--date
=
'format:%F-%H-%M'
)
-
$AbrevHash
.html"
&&
mega-put bin/
*
.html
$RemoteDir
if
[
$COUNTER
-eq
0
]
;
then
./compile
>
/dev/null
&&
mv
bin/FC_pregmod.html
"bin/FC-pregmod-
$(
git log
-1
--format
=
'%cd'
--date
=
'format:%F-%H-%M'
)
-
$AbrevHash
.html"
&&
mega-put bin/
*
.html
$RemoteDir
else if
[
"
$(
git pull
)
"
==
"Already up to date."
]
;
then
exit
else if
[
"
$(
git pull
)
"
==
"Already up to date."
]
;
then
exit
else
rm
bin/
*
.html
;
.compile
>
/dev/null
&&
mv
bin/FC_pregmod.html
"bin/FC-pregmod-
$(
git log
-1
--format
=
'%cd'
--date
=
'format:%F-%H-%M'
)
-
$AbrevHash
.html"
&&
mega-put bin/
*
.html
$RemoteDir
else
rm
bin/
*
.html
;
.compile
>
/dev/null
&&
mv
bin/FC_pregmod.html
"bin/FC-pregmod-
$(
git log
-1
--format
=
'%cd'
--date
=
'format:%F-%H-%M'
)
-
$AbrevHash
.html"
&&
mega-login
$U
$P
&&
mega-put bin/
*
.html
$RemoteDir
fi
fi
fi
fi
let
COUNTER
=
COUNTER+1
&&
mega-logout
>
/dev/null
&&
sleep
300s
let
COUNTER
=
COUNTER+1
&&
mega-logout
>
/dev/null
&&
sleep
300s
...
...
This diff is collapsed.
Click to expand it.
devTools/AutoGitVersionUploadForground.sh
+
1
−
1
View file @
ce668650
...
@@ -6,7 +6,7 @@ while [ $COUNTER -ge 0 ]; do
...
@@ -6,7 +6,7 @@ while [ $COUNTER -ge 0 ]; do
cd
$LocalDir
/
&&
AbrevHash
=
`
git log
-n1
--reverse
--abbrev-commit
|grep
-m1
commit |
sed
's/commit //'
`
cd
$LocalDir
/
&&
AbrevHash
=
`
git log
-n1
--reverse
--abbrev-commit
|grep
-m1
commit |
sed
's/commit //'
`
if
[
$COUNTER
-eq
0
]
;
then
echo
"First run. Compliling, formatting and placing .html."
&&
./compile
>
/dev/null
&&
mv
bin/FC_pregmod.html
"bin/FC-pregmod-
$(
git log
-1
--format
=
'%cd'
--date
=
'format:%F-%H-%M'
)
-
$AbrevHash
.html"
&&
mega-put bin/
*
.html
$RemoteDir
&&
echo
"Inital compiled .html placed."
if
[
$COUNTER
-eq
0
]
;
then
echo
"First run. Compliling, formatting and placing .html."
&&
./compile
>
/dev/null
&&
mv
bin/FC_pregmod.html
"bin/FC-pregmod-
$(
git log
-1
--format
=
'%cd'
--date
=
'format:%F-%H-%M'
)
-
$AbrevHash
.html"
&&
mega-put bin/
*
.html
$RemoteDir
&&
echo
"Inital compiled .html placed."
else if
[
"
$(
git pull
)
"
==
"Already up to date."
]
;
then
echo
"No updated files."
else if
[
"
$(
git pull
)
"
==
"Already up to date."
]
;
then
echo
"No updated files."
else
echo
"Compliling, formatting and placing updated .html."
;
rm
bin/
*
.html
;
./compile
>
/dev/null
&&
mv
bin/FC_pregmod.html
"bin/FC-pregmod-
$(
git log
-1
--format
=
'%cd'
--date
=
'format:%F-%H-%M'
)
-
$AbrevHash
.html"
&&
mega-put bin/
*
.html
$RemoteDir
;
echo
"Updated .html placed."
else
echo
"Compliling, formatting and placing updated .html."
;
rm
bin/
*
.html
;
./compile
>
/dev/null
&&
mv
bin/FC_pregmod.html
"bin/FC-pregmod-
$(
git log
-1
--format
=
'%cd'
--date
=
'format:%F-%H-%M'
)
-
$AbrevHash
.html"
&&
mega-login
$U
$P
&&
mega-put bin/
*
.html
$RemoteDir
;
echo
"Updated .html placed."
fi
fi
fi
fi
let
COUNTER
=
COUNTER+1
&&
mega-logout
>
/dev/null
&&
sleep
300s
let
COUNTER
=
COUNTER+1
&&
mega-logout
>
/dev/null
&&
sleep
300s
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment