Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Cabal
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
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
Haskell
Cabal
Commits
fc3c80fc
You need to sign in or sign up before continuing.
Commit
fc3c80fc
authored
19 years ago
by
Duncan Coutts
Browse files
Options
Downloads
Patches
Plain Diff
Use .tar.gz for source package extension and tweak sdist info message.
parent
050b881c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Distribution/Simple/SrcDist.hs
+4
-3
4 additions, 3 deletions
Distribution/Simple/SrcDist.hs
with
4 additions
and
3 deletions
Distribution/Simple/SrcDist.hs
+
4
−
3
View file @
fc3c80fc
...
@@ -124,11 +124,12 @@ sdist tmpDir targetPref verbose snapshot pps pkg_descr_orig = do
...
@@ -124,11 +124,12 @@ sdist tmpDir targetPref verbose snapshot pps pkg_descr_orig = do
unlines
$
map
(
appendVersion
date
)
$
lines
$
contents
unlines
$
map
(
appendVersion
date
)
$
lines
$
contents
else
copyFileVerbose
verbose
descFile
targetDescFile
else
copyFileVerbose
verbose
descFile
targetDescFile
let
tarBallFilePath
=
targetPref
`
joinFileName
`
tarBallName
pkg_descr
system
$
"(cd "
++
tmpDir
system
$
"(cd "
++
tmpDir
++
";tar cf - "
++
(
nameVersion
pkg_descr
)
++
") | gzip -9 >"
++
";tar cf - "
++
(
nameVersion
pkg_descr
)
++
") | gzip -9 >"
++
(
tar
getPref
`
joinFileName
`
(
tarBallName
pkg_descr
))
++
tar
BallFilePath
system
$
"rm -rf "
++
tmpDir
system
$
"rm -rf "
++
tmpDir
putStrLn
"Source tarball created
."
putStrLn
$
"Source tarball created
: "
++
tarBallFilePath
where
where
updatePackage
f
pd
=
pd
{
package
=
f
(
package
pd
)
}
updatePackage
f
pd
=
pd
{
package
=
f
(
package
pd
)
}
...
@@ -167,7 +168,7 @@ copyFileTo verbose dir file = do
...
@@ -167,7 +168,7 @@ copyFileTo verbose dir file = do
-- |The file name of the tarball
-- |The file name of the tarball
tarBallName
::
PackageDescription
->
FilePath
tarBallName
::
PackageDescription
->
FilePath
tarBallName
p
=
(
nameVersion
p
)
++
".tgz"
tarBallName
p
=
(
nameVersion
p
)
++
".t
ar.
gz"
nameVersion
::
PackageDescription
->
String
nameVersion
::
PackageDescription
->
String
nameVersion
=
showPackageId
.
package
nameVersion
=
showPackageId
.
package
...
...
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