Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
LinuxUser GD
GHC
Commits
b137ab75
Commit
b137ab75
authored
6 years ago
by
Moritz Angermann
Committed by
Marge Bot
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[T16199] Adds a verify-packages script
parent
c9756dbf
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
utils/verify-release/verify-packages.sh
+20
-0
20 additions, 0 deletions
utils/verify-release/verify-packages.sh
with
20 additions
and
0 deletions
utils/verify-release/verify-packages.sh
0 → 100755
+
20
−
0
View file @
b137ab75
#!/bin/bash
#
# This script will verify that the packages in ghc,
# correspond to packages on hackage.
rm
-fR
ghc-packages hackage-packages package-diffs
mkdir
-p
ghc-packages hackage-packages package-diffs
# We'll skip Cabal and tarballs, while looking only at packages in libraries
# that we reference as gitmodules.
for
lib
in
$(
git submodule status|grep libraries|grep
-v
tarballs|grep
-v
Cabal|awk
-F
\
'{ print $2 }'
)
;
do
(
cd
$lib
&&
cabal new-sdist
-o
../../ghc-packages
)
;
done
for
pkg
in
$(
cd
ghc-packages
&&
ls
*
.tar.gz
)
;
do
PKG
=
${
pkg
%%.tar.gz
}
(
cd
hackage-packages
&&
cabal get
--pristine
${
PKG
}
)
(
cd
hackage-packages/
${
PKG
}
&&
git init
&&
git add
.
&&
git commit
-q
-m
"hackage packages"
&&
rm
-fR
*
)
(
cd
hackage-packages
&&
tar
xzf ../ghc-packages/
$pkg
)
(
cd
hackage-packages/
${
PKG
}
&&
git
-c
core.fileMode
=
false
diff
>
../
$PKG
.patch
)
done
find hackage-packages
-name
"*.patch"
-not
-empty
-type
f
-print
-exec
false
{}
+
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