Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
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
Alexis King
GHC
Commits
b137ab75
Commit
b137ab75
authored
Jan 20, 2019
by
Moritz Angermann
Committed by
Marge Bot
Jan 20, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[T16199] Adds a verify-packages script
parent
c9756dbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
utils/verify-release/verify-packages.sh
utils/verify-release/verify-packages.sh
+20
-0
No files found.
utils/verify-release/verify-packages.sh
0 → 100755
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
{}
+
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