]> gitweb.fluxo.info Git - templater.git/commitdiff
Switch to share/templater
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 28 Oct 2017 14:12:37 +0000 (12:12 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 28 Oct 2017 14:12:37 +0000 (12:12 -0200)
41 files changed:
share/templater/agpl/LICENSE [moved from share/agpl/LICENSE with 100% similarity]
share/templater/apache/LICENSE [moved from share/apache/LICENSE with 100% similarity]
share/templater/bsd/LICENSE [moved from share/bsd/LICENSE with 100% similarity]
share/templater/conduct/CODE_OF_CONDUCT.md [moved from share/conduct/CODE_OF_CONDUCT.md with 100% similarity]
share/templater/drupal7/drupal.make.yml [moved from share/drupal7/drupal.make.yml with 100% similarity]
share/templater/drupal8/Makefile [moved from share/drupal8/Makefile with 100% similarity]
share/templater/drupal8/default.services.yml [moved from share/drupal8/default.services.yml with 100% similarity]
share/templater/drupal8/default.settings.php [moved from share/drupal8/default.settings.php with 100% similarity]
share/templater/drupal8/development.services.yml [moved from share/drupal8/development.services.yml with 100% similarity]
share/templater/drupal8/drupal.make.yml [moved from share/drupal8/drupal.make.yml with 100% similarity]
share/templater/drupal8/example.settings.local.php [moved from share/drupal8/example.settings.local.php with 100% similarity]
share/templater/drupal8/example.sites.php [moved from share/drupal8/example.sites.php with 100% similarity]
share/templater/gpl/LICENSE [moved from share/gpl/LICENSE with 100% similarity]
share/templater/ikiwiki/.gitignore [moved from share/ikiwiki/.gitignore with 100% similarity]
share/templater/ikiwiki/Makefile [moved from share/ikiwiki/Makefile with 100% similarity]
share/templater/ikiwiki/bin/post-receive [moved from share/ikiwiki/bin/post-receive with 100% similarity]
share/templater/ikiwiki/bootstrap/css/bootstrap-responsive.css [moved from share/ikiwiki/bootstrap/css/bootstrap-responsive.css with 100% similarity]
share/templater/ikiwiki/bootstrap/css/bootstrap-responsive.min.css [moved from share/ikiwiki/bootstrap/css/bootstrap-responsive.min.css with 100% similarity]
share/templater/ikiwiki/bootstrap/css/bootstrap.css [moved from share/ikiwiki/bootstrap/css/bootstrap.css with 100% similarity]
share/templater/ikiwiki/bootstrap/css/bootstrap.min.css [moved from share/ikiwiki/bootstrap/css/bootstrap.min.css with 100% similarity]
share/templater/ikiwiki/bootstrap/img/glyphicons-halflings-white.png [moved from share/ikiwiki/bootstrap/img/glyphicons-halflings-white.png with 100% similarity]
share/templater/ikiwiki/bootstrap/img/glyphicons-halflings.png [moved from share/ikiwiki/bootstrap/img/glyphicons-halflings.png with 100% similarity]
share/templater/ikiwiki/ikiwiki.yaml [moved from share/ikiwiki/ikiwiki.yaml with 100% similarity]
share/templater/ikiwiki/index.md [moved from share/ikiwiki/index.md with 100% similarity]
share/templater/ikiwiki/local.css [moved from share/ikiwiki/local.css with 100% similarity]
share/templater/ikiwiki/sitemap.md [moved from share/ikiwiki/sitemap.md with 100% similarity]
share/templater/ikiwiki/templates/inlinepage.tmpl [moved from share/ikiwiki/templates/inlinepage.tmpl with 100% similarity]
share/templater/ikiwiki/templates/page.tmpl [moved from share/ikiwiki/templates/page.tmpl with 100% similarity]
share/templater/ikiwiki/timeline.md [moved from share/ikiwiki/timeline.md with 100% similarity]
share/templater/mit/LICENSE [moved from share/mit/LICENSE with 100% similarity]
share/templater/mpl/LICENSE [moved from share/mpl/LICENSE with 100% similarity]
share/templater/pelican/.gitignore [moved from share/pelican/.gitignore with 100% similarity]
share/templater/pelican/Makefile [moved from share/pelican/Makefile with 100% similarity]
share/templater/pelican/content/index.md [moved from share/pelican/content/index.md with 100% similarity]
share/templater/pelican/pelicanconf.py [moved from share/pelican/pelicanconf.py with 100% similarity]
share/templater/sphinx/.gitignore [moved from share/sphinx/.gitignore with 100% similarity]
share/templater/sphinx/Makefile [moved from share/sphinx/Makefile with 100% similarity]
share/templater/sphinx/_static/.empty [moved from share/sphinx/_static/.empty with 100% similarity]
share/templater/sphinx/conf.py [moved from share/sphinx/conf.py with 100% similarity]
share/templater/wtfpl/LICENSE [moved from share/wtfpl/LICENSE with 100% similarity]
templater

index aa98fb9d150405c7de90c9bdf742326161b9277b..f44885e7061b95f3d368b68e484b4569363a5dc3 100755 (executable)
--- a/templater
+++ b/templater
@@ -13,12 +13,12 @@ BOOTSTRAP="https://git.fluxo.info/puppet-bootstrap"
 CWD="`pwd`"
 
 # Set shared files location
-if [ -e "`dirname $(readlink -f $0)`/share/$NAME" ]; then
+if [ -e "`dirname $(readlink -f $0)`/share/$BASENAME" ]; then
   # Development or local installation layout
-  SHARE="`dirname $(readlink -f $0)`/share/$NAME"
+  SHARE="`dirname $(readlink -f $0)`/share/$BASENAME"
 else
   # System installation layout
-  SHARE="`dirname $(readlink -f $0)`/../share/$NAME"
+  SHARE="`dirname $(readlink -f $0)`/../share/$BASENAME"
 fi
 
 # Initialize project
@@ -46,7 +46,8 @@ function __templater_ask {
 # Return list of implementations
 function __templater_implementations {
   # Do not sort this list: the order in which functions are present in the code is important
-  grep "^function templater_" $PROGRAM | cut -d ' ' -f 2 | sed -e 's/templater_//'
+  #grep "^function templater_" $PROGRAM | cut -d ' ' -f 2 | sed -e 's/templater_//'
+  ls $SHARE
 }
 
 # Message