From: Silvio Rhatto Date: Sat, 28 Oct 2017 14:12:37 +0000 (-0200) Subject: Switch to share/templater X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=3d2eb793def440e3361d6b8f2593fd04042138f6;p=templater.git Switch to share/templater --- diff --git a/share/agpl/LICENSE b/share/templater/agpl/LICENSE similarity index 100% rename from share/agpl/LICENSE rename to share/templater/agpl/LICENSE diff --git a/share/apache/LICENSE b/share/templater/apache/LICENSE similarity index 100% rename from share/apache/LICENSE rename to share/templater/apache/LICENSE diff --git a/share/bsd/LICENSE b/share/templater/bsd/LICENSE similarity index 100% rename from share/bsd/LICENSE rename to share/templater/bsd/LICENSE diff --git a/share/conduct/CODE_OF_CONDUCT.md b/share/templater/conduct/CODE_OF_CONDUCT.md similarity index 100% rename from share/conduct/CODE_OF_CONDUCT.md rename to share/templater/conduct/CODE_OF_CONDUCT.md diff --git a/share/drupal7/drupal.make.yml b/share/templater/drupal7/drupal.make.yml similarity index 100% rename from share/drupal7/drupal.make.yml rename to share/templater/drupal7/drupal.make.yml diff --git a/share/drupal8/Makefile b/share/templater/drupal8/Makefile similarity index 100% rename from share/drupal8/Makefile rename to share/templater/drupal8/Makefile diff --git a/share/drupal8/default.services.yml b/share/templater/drupal8/default.services.yml similarity index 100% rename from share/drupal8/default.services.yml rename to share/templater/drupal8/default.services.yml diff --git a/share/drupal8/default.settings.php b/share/templater/drupal8/default.settings.php similarity index 100% rename from share/drupal8/default.settings.php rename to share/templater/drupal8/default.settings.php diff --git a/share/drupal8/development.services.yml b/share/templater/drupal8/development.services.yml similarity index 100% rename from share/drupal8/development.services.yml rename to share/templater/drupal8/development.services.yml diff --git a/share/drupal8/drupal.make.yml b/share/templater/drupal8/drupal.make.yml similarity index 100% rename from share/drupal8/drupal.make.yml rename to share/templater/drupal8/drupal.make.yml diff --git a/share/drupal8/example.settings.local.php b/share/templater/drupal8/example.settings.local.php similarity index 100% rename from share/drupal8/example.settings.local.php rename to share/templater/drupal8/example.settings.local.php diff --git a/share/drupal8/example.sites.php b/share/templater/drupal8/example.sites.php similarity index 100% rename from share/drupal8/example.sites.php rename to share/templater/drupal8/example.sites.php diff --git a/share/gpl/LICENSE b/share/templater/gpl/LICENSE similarity index 100% rename from share/gpl/LICENSE rename to share/templater/gpl/LICENSE diff --git a/share/ikiwiki/.gitignore b/share/templater/ikiwiki/.gitignore similarity index 100% rename from share/ikiwiki/.gitignore rename to share/templater/ikiwiki/.gitignore diff --git a/share/ikiwiki/Makefile b/share/templater/ikiwiki/Makefile similarity index 100% rename from share/ikiwiki/Makefile rename to share/templater/ikiwiki/Makefile diff --git a/share/ikiwiki/bin/post-receive b/share/templater/ikiwiki/bin/post-receive similarity index 100% rename from share/ikiwiki/bin/post-receive rename to share/templater/ikiwiki/bin/post-receive diff --git a/share/ikiwiki/bootstrap/css/bootstrap-responsive.css b/share/templater/ikiwiki/bootstrap/css/bootstrap-responsive.css similarity index 100% rename from share/ikiwiki/bootstrap/css/bootstrap-responsive.css rename to share/templater/ikiwiki/bootstrap/css/bootstrap-responsive.css diff --git a/share/ikiwiki/bootstrap/css/bootstrap-responsive.min.css b/share/templater/ikiwiki/bootstrap/css/bootstrap-responsive.min.css similarity index 100% rename from share/ikiwiki/bootstrap/css/bootstrap-responsive.min.css rename to share/templater/ikiwiki/bootstrap/css/bootstrap-responsive.min.css diff --git a/share/ikiwiki/bootstrap/css/bootstrap.css b/share/templater/ikiwiki/bootstrap/css/bootstrap.css similarity index 100% rename from share/ikiwiki/bootstrap/css/bootstrap.css rename to share/templater/ikiwiki/bootstrap/css/bootstrap.css diff --git a/share/ikiwiki/bootstrap/css/bootstrap.min.css b/share/templater/ikiwiki/bootstrap/css/bootstrap.min.css similarity index 100% rename from share/ikiwiki/bootstrap/css/bootstrap.min.css rename to share/templater/ikiwiki/bootstrap/css/bootstrap.min.css diff --git a/share/ikiwiki/bootstrap/img/glyphicons-halflings-white.png b/share/templater/ikiwiki/bootstrap/img/glyphicons-halflings-white.png similarity index 100% rename from share/ikiwiki/bootstrap/img/glyphicons-halflings-white.png rename to share/templater/ikiwiki/bootstrap/img/glyphicons-halflings-white.png diff --git a/share/ikiwiki/bootstrap/img/glyphicons-halflings.png b/share/templater/ikiwiki/bootstrap/img/glyphicons-halflings.png similarity index 100% rename from share/ikiwiki/bootstrap/img/glyphicons-halflings.png rename to share/templater/ikiwiki/bootstrap/img/glyphicons-halflings.png diff --git a/share/ikiwiki/ikiwiki.yaml b/share/templater/ikiwiki/ikiwiki.yaml similarity index 100% rename from share/ikiwiki/ikiwiki.yaml rename to share/templater/ikiwiki/ikiwiki.yaml diff --git a/share/ikiwiki/index.md b/share/templater/ikiwiki/index.md similarity index 100% rename from share/ikiwiki/index.md rename to share/templater/ikiwiki/index.md diff --git a/share/ikiwiki/local.css b/share/templater/ikiwiki/local.css similarity index 100% rename from share/ikiwiki/local.css rename to share/templater/ikiwiki/local.css diff --git a/share/ikiwiki/sitemap.md b/share/templater/ikiwiki/sitemap.md similarity index 100% rename from share/ikiwiki/sitemap.md rename to share/templater/ikiwiki/sitemap.md diff --git a/share/ikiwiki/templates/inlinepage.tmpl b/share/templater/ikiwiki/templates/inlinepage.tmpl similarity index 100% rename from share/ikiwiki/templates/inlinepage.tmpl rename to share/templater/ikiwiki/templates/inlinepage.tmpl diff --git a/share/ikiwiki/templates/page.tmpl b/share/templater/ikiwiki/templates/page.tmpl similarity index 100% rename from share/ikiwiki/templates/page.tmpl rename to share/templater/ikiwiki/templates/page.tmpl diff --git a/share/ikiwiki/timeline.md b/share/templater/ikiwiki/timeline.md similarity index 100% rename from share/ikiwiki/timeline.md rename to share/templater/ikiwiki/timeline.md diff --git a/share/mit/LICENSE b/share/templater/mit/LICENSE similarity index 100% rename from share/mit/LICENSE rename to share/templater/mit/LICENSE diff --git a/share/mpl/LICENSE b/share/templater/mpl/LICENSE similarity index 100% rename from share/mpl/LICENSE rename to share/templater/mpl/LICENSE diff --git a/share/pelican/.gitignore b/share/templater/pelican/.gitignore similarity index 100% rename from share/pelican/.gitignore rename to share/templater/pelican/.gitignore diff --git a/share/pelican/Makefile b/share/templater/pelican/Makefile similarity index 100% rename from share/pelican/Makefile rename to share/templater/pelican/Makefile diff --git a/share/pelican/content/index.md b/share/templater/pelican/content/index.md similarity index 100% rename from share/pelican/content/index.md rename to share/templater/pelican/content/index.md diff --git a/share/pelican/pelicanconf.py b/share/templater/pelican/pelicanconf.py similarity index 100% rename from share/pelican/pelicanconf.py rename to share/templater/pelican/pelicanconf.py diff --git a/share/sphinx/.gitignore b/share/templater/sphinx/.gitignore similarity index 100% rename from share/sphinx/.gitignore rename to share/templater/sphinx/.gitignore diff --git a/share/sphinx/Makefile b/share/templater/sphinx/Makefile similarity index 100% rename from share/sphinx/Makefile rename to share/templater/sphinx/Makefile diff --git a/share/sphinx/_static/.empty b/share/templater/sphinx/_static/.empty similarity index 100% rename from share/sphinx/_static/.empty rename to share/templater/sphinx/_static/.empty diff --git a/share/sphinx/conf.py b/share/templater/sphinx/conf.py similarity index 100% rename from share/sphinx/conf.py rename to share/templater/sphinx/conf.py diff --git a/share/wtfpl/LICENSE b/share/templater/wtfpl/LICENSE similarity index 100% rename from share/wtfpl/LICENSE rename to share/templater/wtfpl/LICENSE diff --git a/templater b/templater index aa98fb9..f44885e 100755 --- 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