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
6ede0627
Commit
6ede0627
authored
7 years ago
by
j
Browse files
Options
Downloads
Patches
Plain Diff
Updated.
parent
a76ba905
No related branches found
No related tags found
1 merge request
!1267
Updated.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
devTools/AutoGitVersionUpload.sh
+34
-11
34 additions, 11 deletions
devTools/AutoGitVersionUpload.sh
with
34 additions
and
11 deletions
devTools/AutoGitVersionUpload.sh
+
34
−
11
View file @
6ede0627
## Requires megatools
LocalDIR
=
~/fc-pregmod/
RemoteDIR
=
FCGIT
Uname
=
anon
Upass
=
13245
cd
$LocalDIR
/
git pull
rm
bin/
*
.html
./compile-git
mv
bin/
*
.html bin/html/
megacopy
-l
bin/html/
-r
/Root/
$RemoteDIR
--disable-previews
--no-ask-password
-u
$Uname
-p
$Upass
## Requires MEGAcmd, git, mv, cd, mkidr, echo
#!/bin/sh
LocalDir
=
~/fc-pregmod/
RemoteDir
=
FCGIT
U
=
anon@anon.anon
P
=
13245
mega-login
$U
$P
if
[[
$1
=
"-NewStart"
]]
;
then
echo
"Option -NewStart is on"
mega-mkdir
$RemoteDir
mega-export
-a
$RemoteDir
mkdir
$LocalDir
git clone https://gitgud.io/pregmodfan/fc-pregmod.git
$LocalDir
cd
$LocalDir
/
AbrevHash
=
`
git log
-n1
--abbrev-commit
|grep
-m1
commit |
sed
's/commit //'
`
FullHash
=
`
git log
-n1
|grep
-m1
commit |
sed
's/commit //'
`
rm
bin/
*
.html & git pull
./compile-git
>
/dev/null
mv
bin/
*
.html
"bin/FC-pregmod-CommitDate-
$(
date
'+%F %H-%M'
--utc
--date
=
"
$(
git show
'--format=format:%cD'
HEAD
)
"
)
.html"
mega-put bin/
*
.html
$RemoteDir
mega-logout
echo
"All done."
else
echo
"Option -NewStart is off"
cd
$LocalDir
/
AbrevHash
=
`
git log
-n1
--abbrev-commit
|grep
-m1
commit |
sed
's/commit //'
`
FullHash
=
`
git log
-n1
|grep
-m1
commit |
sed
's/commit //'
`
rm
bin/
*
.html & git pull
./compile-git
>
/dev/null
mv
bin/
*
.html
"bin/FC-pregmod-CommitDate-
$(
date
'+%F %H-%M'
--utc
--date
=
"
$(
git show
'--format=format:%cD'
HEAD
)
"
)
.html"
mega-put bin/
*
.html
$RemoteDir
mega-logout
echo
"All done."
fi
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