[go: up one dir, main page]

Menu

[cb522e]: / publish.sh  Maximize  Restore  History

Download this file

36 lines (29 with data), 800 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh
if [ -z "$SFUSER" ]; then
# Feel free to add your commonly-used accounts here.
case "$USER" in
jhallen) SFUSER=jhallen ;;
joe) SFUSER=jhallen ;;
jj) SFUSER=jjjordan ;;
jjjordan) SFUSER=jjjordan ;;
*) echo Please set the SFUSER environment variable to your sourceforge user name
echo or edit this script to add a shortcut.
exit 1 ;;
esac
fi
cd $(dirname $0)
echo ''
echo ===
echo === Building website
echo ===
echo ''
# Ensure clean build
rm -rf dist intermediate
./node_modules/.bin/gulp || exit $?
echo ''
echo ===
echo === Rsync-ing dist/ to $SFUSER@web.sourceforge.net
echo ===
echo ''
# Upload, pass any commandline arguments (like --dry-run) to rsync
rsync -azP -e ssh --delete "$@" dist/ $SFUSER@web.sourceforge.net:/home/project-web/joe-editor/htdocs/