Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
osticket
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
docker
osticket
Commits
852f8466
Commit
852f8466
authored
11 years ago
by
Jared Hancock
Browse files
Options
Downloads
Patches
Plain Diff
Package version number by `git describe`
And include the new location of the install SQL script
parent
82124462
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
setup/cli/package.php
+9
-8
9 additions, 8 deletions
setup/cli/package.php
with
9 additions
and
8 deletions
setup/cli/package.php
+
9
−
8
View file @
852f8466
...
...
@@ -111,7 +111,7 @@ package("include/{,.}*", "upload/include", -1, array('*ost-config.php', '*.sw[a-
package
(
"setup/*.
{
php,txt
}
"
,
"upload/setup"
,
-
1
,
array
(
"*scripts"
,
"*test"
,
"*stage"
));
foreach
(
array
(
'css'
,
'images'
,
'js'
)
as
$dir
)
package
(
"setup/
$dir
/*"
,
"upload/setup/
$dir
"
,
-
1
);
package
(
"setup/inc/s
ql
/*.
{
sql
,md5
}
"
,
"upload/setup/inc/s
ql
"
,
-
1
);
package
(
"setup/inc/s
treams
/*.sql"
,
"upload/setup/inc/s
treams
"
,
-
1
);
# Load the license and documentation
package
(
"*.
{
txt,md
}
"
,
""
);
...
...
@@ -123,16 +123,17 @@ if(($mds = glob("$stage_path/*.md"))) {
}
# Make an archive of the stage folder
$version_info
=
preg_grep
(
'/THIS_VERSION/'
,
explode
(
"
\n
"
,
file_get_contents
(
"
$root
/main.inc.php"
)));
foreach
(
$version_info
as
$line
)
eval
(
$line
);
$version
=
exec
(
'git describe'
);
$pwd
=
getcwd
();
chdir
(
$stage_path
);
shell_exec
(
"tar cjf '
$pwd
/osTicket-"
.
THIS_VERSION
.
".tar.bz2' *"
);
shell_exec
(
"zip -r '
$pwd
/osTicket-"
.
THIS_VERSION
.
".zip' *"
);
// Replace THIS_VERSION in the stage/ folder
shell_exec
(
"grep -rl
\"
define('THIS_VERSION'
\"
* | xargs sed -ri -e
\"
s/( *).*THIS_VERSION.*/
\\
1define('THIS_VERSION', '
$version
');/
\"
"
);
shell_exec
(
"tar cjf '
$pwd
/osTicket-
$version
.tar.bz2' *"
);
shell_exec
(
"zip -r '
$pwd
/osTicket-
$version
.zip' *"
);
chdir
(
$pwd
);
?>
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