Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nurlan
eepm
Commits
41d5fb05
Commit
41d5fb05
authored
Jul 16, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add update_versions.sh
parent
128febfd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
0 deletions
+46
-0
update_versions.sh
tests/update_versions.sh
+46
-0
No files found.
tests/update_versions.sh
0 → 100755
View file @
41d5fb05
#!/bin/bash
# TODO: use epm from the sources
fatal
()
{
exit
1
}
TDIR
=
~/epm-play-versions
EDIR
=
~/epm-errors
LDIR
=
~/epm-logs
mkdir
-p
$TDIR
/
$EDIR
/
$LDIR
/
rm
-f
$EDIR
/errors.txt
EPM
=
$(
realpath
$(
dirname
$0
)
/../bin/epm
)
# install/update all
$EPM
play
--list-all
--short
|
while
read
app
;
do
pkgname
=
"
$(
$EPM
play
--package-name
$app
</dev/null
)
"
if
$EPM
play
--verbose
--auto
$app
</dev/null
>
$EDIR
/
$app
2>&1
;
then
# if OK, move output
mv
-f
$EDIR
/
$app
$LDIR
/
$app
$EPM
play installed-version
$app
>
$TDIR
/
$app
2>
$EDIR
/
$pkgname
</dev/null
&&
rm
-f
$EDIR
/
$pkgname
[
-s
$TDIR
/
$app
]
||
echo
"empty file
$TDIR
/
$app
"
>>
$EDIR
/errors.txt
#else
# if not OK, keep old version file (try to avoid updating)
# rm -f $TDIR/$app
fi
done
cd
$TDIR
[
-d
.git
]
||
git init
git add
*
git commit
-m
"updated"
cd
$EDIR
[
-d
.git
]
||
git init
git add
*
git commit
-m
"updated"
cd
$TMP
rm
-rf
tmp.
*
rpm-tmp.
*
exit
0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment