parent
35d6bb7b1c
commit
8229354d8a
@ -1,35 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
dir="/home/wappalyzer/synced/src"
|
||||
|
||||
ln -f $dir/wappalyzer.js $dir/drivers/firefox/lib
|
||||
ln -f $dir/apps.json $dir/drivers/firefox/data
|
||||
ln -f $dir/icons/*.png $dir/drivers/firefox/data/images/icons
|
||||
|
||||
ln -f $dir/wappalyzer.js $dir/drivers/chrome/js
|
||||
ln -f $dir/apps.json $dir/drivers/chrome
|
||||
ln -f $dir/icons/*.png $dir/drivers/chrome/images/icons
|
||||
|
||||
ln -f $dir/wappalyzer.js $dir/drivers/bookmarklet/js
|
||||
ln -f $dir/icons/*.png $dir/drivers/bookmarklet/images/icons
|
||||
|
||||
ln -f $dir/wappalyzer.js $dir/drivers/html/js
|
||||
ln -f $dir/apps.json $dir/drivers/html
|
||||
ln -f $dir/icons/*.png $dir/drivers/html/images/icons
|
||||
|
||||
ln -f $dir/wappalyzer.js $dir/drivers/php/js
|
||||
ln -f $dir/apps.json $dir/drivers/php
|
||||
|
||||
ln -f $dir/wappalyzer.js $dir/drivers/python/js
|
||||
ln -f $dir/apps.json $dir/drivers/python
|
||||
|
||||
ln -f $dir/wappalyzer.js $dir/drivers/phantomjs/js
|
||||
ln -f $dir/apps.json $dir/drivers/phantomjs
|
||||
|
||||
ln -f $dir/wappalyzer.js $dir/drivers/ruby/js
|
||||
ln -f $dir/apps.json $dir/drivers/ruby
|
||||
|
||||
ln -f $dir/wappalyzer.js $dir/drivers/npm
|
||||
ln -f $dir/apps.json $dir/drivers/npm
|
||||
|
||||
echo "Hard links created"
|
@ -1,10 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
path=`pwd`
|
||||
|
||||
./links.sh
|
||||
|
||||
rm -f wappalyzer-chrome.zip wappalyzer-firefox.xpi
|
||||
|
||||
cd $path/drivers/chrome && zip -r $path/wappalyzer-chrome.zip .
|
||||
#cd $path/drivers/firefox && zip -r $path/wappalyzer-firefox.xpi .
|
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f "$0-$1" ]
|
||||
then
|
||||
$0-$1 ${*:2}
|
||||
else
|
||||
$0-help
|
||||
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exit 0
|
@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -z $WAPPALYZER_ROOT ]
|
||||
then
|
||||
echo "\$WAPPALYZER_ROOT not set"
|
||||
|
||||
exit 1
|
||||
fi
|
||||
|
||||
wappalyzer links
|
||||
|
||||
# Mozilla Firefox
|
||||
echo "Building Firefox driver..."
|
||||
|
||||
cfx xpi --pkgdir=$WAPPALYZER_ROOT/src/drivers/firefox --output-file=$WAPPALYZER_ROOT/build/wappalyzer_firefox.xpi
|
||||
|
||||
# Google Chrome
|
||||
echo "Building Chrome driver..."
|
||||
|
||||
pushd $WAPPALYZER_ROOT/src/drivers/chrome > /dev/null
|
||||
|
||||
zip -qr $WAPPALYZER_ROOT/build/wappalyzer_chrome.zip .
|
||||
|
||||
popd > /dev/null
|
||||
|
||||
echo "Done. Builds have been created in $WAPPALYZER_ROOT/build."
|
@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
cat << 'EOF'
|
||||
usage: wappalyzer <command> [<args>]
|
||||
|
||||
The following commands are available:
|
||||
build Package drivers
|
||||
help This help text
|
||||
links Create hard links to shared files in each driver
|
||||
validate Validate apps.json
|
||||
EOF
|
@ -0,0 +1,58 @@
|
||||
#!/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
|
||||
|
||||
if [ ! -d $path/src ]
|
||||
then
|
||||
echo "-$(basename $0): Incorrect path"
|
||||
|
||||
exit 1
|
||||
fi
|
||||
|
||||
path="$path/src"
|
||||
|
||||
ln -f $path/wappalyzer.js $path/drivers/firefox/lib
|
||||
ln -f $path/apps.json $path/drivers/firefox/data
|
||||
ln -f $path/icons/*.png $path/drivers/firefox/data/images/icons
|
||||
|
||||
ln -f $path/wappalyzer.js $path/drivers/chrome/js
|
||||
ln -f $path/apps.json $path/drivers/chrome
|
||||
ln -f $path/icons/*.png $path/drivers/chrome/images/icons
|
||||
|
||||
ln -f $path/wappalyzer.js $path/drivers/bookmarklet/js
|
||||
ln -f $path/icons/*.png $path/drivers/bookmarklet/images/icons
|
||||
|
||||
ln -f $path/wappalyzer.js $path/drivers/html/js
|
||||
ln -f $path/apps.json $path/drivers/html
|
||||
ln -f $path/icons/*.png $path/drivers/html/images/icons
|
||||
|
||||
ln -f $path/wappalyzer.js $path/drivers/php/js
|
||||
ln -f $path/apps.json $path/drivers/php
|
||||
|
||||
ln -f $path/wappalyzer.js $path/drivers/python/js
|
||||
ln -f $path/apps.json $path/drivers/python
|
||||
|
||||
ln -f $path/wappalyzer.js $path/drivers/phantomjs/js
|
||||
ln -f $path/apps.json $path/drivers/phantomjs
|
||||
|
||||
ln -f $path/wappalyzer.js $path/drivers/ruby/js
|
||||
ln -f $path/apps.json $path/drivers/ruby
|
||||
|
||||
ln -f $path/wappalyzer.js $path/drivers/npm
|
||||
ln -f $path/apps.json $path/drivers/npm
|
||||
|
||||
echo "Hard links created"
|
||||
|
||||
exit 0
|
@ -0,0 +1,39 @@
|
||||
#!/bin/bash
|
||||
|
||||
color_ok='\033[1;32m'
|
||||
color_err='\033[0;31m'
|
||||
color_none='\033[0m'
|
||||
|
||||
path=$1
|
||||
|
||||
if [ -z $path ]
|
||||
then
|
||||
if [ -z $WAPPALYZER_ROOT ]
|
||||
then
|
||||
echo "-$(basename $0): No path specified"
|
||||
|
||||
exit 1
|
||||
fi
|
||||
|
||||
path=$WAPPALYZER_ROOT
|
||||
fi
|
||||
|
||||
if [ ! -d $path/src ]
|
||||
then
|
||||
echo "-$(basename $0): Incorrect path"
|
||||
|
||||
exit 1
|
||||
fi
|
||||
|
||||
path="$path/src"
|
||||
|
||||
echo -en "${color_err}"
|
||||
|
||||
jsonlint --quiet $path/apps.json
|
||||
|
||||
if [ $? -eq 0 ]
|
||||
then
|
||||
echo -e "${color_ok}No errors found"
|
||||
fi
|
||||
|
||||
echo -en "${color_none}"
|
Reference in new issue