Project

General

Profile

« Previous | Next » 

Revision 3a90084e

Added by koszko over 1 year ago

facilitate initialization of IndexedDB for use by Haketilo

View differences:

build.sh
123 123
	fi
124 124
    done
125 125

  
126
    # A hack to insert the contents of default_settings.json at the appropriate
127
    # location in background/main.js. Uses an internal sed expression to escape
128
    # and indent the JSON file for use in the external sed expression.
129
    sed -i 's/^        `DEFAULT SETTINGS`$/'"$(sed -E 's/([\\\&\/])/\\\1/g; s/^/        /; s/$/\\/' < default_settings.json) "/g "$BUILDDIR"/background/main.js
130

  
131
    if [ "$BROWSER" = "chromium" ]; then
132
	cp CHROMIUM_exports_init.js "$BUILDDIR"/exports_init.js
133
    else
134
	cp MOZILLA_exports_init.js "$BUILDDIR"/exports_init.js
135
    fi
126
    ./write_exports_init.sh "$BROWSER" "$BUILDDIR" default_settings.json
136 127

  
137 128
    cp -r copyright licenses/ "$BUILDDIR"
138 129
    cp dummy "$BUILDDIR"

Also available in: Unified diff