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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 882501 - (show annotations) (download) (as text)
Wed Sep 23 19:25:15 2015 UTC (8 years, 6 months ago) by luigiwalser
File MIME type: application/x-sh
File size: 819 byte(s)
- sync with fedora as of 2015-08-27, update to u60

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! $ORIG"
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 touch -t 201401010000 $ORIG
26 md5sum $ORIG
27 sha256sum $ORIG
28 echo "by $NW"
29 md5sum $NW
30 sha256sum $NW
31 touch -t 201401010000 $NW
32 cp $NW $ORIG
33 md5sum $ORIG
34 sha256sum $ORIG
35 touch -t 201401010000 $ORIG
36 rm -rfv $d
37 done

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.30