Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
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
korinf
etersoft-build-utils
Commits
babb180b
Commit
babb180b
authored
May 21, 2018
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmgs: allow git repo for gear_production/source
parent
c5f00662
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
rpmgs
bin/rpmgs
+15
-2
No files found.
bin/rpmgs
View file @
babb180b
...
@@ -31,6 +31,7 @@ phelp()
...
@@ -31,6 +31,7 @@ phelp()
echog
"
$Descr
"
echog
"
$Descr
"
echog
"
$Usage
"
echog
"
$Usage
"
echog
"You can run 'rpmgs 1.2' for set new version 1.2 and download it"
echog
"You can run 'rpmgs 1.2' for set new version 1.2 and download it"
echog
"Use HEAD instead version for get latest git commit"
echo
echo
echog
"Options:"
echog
"Options:"
# echog " -a get all source (not only Source|Source0)"
# echog " -a get all source (not only Source|Source0)"
...
@@ -303,14 +304,20 @@ update_gear_production()
...
@@ -303,14 +304,20 @@ update_gear_production()
PSM
=
$(
get_root_git_dir
)
/.gear/gear-production
PSM
=
$(
get_root_git_dir
)
/.gear/gear-production
local
RGD
=
$(
get_root_git_dir
)
local
RGD
=
$(
get_root_git_dir
)
info
"Detected npm install hook, run npm install --production"
info
"Detected npm install hook, run npm install --production
...
"
# hack for subdir??
# hack for subdir??
CURNAME
=
$BASENAME
CURNAME
=
$BASENAME
# TODO: add support for git
# TODO: add support for git
rm
-rf
$PSM
rm
-rf
$PSM
if
[
-n
"
$GETSOURCEGIT
"
]
;
then
# cp -a exclude .dir
mkdir
-p
$PSM
||
fatal
cp
-a
$RGD
/
*
$PSM
||
fatal
else
cp
-a
$RGD
/
$CURNAME
$PSM
||
fatal
cp
-a
$RGD
/
$CURNAME
$PSM
||
fatal
fi
cd
$PSM
||
fatal
cd
$PSM
||
fatal
...
@@ -348,7 +355,7 @@ update_gear_sources()
...
@@ -348,7 +355,7 @@ update_gear_sources()
#if [ -d $PSM ] ; then
#if [ -d $PSM ] ; then
# only npm supported now
# only npm supported now
info
"Detected npm install hook, run npm install"
info
"Detected npm install hook, run npm install
...
"
# if [ -d $RGD/package ] && [ -s $RGD/package/package.json ] ; then
# if [ -d $RGD/package ] && [ -s $RGD/package/package.json ] ; then
# info "Detected npm install hook"
# info "Detected npm install hook"
...
@@ -361,7 +368,13 @@ update_gear_sources()
...
@@ -361,7 +368,13 @@ update_gear_sources()
# TODO: add support for git
# TODO: add support for git
rm
-rf
$PSM
rm
-rf
$PSM
if
[
-n
"
$GETSOURCEGIT
"
]
;
then
# cp -a exclude .dir
mkdir
-p
$PSM
||
fatal
cp
-a
$RGD
/
*
$PSM
||
fatal
else
cp
-a
$RGD
/
$CURNAME
$PSM
||
fatal
cp
-a
$RGD
/
$CURNAME
$PSM
||
fatal
fi
cd
$PSM
||
fatal
cd
$PSM
||
fatal
# CHECKME: drop postinstall due run dev scripts during install --production
# CHECKME: drop postinstall due run dev scripts during install --production
...
...
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