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
etersoft
eepm
Commits
a5beb245
Commit
a5beb245
authored
Mar 28, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repack code: move to /opt
parent
fb2e33f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
code.sh
repack.d/code.sh
+8
-3
No files found.
repack.d/code.sh
View file @
a5beb245
...
...
@@ -5,15 +5,20 @@ BUILDROOT="$1"
SPEC
=
"
$2
"
PRODUCT
=
code
PRODUCTDIR
=
/opt/
$PRODUCT
mkdir
-p
$BUILDROOT
/opt
mv
$BUILDROOT
/usr/share/
$PRODUCT
/
$BUILDROOT$PRODUCTDIR
/
subst
"s|/usr/share/
$PRODUCT
|
$PRODUCTDIR
|g"
$SPEC
subst
'1iAutoReq:yes,nomonolib,nomono'
$SPEC
subst
'1iAutoProv:no'
$SPEC
subst
's|\(.*/usr/share/code/code.*\)|"/usr/bin/code"\n"/usr/bin/vscode"\n\1|'
$SPEC
subst
"s|
\(
.*
$PRODUCTDIR
/code.*
\)
|/usr/bin/code
\n
/usr/bin/vscode
\n\1
|"
$SPEC
mkdir
-p
$BUILDROOT
/usr/bin/
ln
-rs
$BUILDROOT
/usr/share/code
/bin/code
$BUILDROOT
/usr/bin/code
ln
-rs
$BUILDROOT
/usr/share/code
/bin/code
$BUILDROOT
/usr/bin/vscode
ln
-rs
$BUILDROOT
$PRODUCTDIR
/bin/code
$BUILDROOT
/usr/bin/code
ln
-rs
$BUILDROOT
$PRODUCTDIR
/bin/code
$BUILDROOT
/usr/bin/vscode
# install all requires packages before packing (the list have got with rpmreqs package | xargs echo)
epm
install
--skip-installed
at-spi2-atk coreutils findutils gawk glib2 libalsa libatk libat-spi2-core libcairo libdbus libdrm libexpat libgbm libgdk-pixbuf libgio libgtk+3 libnspr libnss libpango libsecret libX11 libxcb libXcomposite libXcursor libXdamage libXext libXfixes libXi libxkbfile libXrandr libXrender libXScrnSaver libXtst
sed
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