scripts/sql-dk.sh
branchv_0
changeset 188 54bacc7ed42b
parent 150 911b2d55bb08
child 199 88de2602deb3
equal deleted inserted replaced
187:65d1eb327cb1 188:54bacc7ed42b
     3 # include user-defined overrides and customization
     3 # include user-defined overrides and customization
     4 if [ -f ~/.sql-dk/environment.sh ]; then # .sql-dk must match with DIR in Constants.java
     4 if [ -f ~/.sql-dk/environment.sh ]; then # .sql-dk must match with DIR in Constants.java
     5 	. ~/.sql-dk/environment.sh
     5 	. ~/.sql-dk/environment.sh
     6 else
     6 else
     7 	mkdir -p ~/.sql-dk/
     7 	mkdir -p ~/.sql-dk/
     8 	touch ~/.sql-dk/environment.sh
       
     9 	# link/copy support files for configuration:
     8 	# link/copy support files for configuration:
       
     9 	[ -f ~/.sql-dk/environment.sh ] || touch ~/.sql-dk/environment.sh
    10 	[ -f ~/.sql-dk/config.xsd ] || ln -s /usr/share/doc/sql-dk/config.xsd ~/.sql-dk/config.xsd
    10 	[ -f ~/.sql-dk/config.xsd ] || ln -s /usr/share/doc/sql-dk/config.xsd ~/.sql-dk/config.xsd
    11 	[ -f ~/.sql-dk/config.rnc ] || ln -s /usr/share/doc/sql-dk/config.rnc ~/.sql-dk/config.rnc
    11 	[ -f ~/.sql-dk/config.rnc ] || ln -s /usr/share/doc/sql-dk/config.rnc ~/.sql-dk/config.rnc
    12 	[ -f ~/.sql-dk/config.xsl ] || gunzip < /usr/share/doc/sql-dk/config.xsl.gz > ~/.sql-dk/config.xsl # might not work in www browser if just symlinked
    12 	[ -f ~/.sql-dk/config.xsl ] || gunzip < /usr/share/doc/sql-dk/config.xsl.gz > ~/.sql-dk/config.xsl # might not work in www browser if just symlinked
    13 fi
    13 fi
    14 
    14