1. Ross Light
  2. blackforest

Commits

Ross Light  committed 62eb88a

Add Black Forest icon

  • Participants
  • Parent commits 236160c
  • Branches default

Comments (0)

Files changed (11)

File misc/blackforest-hg-import.bash

-#!/bin/bash
-
-abspath () { case "$1" in /*)printf "%s\n" "$1";; *)printf "%s\n" "$PWD/$1";; esac; }
-
-root="$(abspath $1)"
-shift
-created="$(hg -R "$root" log -r0 --template='{date|rfc3339date}\n')"
-vcsurl="$(hg -R "$root" paths default | sed 's|^bb://|https://bitbucket.org/|')"
-
-blackforest create -created="$created" -path="$root" -vcs=hg -vcsurl="$vcsurl" "$@"
-exit $?

File misc/blackforest-missing.bash

-#!/bin/bash
-
-for name in $(blackforest ls)
-do
-    blackforest path "$name" > /dev/null
-    if [ $? -ne 0 ]
-    then
-        echo "$name"
-    fi
-done

File misc/blackforest.svg

View file
Added
New image

File misc/blackforest.vim

-" Vim plugin for Black Forest
-" Maintainer: Ross Light <ross@zombiezen.com>
-" License: Copyright (c) 2013, Ross Light. All rights reserved.
-"
-" Redistribution and use in source and binary forms, with or without modification,
-" are permitted provided that the following conditions are met:
-"
-" Redistributions of source code must retain the above copyright notice, this list
-" of conditions and the following disclaimer.
-"
-" Redistributions in binary form must reproduce the above copyright notice, this
-" list of conditions and the following disclaimer in the documentation and/or
-" other materials provided with the distribution.
-"
-" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-" DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
-" ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-" ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-" SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-function! BlackForestPath(project)
-  return substitute(system("blackforest path ".shellescape(a:project)), '[\r\n]\+$', '', '')
-endfunction
-
-function! s:CompleteBcd(ArgLead, CmdLine, CursorPos)
-  return system("blackforest ls")
-endfunction
-
-command! -bar -nargs=1 -complete=custom,s:CompleteBcd Bcd exec 'cd '.escape(BlackForestPath(<f-args>), ' \')
-
-" vim: ft=vim et ts=8 sts=2 sw=2 tw=80

File misc/vagrant/puppet/modules/puppet/manifests/init.pp

-class blackforest {
-    $importpath = "bitbucket.org/zombiezen/blackforest"
-    $go_url = "http://go.googlecode.com/files/go1.0.3.linux-386.tar.gz"
-    $user = "vagrant"
-    $gopath = "/home/$user/go"
-    $catalog = "/srv/blackforest-catalog"
-
-    group { $user:
-        ensure => present,
-    }
-
-    user { $user:
-        ensure => present,
-        gid => $user,
-    }
-
-    File {
-        owner => $user,
-        group => $user,
-    }
-
-    Exec {
-        user => $user,
-    }
-
-    package { ["git-core", "mercurial", "wget"]:
-        ensure => installed,
-    }
-
-    exec { "fetch-go":
-        require => Package["wget"],
-        command => "/usr/bin/wget -q -O - $go_url | /bin/tar xz -C /usr/local",
-        creates => "/usr/local/go/bin/go",
-        user => "root",
-    }
-
-    file {
-        ["$gopath",
-         "$gopath/src",
-         "$gopath/src/bitbucket.org",
-         "$gopath/src/bitbucket.org/zombiezen"]:
-            ensure => directory;
-
-        "$gopath/src/$importpath":
-            ensure => link,
-            target => "/vagrant";
-    }
-
-    file { "/tmp/blackforest-deps.bash":
-        ensure => file,
-        content => template("blackforest/blackforest-deps.bash"),
-        owner => "root",
-        group => "root",
-        mode => 755,
-    }
-
-    exec { "blackforest-deps":
-        require => [
-            Exec["fetch-go"],
-            Package["git-core"],
-            Package["mercurial"],
-            File["/tmp/blackforest-deps.bash"],
-            File["$gopath/src/$importpath"],
-        ],
-        command => "/tmp/blackforest-deps.bash",
-        environment => "GOPATH=$gopath",
-    }
-
-    file { "/home/$user/blackforest-reload":
-        ensure => file,
-        content => template("blackforest/blackforest-reload.bash"),
-        mode => 755,
-    }
-
-    exec { "blackforest-install":
-        require => Exec["blackforest-deps"],
-        command => "/usr/local/go/bin/go install $importpath",
-        environment => "GOPATH=$gopath",
-        creates => "$gopath/bin/blackforest",
-    }
-
-    file { "/etc/init/blackforest.conf":
-        mode => 600,
-        owner => "root",
-        group => "root",
-        content => template("blackforest/blackforest.conf"),
-    }
-
-    exec { "blackforest-init":
-        require => Exec["blackforest-install"],
-        command => "$gopath/bin/blackforest init -catalog=\"$catalog\"",
-        creates => $catalog,
-        user => "root",
-    }
-
-    service { "blackforest":
-        require => [File["/etc/init/blackforest.conf"], Exec["blackforest-init"]],
-        ensure => running,
-    }
-}

File misc/vagrant/puppet/modules/puppet/templates/blackforest-deps.bash

-#!/bin/bash
-
-GO=/usr/local/go/bin/go
-format='{{range .Deps}}{{.}}'$'\n''{{end}}'
-deps="$($GO list -f "$format" <%=importpath%> | sed -rn '\:^bitbucket\.org/zombiezen/blackforest($|/):!p')"
-$GO get -u $deps

File misc/vagrant/puppet/modules/puppet/templates/blackforest-reload.bash

-#!/bin/bash
-
-die() {
-    echo "$@" 1>&2
-    exit 1
-}
-
-if [ "$(whoami)" != root ]
-then
-    die "must be run as root"
-fi
-
-GO=/usr/local/go/bin/go
-
-initctl stop blackforest || die "** can't stop service"
-sudo -u <%=user%> GOPATH='<%=gopath%>' $GO install <%=importpath%> || die "** build failed"
-initctl start blackforest || die "** can't restart service"

File misc/vagrant/puppet/modules/puppet/templates/blackforest.conf

-description "Black Forest web"
-
-stop on runlevel [!2345]
-start on runlevel [3]
-
-respawn
-
-script
-    <%=gopath%>/bin/blackforest web -listen=:10710 \
-        -catalog="<%=catalog%>" \
-        -staticdir="<%=gopath%>/src/<%=importpath%>/static" \
-        -templatedir="<%=gopath%>/src/<%=importpath%>/templates"
-end script

File static/img/favicon.ico

Old
Old image
New
New image

File static/img/favicon.png

Old
Old image
New
New image

File static/img/favicon_172.png

Old
Old image
New
New image