Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
lxdist-build
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
linuxsupport
lxdist-build
Commits
d27d6c20
Commit
d27d6c20
authored
5 years ago
by
Daniel Juarez
Browse files
Options
Downloads
Patches
Plain Diff
Fix GitLab's tabs indentation
parent
cb3b1239
No related branches found
No related tags found
1 merge request
!10
Add script to push updates to repo
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/bscommitupdates
+21
-21
21 additions, 21 deletions
bin/bscommitupdates
with
21 additions
and
21 deletions
bin/bscommitupdates
+
21
−
21
View file @
d27d6c20
...
...
@@ -81,25 +81,25 @@ done
for
DIST
in
$DISTS
do
for
REPO
in
$REPOS
do
do
case
$REPO
in
"testing"
)
ADV
=
"/afs/cern.ch/project/linux/www/updates/
$DIST
/
$TODAY
-test.file"
REPO_DEST_PATH
=
"updates/
$DIST
/test/"
;;
"updates"
)
ADV
=
"/afs/cern.ch/project/linux/www/updates/
$DIST
/
$TODAY
.file"
REPO_DEST_PATH
=
"updates/
$DIST
/prod/"
;;
*
)
echo
-e
$ROUGE
"***
$DIST
/
$REPO
not configured to commit updates"
;
continue
;;
esac
"testing"
)
ADV
=
"/afs/cern.ch/project/linux/www/updates/
$DIST
/
$TODAY
-test.file"
REPO_DEST_PATH
=
"updates/
$DIST
/test/"
;;
"updates"
)
ADV
=
"/afs/cern.ch/project/linux/www/updates/
$DIST
/
$TODAY
.file"
REPO_DEST_PATH
=
"updates/
$DIST
/prod/"
;;
*
)
echo
-e
$ROUGE
"***
$DIST
/
$REPO
not configured to commit updates"
;
continue
;;
esac
# Use a temp directory that we later delete
TMPDIR
=
$(
mktemp
-d
)
# This file would have already been generated by bsmailusers, we only use the production file
if
[
!
-s
"
$ADV
"
]
;
then
echo
"There are no updates, no need to commit a file"
exit
0
...
...
@@ -119,12 +119,12 @@ do
i
=
1
while
IFS
=
read
-r
LINE
do
test
$i
-eq
1
&&
((
i
=
i+1
))
&&
continue
# Split table variables to ease future css styling if needed, much more readable than one-liners
PACKAGE
=
"
$(
echo
$LINE
|
awk
-F
"</*td>|</*tr>"
'/<\/*t[rd]>.*/ {print $5}'
)
"
ADVTYPE
=
"
$(
echo
$LINE
|
awk
-F
"</*td>|</*tr>"
'/<\/*t[rd]>.*/ {print $3}'
)
"
ADVURL
=
"
$(
echo
$LINE
|
awk
-F
"</*td>|</*tr>"
'/<\/*t[rd]>.*/ {print $7}'
)
"
echo
"
$PACKAGE
|
$ADVTYPE
$ADVURL
| "
>>
"
$TMPDIR
"
/.updates
test
$i
-eq
1
&&
((
i
=
i+1
))
&&
continue
# Split table variables to ease future css styling if needed, much more readable than one-liners
PACKAGE
=
"
$(
echo
$LINE
|
awk
-F
"</*td>|</*tr>"
'/<\/*t[rd]>.*/ {print $5}'
)
"
ADVTYPE
=
"
$(
echo
$LINE
|
awk
-F
"</*td>|</*tr>"
'/<\/*t[rd]>.*/ {print $3}'
)
"
ADVURL
=
"
$(
echo
$LINE
|
awk
-F
"</*td>|</*tr>"
'/<\/*t[rd]>.*/ {print $7}'
)
"
echo
"
$PACKAGE
|
$ADVTYPE
$ADVURL
| "
>>
"
$TMPDIR
"
/.updates
done
<
$ADV
echo
>>
"
$TMPDIR
"
/.updates
...
...
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