Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
debomatic-webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
debomatic-webui-admins
debomatic-webui
Commits
6ff7c113
Commit
6ff7c113
authored
Jul 18, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set version in package.json - update config - update script/do_release.sh
parent
374e5483
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
12 deletions
+13
-12
debomatic-webui/lib/config.coffee
debomatic-webui/lib/config.coffee
+1
-1
debomatic-webui/package.json
debomatic-webui/package.json
+3
-3
scripts/do_release.sh
scripts/do_release.sh
+9
-8
No files found.
debomatic-webui/lib/config.coffee
View file @
6ff7c113
...
...
@@ -80,7 +80,7 @@ config.web.preferences.debug = 0 # debug level - 0 means disabled
###
The version
###
config
.
version
=
"0.6.0"
config
.
version
=
require
(
"../package"
).
version
###
List of files to not show in webui
...
...
debomatic-webui/package.json
View file @
6ff7c113
{
"name"
:
"debomatic-webui"
,
"version"
:
"0.
0.1
"
,
"version"
:
"0.
6.0
"
,
"private"
:
true
,
"dependencies"
:
{
"express"
:
"4.x"
,
"serve-index"
:
"*"
,
"serve-static"
:
"*"
,
"errorhandler "
:
"*"
,
"ejs"
:
"
>= 0.0.1
"
,
"ejs"
:
"
1.*
"
,
"socket.io"
:
"1.*"
,
"tail"
:
"*"
,
"extend"
:
"
~1.3.0
"
"extend"
:
"
*
"
},
"scripts"
:
{
"install"
:
"bash scripts/install.sh"
,
...
...
scripts/do_release.sh
View file @
6ff7c113
#!/bin/bash
VERSION
=
"
$1
"
BASE_DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
/.."
PACKAGE
=
"
${
BASE_DIR
}
/debomatic-webui/package.json"
CURRENT
=
"
`
grep
'"version":'
${
PACKAGE
}
|
awk
-F
'"'
'{print $4}'
`
"
if
[
$#
==
0
]
;
then
echo
"Please specify a version number."
echo
"Please specify a new version number."
echo
"Current verion is
${
CURRENT
}
"
exit
fi
VERSION
=
$1
BASE_DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
/.."
CONFIG
=
${
BASE_DIR
}
/debomatic-webui/lib/config.js
CURRENT
=
"
`
grep
"^config.version"
${
CONFIG
}
|
awk
-F
"'"
'{print $2}'
`
"
y
=
'n'
echo
-n
"Current version is
${
CURRENT
}
. Bump to
${
VERSION
}
? [y/N] "
read
y
if
[
"
$y
"
==
"y"
-o
"
$y
"
==
"Y"
]
;
then
sed
-r
"s/
^config.version = '(.*)'/config.version = '
${
VERSION
}
'/"
-i
$CONFIG
||
exit
1
sed
-r
"s/
\"
version
\"
:
\"
(.*)
\"
/
\"
version
\"
:
\"
${
VERSION
}
\"
/"
-i
$PACKAGE
||
exit
1
y
=
'n'
echo
-n
"Do git-commit? [y/N] "
read
y
if
[
"
$y
"
==
"y"
-o
"
$y
"
==
"Y"
]
;
then
git commit
-m
"Bumped version
${
VERSION
}
"
${
CONFIG
}
git commit
-m
"Bumped version
${
VERSION
}
"
${
PACKAGE
}
y
=
'n'
echo
-n
"Do git-tag? [y/N] "
read
y
...
...
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