Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pyromaths
pyromaths
Commits
66dee70a
Commit
66dee70a
authored
May 09, 2013
by
Olivier Cornu
Browse files
Rename pkg/linux in pkg/unix as all Unix platforms may run its scripts.
parent
264d21e4
Changes
19
Hide whitespace changes
Inline
Side-by-side
pkg/README
View file @
66dee70a
...
...
@@ -15,7 +15,7 @@ Make-scripts usually are shell scripts of the form make_TARGET (with .sh, .bat
or
.
py
extensions
),
mostly
located
in
platform
-
specific
sub
-
folders
.
Most
of
them
will
run
rather
quietly
(
except
for
warnings
and
errors
)
yet
can
be
made
chatty
with
the
verbose
flag
(-
v
).
Examples
:
$
pkg
/
linu
x
/
make_deb
.
sh
$
pkg
/
uni
x
/
make_deb
.
sh
$
pkg
/
mac
/
make_standalone
.
sh
-
v
$
pkg
\
win32
\
make_standalone
.
bat
...
...
@@ -31,8 +31,8 @@ Internally, make scripts generally present the following structure:
Note
:
policy
is
to
leave
build
folders
in
place
after
running
(
in
order
to
make
post
-
inspection
possible
),
and
clean
-
up
extensively
before
running
.
Additionally
,
linu
x
/
scripts
behave
according
to
a
few
environment
variables
,
which
default
values
are
set
in
linu
x
/
default
.
sh
:
Additionally
,
uni
x
/
scripts
behave
according
to
a
few
environment
variables
,
which
default
values
are
set
in
uni
x
/
default
.
sh
:
*
VERSION
:
pyromaths
version
(
default
:
`
date
+%
y
.%
m
`)
*
PYROPATH
:
project
root
directory
*
DIST
:
packages
target
directory
(
default
:
$
PYROPATH
/
dist
)
...
...
@@ -46,7 +46,7 @@ Building all packages in a single command is impossible, or quite difficult at
least
,
as
most
make
-
scripts
only
run
on
specific
platforms
.
The
closest
thing
to
a
"build all"
make
-
script
is
pkg
/
make_packages
.
sh
,
which
calls
in
turn
each
linu
x
/
make
-
script
.
It
's mainly used by Jerome to
which
calls
in
turn
each
uni
x
/
make
-
script
.
It
's mainly used by Jerome to
publish new versions of pyromaths.
Usage:
$ pkg/make_packages.sh [-v]
...
...
@@ -56,7 +56,7 @@ Usage:
2. (Meta-)Data files
Data files are platform-specific data (e.g. icons) and metadata (e.g. debian
package files in pkg/
linu
x/debian) used at some point by make-scripts.
package files in pkg/
uni
x/debian) used at some point by make-scripts.
Let'
s
note
that
data
files
common
to
all
architectures
*
must
*
go
in
/
data
,
*
not
*
in
/
pkg
.
...
...
pkg/make_packages.sh
View file @
66dee70a
...
...
@@ -28,12 +28,12 @@ echo "*** Update pyromaths version in sources..."
sed
-i
"s/VERSION = '.*/VERSION = '
${
VERSION
}
'/"
${
PYROPATH
}
/src/pyromaths/Values.py
# Clean-up and create packages
LINU
X
=
$DIR
/
linu
x
env
VERSION
=
$VERSION
$
LINU
X
/make_clean.sh
env
VERSION
=
$VERSION
$
LINU
X
/make_sources.sh
$1
env
VERSION
=
$VERSION
$
LINU
X
/make_rpm.sh
$1
env
VERSION
=
$VERSION
$
LINU
X
/make_deb.sh
$1
&&
env
VERSION
=
$VERSION
$
LINU
X
/make_deb_repo.sh
$1
UNI
X
=
$DIR
/
uni
x
env
VERSION
=
$VERSION
$
UNI
X
/make_clean.sh
env
VERSION
=
$VERSION
$
UNI
X
/make_sources.sh
$1
env
VERSION
=
$VERSION
$
UNI
X
/make_rpm.sh
$1
env
VERSION
=
$VERSION
$
UNI
X
/make_deb.sh
$1
&&
env
VERSION
=
$VERSION
$
UNI
X
/make_deb_repo.sh
$1
echo
"*** Create Windows binary..."
echo
"Hit 'enter' when Windows package is ready."
...
...
pkg/
linu
x/MANIFEST.in
→
pkg/
uni
x/MANIFEST.in
View file @
66dee70a
File moved
pkg/
linu
x/debian/changelog
→
pkg/
uni
x/debian/changelog
View file @
66dee70a
File moved
pkg/
linu
x/debian/compat
→
pkg/
uni
x/debian/compat
View file @
66dee70a
File moved
pkg/
linu
x/debian/control
→
pkg/
uni
x/debian/control
View file @
66dee70a
File moved
pkg/
linu
x/debian/copyright
→
pkg/
uni
x/debian/copyright
View file @
66dee70a
File moved
pkg/
linu
x/debian/docs
→
pkg/
uni
x/debian/docs
View file @
66dee70a
File moved
pkg/
linu
x/debian/patches/00list
→
pkg/
uni
x/debian/patches/00list
View file @
66dee70a
File moved
pkg/
linu
x/debian/pyversions
→
pkg/
uni
x/debian/pyversions
View file @
66dee70a
File moved
pkg/
linu
x/debian/rules
→
pkg/
uni
x/debian/rules
View file @
66dee70a
File moved
pkg/
linu
x/debian/source/format
→
pkg/
uni
x/debian/source/format
View file @
66dee70a
File moved
pkg/
linu
x/debian/watch
→
pkg/
uni
x/debian/watch
View file @
66dee70a
File moved
pkg/
linu
x/default.sh
→
pkg/
uni
x/default.sh
View file @
66dee70a
File moved
pkg/
linu
x/make_clean.sh
→
pkg/
uni
x/make_clean.sh
View file @
66dee70a
File moved
pkg/
linu
x/make_deb.sh
→
pkg/
uni
x/make_deb.sh
View file @
66dee70a
...
...
@@ -12,7 +12,7 @@ mkdir $BUILDIR
cd
$BUILDIR
cp
-r
${
PYROPATH
}
/src
${
PYROPATH
}
/data
.
cp
${
PYROPATH
}
/
*
.
>
$OUT
cp
-r
${
PYROPATH
}
/pkg/
linu
x/debian
.
cp
-r
${
PYROPATH
}
/pkg/
uni
x/debian
.
# lightweight source archive in $BUILD
python setup.py sdist
--formats
=
bztar
-d
$BUILD
>
$OUT
# Rename source archive according to debuild format
...
...
pkg/
linu
x/make_deb_repo.sh
→
pkg/
uni
x/make_deb_repo.sh
View file @
66dee70a
File moved
pkg/
linu
x/make_rpm.sh
→
pkg/
uni
x/make_rpm.sh
View file @
66dee70a
File moved
pkg/
linu
x/make_sources.sh
→
pkg/
uni
x/make_sources.sh
View file @
66dee70a
File moved
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment