project renamed to webnomad

This commit is contained in:
Jaromil 2013-08-14 16:06:34 +02:00
parent e7ce93c616
commit fd73f341d4
6 changed files with 71 additions and 50 deletions

10
convert
View File

@ -18,7 +18,15 @@
# this source code; if not, write to:
# Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
source jaroweb/utils
DIR=`dirname $0`
CMD=`basename $0`
{ test -r $DIR } || {
echo "error: launch webnomad commands from your project directory"
echo "i.e: ./$DIR/$CMD"
return 1
}
source ${DIR}/utils
{ test "$3" = "" } && {
error "usage: remaster [destination dir] [images dir] [commands]";

56
init
View File

@ -1,8 +1,8 @@
#!/usr/bin/env zsh
#
# Jaro Web, your slick and static website publisher
# WebNomad, your slick and static website publisher
#
# Copyleft (C) 2012-2013 Denis Roio <jaromil@dyne.org>
# Copyright (C) 2012-2013 Denis Roio <jaromil@dyne.org>
#
# This source code is free software; you can redistribute it and/or
# modify it under the terms of the GNU Public License as published by
@ -18,7 +18,16 @@
# this source code; if not, write to:
# Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
source jaroweb/utils
DIR=`dirname $0`
CMD=`basename $0`
{ test -r $DIR } || {
echo "error: launch webnomad commands from your project directory"
echo "i.e: ./$DIR/$CMD"
return 1
}
source $DIR/utils
mkdir -p views
@ -39,49 +48,36 @@ EOF
mkdir -p tmpl
{ test -r tmpl/header.html } || {
cp -v jaroweb/tmpl/header.html tmpl }
cp -v ${DIR}/tmpl/header.html tmpl }
{ test -r tmpl/footer.html } || {
cp -v jaroweb/tmpl/footer.html tmpl }
cp -v ${DIR}/tmpl/footer.html tmpl }
{ test -r tmpl/navbar.html } || {
cp -v jaroweb/tmpl/navbar.html tmpl }
cp -v ${DIR}/tmpl/navbar.html tmpl }
{ test -r views/js/html5.js } || {
cp -v jaroweb/js/html5.js views/js }
cp -v ${DIR}/js/html5.js views/js }
{ test -r views/css/bootstrap.css } || {
cp -v jaroweb/js/bootstrap* views/js
cp -v jaroweb/css/bootstrap* views/css }
cp -v ${DIR}/js/bootstrap* views/js
cp -v ${DIR}/css/bootstrap* views/css }
{ test -r views/css/blueimp-gallery.css } || {
cp -v jaroweb/js/*blueimp* views/js
cp -v jaroweb/css/*blueimp* views/css }
{ test -r views/css/strapdown.css } || {
cp -v jaroweb/js/strapdown.js views/js
cp -v jaroweb/css/strapdown.css views/css }
cp -v ${DIR}/js/*blueimp* views/js
cp -v ${DIR}/css/*blueimp* views/css }
{ test -r config.zsh } || {
cat <<EOF > config.zsh
TITLE="A new website made with Jaro Web."
BRAND="Jaro Web"
DESCRIPTION="Jaro Web, your slick and static website publisher, powered by HTML5, Zsh and Bootstrap"
TITLE="A new website made with WebNomad."
BRAND="WebNomad"
DESCRIPTION="WebNomad, your slick and static website publisher, powered by HTML5, Zsh and Bootstrap"
KEYWORDS="web, design, html"
EOF
}
{ test -r Makefile } || {
cat <<EOF > Makefile
all:
@./jaroweb/render
clean:
rm -rf pub
notice "Website initialized"
act "Now customize config.zsh and files in tmpl/"
act "then create your pages in views/"
upload:
@scp -r pub/.htaccess pub/* online.server.org:/var/www
EOF
}
act "website initialized."

18
render
View File

@ -1,8 +1,8 @@
#!/usr/bin/env zsh
#
# Jaro Web, your slick and static website publisher
# WebNomad, your slick and static website publisher
#
# Copyleft (C) 2012-2013 Denis Roio <jaromil@dyne.org>
# Copyright (C) 2012-2013 Denis Roio <jaromil@dyne.org>
#
# This source code is free software; you can redistribute it and/or
# modify it under the terms of the GNU Public License as published by
@ -18,10 +18,18 @@
# this source code; if not, write to:
# Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
source jaroweb/utils
DIR=`dirname $0`
CMD=`basename $0`
{ test -r $DIR } || {
echo "error: launch webnomad commands from your project directory"
echo "i.e: ./$DIR/$CMD"
return 1
}
source ${DIR}/utils
{ test -r config.zsh } || {
error "Directory not configured for Jaro Web. First use jaroweb init"
error "Directory not configured for WebNomad. First use ./webnomad/init"
exit 1 }
@ -45,7 +53,7 @@ render_header() {
<meta name="keywords" content="$KEYWORDS" />
<meta charset="utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Generator" content="Jaro Web http://dyne.org/software/jaroweb" />
<meta name="Generator" content="WebNomad $VERSION - http://dyne.org/software/webnomad" />
<meta name="MSSmartTagsPreventParsing" content="True" />
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements

23
theme
View File

@ -1,8 +1,8 @@
#!/usr/bin/env zsh
#
# Jaro Web, your slick and static website publisher
# WebNomad, your slick and static website publisher
#
# Copyleft (C) 2012 Denis Roio <jaromil@dyne.org>
# Copyright (C) 2012-2013 Denis Roio <jaromil@dyne.org>
#
# This source code is free software; you can redistribute it and/or
# modify it under the terms of the GNU Public License as published by
@ -18,10 +18,19 @@
# this source code; if not, write to:
# Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
source jaroweb/utils
DIR=`dirname $0`
CMD=`basename $0`
{ test -r $DIR } || {
echo "error: launch webnomad commands from your project directory"
echo "i.e: ./$DIR/$CMD"
return 1
}
source ${DIR}/utils
{ test -r config.zsh } || {
error "Directory not configured for Jaro Web. First use jaroweb init"
error "Directory not configured for WebNomad. First use ./webnomad/init"
exit 1 }
@ -29,18 +38,18 @@ source jaroweb/utils
{ test -z $1 } && {
notice "List of available themes:"
for i in `ls jaroweb/themes`; do
for i in `ls ${DIR}/themes`; do
act "$i"
done
exit 0
}
{ test -r jaroweb/themes/$1 } || {
{ test -r ${DIR}/themes/$1 } || {
error "Theme not found: $1"
exit 1
}
notice "Installing theme: $1"
cp jaroweb/themes/$1/bootstrap.min.css \
cp ${DIR}/themes/$1/bootstrap.min.css \
views/css/bootstrap.min.css
exit 0

6
update
View File

@ -1,8 +1,8 @@
#!/usr/bin/env zsh
#
# Jaro Web, your slick and static website publisher
# WebNomad, your slick and static website publisher
#
# Copyleft (C) 2012-2013 Denis Roio <jaromil@dyne.org>
# Copyright (C) 2012-2013 Denis Roio <jaromil@dyne.org>
#
# This source code is free software; you can redistribute it and/or
# modify it under the terms of the GNU Public License as published by
@ -20,7 +20,7 @@
{ test -r init } || {
echo "Error: update must be run from inside the hipweb directory"
echo "Error: update must be run from inside the webnomad directory"
return 1 }
source utils

8
utils
View File

@ -1,8 +1,8 @@
#!/usr/bin/env zsh
#
# Jaro Web, your slick and static website publisher
# WebNomad, your slick and static website publisher
#
# Copyleft (C) 2012-2013 Denis Roio <jaromil@dyne.org>
# Copyright (C) 2012-2013 Denis Roio <jaromil@dyne.org>
#
# This source code is free software; you can redistribute it and/or
# modify it under the terms of the GNU Public License as published by
@ -45,10 +45,10 @@ if [[ ${@} == *-D* ]]; then DEBUG=1; fi
# simplifying modes of operation: GNU or MAC
case $(uname) in
Linux) OS=GNU
notice "Jaro Mail v$VERSION running on GNU/Linux" ;;
notice "WebNomad v$VERSION running on GNU/Linux" ;;
Darwin) OS=MAC
notice "Jaro Mail v$VERSION running on Mac/OSX" ;;
notice "WebNomad v$VERSION running on Mac/OSX" ;;
*) OS=GNU # default
error "Running on an unknown operating system, assuming GNU" ;;