Navigation


Changeset 1551:2fe434590a8f in freeDiameter for contrib/PKI


Ignore:
Timestamp:
Jul 8, 2020, 3:55:24 PM (4 years ago)
Author:
Luke Mewburn <luke@mewburn.net>
Branch:
default
Phase:
public
Message:

ca Makefile: portability improvements

use -f with ln -s to avoid errors
use printf instead of echo for portable \n

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/PKI/ca_script2/Makefile

    r870 r1551  
    2626# Help message
    2727help:
    28         @echo "\n\
     28        @printf -- "\n\
    2929Available commands:\n\
    3030   make init topca=name\n\
     
    173173        # Create the CRL
    174174        @CA_ROOT_DIR=$(DATA_DIR)/$(ca) openssl ca $(CONFIG) -gencrl -out $(DATA_DIR)/$(ca)/public/crl/$(ca).pem
    175         @ln -s crl/$(ca).pem $(DATA_DIR)/$(ca)/public/local.pem
    176         @ln -s local.pem $(DATA_DIR)/$(ca)/public/`openssl crl -noout -hash < $(DATA_DIR)/$(ca)/public/crl/$(ca).pem`.r0
     175        @ln -f -s crl/$(ca).pem $(DATA_DIR)/$(ca)/public/local.pem
     176        @ln -f -s local.pem $(DATA_DIR)/$(ca)/public/`openssl crl -noout -hash < $(DATA_DIR)/$(ca)/public/crl/$(ca).pem`.r0
    177177
    178178# End of file...
Note: See TracChangeset for help on using the changeset viewer.