summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaromil <jaromil@dyne.org>2013-08-14 14:06:34 (GMT)
committer Jaromil <jaromil@dyne.org>2013-08-14 14:06:34 (GMT)
commitfd73f341d4b276e25ff69920905033e3b2c9f904 (patch)
tree7a192106522d245a3c99d94de5a7d2c03c590479
parente7ce93c61620f27e9e4db9d56e8ebcef53c4c07b (diff)
project renamed to webnomad
-rwxr-xr-xconvert10
-rwxr-xr-xinit56
-rwxr-xr-xrender18
-rwxr-xr-xtheme23
-rwxr-xr-xupdate6
-rwxr-xr-xutils8
6 files changed, 71 insertions, 50 deletions
diff --git a/convert b/convert
index ef13485..1a94d0a 100755
--- a/convert
+++ b/convert
@@ -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]";
diff --git a/init b/init
index 900d65b..b0af380 100755
--- a/init
+++ b/init
@@ -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
-
-upload:
- @scp -r pub/.htaccess pub/* online.server.org:/var/www
-EOF
-}
+notice "Website initialized"
+act "Now customize config.zsh and files in tmpl/"
+act "then create your pages in views/"
-act "website initialized."
diff --git a/render b/render
index d233632..bcaf964 100755
--- a/render
+++ b/render
@@ -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
diff --git a/theme b/theme
index e6b3d89..21e202c 100755
--- a/theme
+++ b/theme
@@ -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
diff --git a/update b/update
index c117d66..95dfeb4 100755
--- a/update
+++ b/update
@@ -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
diff --git a/utils b/utils
index 52a3ee9..aab204c 100755
--- a/utils
+++ b/utils
@@ -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" ;;