#!/bin/bash

echo "- Update git"
git submodule update --force
git pull
echo "- Improve path"
rm -rf cdnjs
cp -rf ref-cdnjs/ajax/libs cdnjs
echo "- Build packages.json"
node build/build.js

#!/bin/bash

if [ "$1" == "" ]
then
    echo "[Usage] ./build/update.sh <dir>"
    exit
fi

echo "- Update git"
git submodule update --force
git pull
echo "- Improve path"
rm -rf cdnjs
cp -rf ref-cdnjs/ajax/libs cdnjs
echo "- Build packages.json"
node build/build.js
echo "- Copy packages.json to $1"
cp packages.json $1



Support dispatch packages.json to directory
Support dispatch packages.json to directory
