Computer Science Club of the University of Waterloo's website.
https://csclub.uwaterloo.ca
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.
30 lines
411 B
30 lines
411 B
#!/usr/bin/env bash
|
|
|
|
set -ex
|
|
ulimit -u 512
|
|
|
|
DIR=$(mktemp --directory)
|
|
# set USE_LDAP to true to generate member list using LDAP database
|
|
export USE_LDAP=true
|
|
|
|
pushd $DIR
|
|
|
|
git clone https://git.csclub.uwaterloo.ca/www/www-new.git --depth=1
|
|
|
|
cd www-new
|
|
|
|
npm install
|
|
npm run build
|
|
npm run export
|
|
|
|
chgrp -R www out
|
|
chmod -R g+w out
|
|
|
|
shopt -s dotglob
|
|
|
|
rm -rf /srv/www-csc/*
|
|
mv out/* /srv/www-csc/
|
|
|
|
popd
|
|
|
|
rm -rf $DIR
|
|
|