Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
magicseteditor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
magicseteditor
Commits
1da4fce3
Commit
1da4fce3
authored
Sep 23, 2007
by
coppro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some problems with the last commit (like I had to rewrite my
entire perl script, which was somehow deleted).
parent
cd0af675
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
2 deletions
+56
-2
src/data/symbol_font.cpp
src/data/symbol_font.cpp
+2
-0
src/gui/update_checker.cpp
src/gui/update_checker.cpp
+2
-2
tools/website/create-package-list.pl
tools/website/create-package-list.pl
+52
-0
No files found.
src/data/symbol_font.cpp
View file @
1da4fce3
...
@@ -48,6 +48,8 @@ SymbolFontP SymbolFont::byName(const String& name) {
...
@@ -48,6 +48,8 @@ SymbolFontP SymbolFont::byName(const String& name) {
}
}
IMPLEMENT_REFLECTION
(
SymbolFont
)
{
IMPLEMENT_REFLECTION
(
SymbolFont
)
{
REFLECT_BASE
(
Packaged
);
REFLECT_ALIAS
(
300
,
"text align"
,
"text alignment"
);
REFLECT_ALIAS
(
300
,
"text align"
,
"text alignment"
);
REFLECT_N
(
"image font size"
,
img_size
);
REFLECT_N
(
"image font size"
,
img_size
);
...
...
src/gui/update_checker.cpp
View file @
1da4fce3
...
@@ -28,7 +28,7 @@ DECLARE_TYPEOF_COLLECTION(PackageVersionDataP);
...
@@ -28,7 +28,7 @@ DECLARE_TYPEOF_COLLECTION(PackageVersionDataP);
/// Information on available packages
/// Information on available packages
class
PackageVersionData
:
public
IntrusivePtrBase
<
PackageVersionData
>
{
class
PackageVersionData
:
public
IntrusivePtrBase
<
PackageVersionData
>
{
public:
public:
PackageVersionData
()
:
is_installer
(
true
)
{}
PackageVersionData
()
{}
String
name
;
///< Name of the package
String
name
;
///< Name of the package
String
description
;
///< html description
String
description
;
///< html description
...
@@ -402,7 +402,7 @@ void UpdatesWindow::onActionChange(wxCommandEvent& ev) {
...
@@ -402,7 +402,7 @@ void UpdatesWindow::onActionChange(wxCommandEvent& ev) {
}
}
void
UpdatesWindow
::
onApplyChanges
(
wxCommandEvent
&
ev
)
{
void
UpdatesWindow
::
onApplyChanges
(
wxCommandEvent
&
ev
)
{
FOR
EACH
(
update_version_data
->
packages
,
pack
)
{
FOR
_EACH
(
pack
,
update_version_data
->
packages
)
{
PackageAction
action
=
package_data
[
pack
].
second
;
PackageAction
action
=
package_data
[
pack
].
second
;
}
}
}
}
...
...
tools/website/create-package-list.pl
View file @
1da4fce3
#!/usr/bin/perl
#
#Perl script to create updates.
#Just run with first argument being the folder all the installers are in, and the others being the packages
# e.g. ./create-package-list.pl http://magicseteditor.sf.net/packages/ ../../data/*
$url
=
shift
;
while
(
$ARGV
=
shift
)
{
$f
=
$ARGV
=~
/(([-a-z]+).mse-(game|style|symbol-font|include|export-template|locale))/
;
if
(
!
$f
)
{
warn
"
$ARGV
not an appropriate package.
";
next
;
}
$fullname
=
$1
;
$name
=
$2
;
open
(
FILE
,
"
$ARGV
/$3
");
$version
=
$msever
=
$dependencies
=
"";
while
(
<
FILE
>
)
{
$version
=
$1
if
/^(?:\xef\xbb\xbf)?version: (.*)$/
;
$msever
=
$1
if
/^(?:\xef\xbb\xbf)?mse[ _]version: (.*)$/
;
while
(
/^(?:\xef\xbb\xbf)?depends[ _]on:\s*$/
)
{
$dep
=
$depver
=
"";
while
(
<
FILE
>
)
{
$version
=
$1
if
/^(?:\xef\xbb\xbf)?version: (.*)$/
;
$msever
=
$1
if
/^(?:\xef\xbb\xbf)?mse[ _]version: (.*)$/
;
last
unless
/^\t/
;
$dep
=
$1
if
/^\tpackage: (.*)$/
;
$depver
=
$1
if
/^\tversion: (.*)$/
;
}
if
(
!
$dep
||
!
$depver
)
{
warn
"
$ARGV
has an invalid dependency!
";
next
;
}
$dependencies
.=
"
\t
depends on:
\n\t\t
package:
$dep
\n\t\t
version:
$depver
\n
";
}
}
close
(
FILE
);
if
(
!
$version
||
!
$msever
)
{
warn
"
$ARGV
does not have a version
"
unless
$version
;
warn
"
$ARGV
does not have an application version
"
unless
$msever
;
next
;
}
print
"
package:
\n\t
name:
$fullname
\n\t
url:
$url$name
.mse-installer
\n\t
version:
$version
\n\t
app version:
$msever
\n
$dependencies
\t
description:
\n\n
";
}
\ No newline at end of file
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