Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
8ea15f34
Commit
8ea15f34
authored
Jul 23, 1999
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add --zip parameter; make this able to produce .zip files as well as
.tgz files.
parent
69f87c58
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
Doc/tools/mktarball.sh
Doc/tools/mktarball.sh
+20
-3
No files found.
Doc/tools/mktarball.sh
View file @
8ea15f34
...
...
@@ -20,6 +20,14 @@ if [ "$1" = "-t" -o "$1" = "--tools" ] ; then
shift
1
TOOLS_ONLY
=
true
fi
if
[
"
$1
"
=
"-z"
-o
"
$1
"
=
"--zip"
]
;
then
shift
1
USE_ZIP
=
true
fi
if
[
"
$1
"
=
"-g"
-o
"
$1
"
=
"--targz"
]
;
then
shift
1
USE_ZIP
=
''
fi
RELEASE
=
$1
;
shift
...
...
@@ -48,11 +56,20 @@ if [ "$TOOLS_ONLY" ] ; then
# remove the actual documents
rm
-rf
api ext lib mac ref tut
cd
..
(
tar
cf - Doc |
gzip
-9
>
$MYDIR
/tools-
$RELEASE
.tgz
)
||
exit
$?
if
[
"
$USE_ZIP
"
]
;
then
pwd
zip
-r9
tools-
$RELEASE
.zip Doc
||
exit
else
(
tar
cf - Doc |
gzip
-9
>
$MYDIR
/tools-
$RELEASE
.tgz
)
||
exit
$?
fi
else
cd
$TEMPDIR
(
tar
cf - Python-
$RELEASE
|
gzip
-9
>
$MYDIR
/latex-
$RELEASE
.tgz
)
||
exit
$?
if
[
"
$USE_ZIP
"
]
;
then
zip
-r9
$MYDIR
/latex-
$RELEASE
.zip Python-
$RELEASE
||
exit
$?
else
(
tar
cf - Python-
$RELEASE
|
gzip
-9
>
$MYDIR
/latex-
$RELEASE
.tgz
)
\
||
exit
$?
fi
fi
cd
$MYDIR
rm
-r
$TEMPDIR
||
exit
$?
...
...
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