/[packages]/cauldron/java-1.8.0-openjdk/current/SOURCES/repackReproduciblePolycies.sh
ViewVC logotype

Contents of /cauldron/java-1.8.0-openjdk/current/SOURCES/repackReproduciblePolycies.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 814843 - (show annotations) (download) (as text)
Fri Feb 13 15:18:40 2015 UTC (4 years, 9 months ago) by luigiwalser
File MIME type: application/x-sh
File size: 725 byte(s)
- SILENT: fedora 2015-02-13 updates:
  - SILENT: policytool moved to Settings
  - SILENT: Added explaining URLs to repack policies script and to priority check.
  - SILENT: Fixed damngling symlink of jre exports

1 #!/bin/sh
2 # https://bugzilla.redhat.com/show_bug.cgi?id=1142153
3 M=META-INF/MANIFEST.MF
4 #P=/usr/lib/jvm/java/jre/lib/security
5 P=$1/lib/security
6 for f in local_policy.jar US_export_policy.jar ; do
7 ORIG=$P/$f
8 echo "processing $f ($ORIG)"
9 if [ ! -f $ORIG ]; then
10 echo "File not found!"
11 continue
12 fi
13 d=`mktemp -d`
14 NW=$d/$f
15 pushd $d
16 jar xf $ORIG
17 cat $M
18 # sed -i "s/Created-By.*/Created-By: 1.7.0/g" $M
19 sed -i "s/Created-By.*/Created-By: $2/g" $M
20 cat $M
21 find . -exec touch -t 201401010000 {} +
22 zip -rX $f *
23 popd
24 echo "replacing $ORIG"
25 md5sum $ORIG
26 sha256sum $ORIG
27 echo "by $NW"
28 md5sum $NW
29 sha256sum $NW
30 cp $NW $ORIG
31 md5sum $ORIG
32 sha256sum $ORIG
33 rm -rfv $d
34 done

Properties

Name Value
svn:eol-style native
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26