/[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 814784 - (show annotations) (download) (as text)
Thu Feb 12 16:51:30 2015 UTC (9 years, 2 months ago) by luigiwalser
File MIME type: application/x-sh
File size: 671 byte(s)
SILENT: added mechanism to force priority size (from fedora)
1 #!/bin/sh
2 M=META-INF/MANIFEST.MF
3 #P=/usr/lib/jvm/java/jre/lib/security
4 P=$1/lib/security
5 for f in local_policy.jar US_export_policy.jar ; do
6 ORIG=$P/$f
7 echo "processing $f ($ORIG)"
8 if [ ! -f $ORIG ]; then
9 echo "File not found!"
10 continue
11 fi
12 d=`mktemp -d`
13 NW=$d/$f
14 pushd $d
15 jar xf $ORIG
16 cat $M
17 # sed -i "s/Created-By.*/Created-By: 1.7.0/g" $M
18 sed -i "s/Created-By.*/Created-By: $2/g" $M
19 cat $M
20 find . -exec touch -t 201401010000 {} +
21 zip -rX $f *
22 popd
23 echo "replacing $ORIG"
24 md5sum $ORIG
25 sha256sum $ORIG
26 echo "by $NW"
27 md5sum $NW
28 sha256sum $NW
29 cp $NW $ORIG
30 md5sum $ORIG
31 sha256sum $ORIG
32 rm -rfv $d
33 done

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.30