You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
path=$1
|
|
|
|
|
|
|
|
if [ -z $path ]
|
|
|
|
then
|
|
|
|
if [ -z $WAPPALYZER_ROOT ]
|
|
|
|
then
|
|
|
|
echo "-$(basename $0): No path specified"
|
|
|
|
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
path=$WAPPALYZER_ROOT
|
|
|
|
fi
|
|
|
|
|
|
|
|
set -eu
|
|
|
|
|
|
|
|
if [ ! -d $path/src ]
|
|
|
|
then
|
|
|
|
echo "-$(basename $0): Incorrect path"
|
|
|
|
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
path="$path/src"
|
|
|
|
|
|
|
|
echo "Creating hard links..."
|
|
|
|
|
|
|
|
ln -f $path/wappalyzer.js $path/drivers/phantomjs
|
|
|
|
ln -f $path/apps.json $path/drivers/phantomjs
|
|
|
|
|
|
|
|
ln -f $path/wappalyzer.js $path/drivers/webextension/js
|
|
|
|
ln -f $path/apps.json $path/drivers/webextension
|
|
|
|
ln -f $path/icons/*.png $path/drivers/webextension/images/icons
|
|
|
|
ln -f $path/icons/*.svg $path/drivers/webextension/images/icons
|
|
|
|
ln -f $path/utils/*.js $path/drivers/webextension/js
|
|
|
|
|
|
|
|
if [ "$(compgen -G "$path/icons/converted/*.png" | head -n1)" ]; then
|
|
|
|
ln -f $path/icons/converted/*.png $path/drivers/webextension/images/icons/converted
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "OK"
|
|
|
|
|
|
|
|
exit 0
|