De-obfuscate
[openssl.git] / util / unlocal_shlib.com.in
1 ${-
2   use File::Spec::Functions qw(rel2abs);
3
4   my $bldtop = rel2abs($config{builddir});
5   our %names = ( ( map { $_ => $bldtop.$_.".EXE" }
6                    map { $unified_info{sharednames}->{$_} || () }
7                    @{$unified_info{libraries}} ),
8                  'DBG$IMAGE_DSF_PATH' => $bldtop );
9   "" -}
10 $       ! Remove the local environment created by local_shlib.com
11 $
12 $       OPENSSL_NAMES := OPENSSL_NAMES_'F$GETJPI("","PID")'
13 $       IF F$TRNLNM("OSSL_FLAG",OPENSSL_NAMES) .EQS. "" THEN EXIT 0
14 $
15 $       NAMES := {- join(",", keys %names); -}
16 $       I = 0
17 $       LOOP:
18 $           E = F$ELEMENT(I,",",NAMES)
19 $           I = I + 1
20 $           IF E .EQS. "," THEN GOTO ENDLOOP
21 $           OLDV = F$TRNLNM(E,OPENSSL_NAMES)
22 $           DEASSIGN 'E'
23 $           IF OLDV .NES. "" THEN DEFINE 'E' 'OLDV'
24 $           GOTO LOOP
25 $       ENDLOOP:
26 $
27 $       DEASSIGN 'OPENSSL_NAMES' /TABLE=LNM$PROCESS_DIRECTORY