Skip to content

Commit

Permalink
Re-organize project to be more suitable for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
codebrainz committed Feb 27, 2012
1 parent 593c7d4 commit 54a221c
Show file tree
Hide file tree
Showing 25 changed files with 123 additions and 76 deletions.
5 changes: 5 additions & 0 deletions COPYING
@@ -0,0 +1,5 @@
Licenses
========

Each theme file (colorschemes/*.conf) contains information about the license
which it is available under and the terms of distribution.
43 changes: 33 additions & 10 deletions Makefile
@@ -1,17 +1,40 @@
ifndef PREFIX
PREFIX = ~/.config
endif
#
# Makefile for geany-themes development
#

INSTALL_DIR = $(PREFIX)/geany/colorschemes/

COLOR_SCHEMES = $(wildcard *.conf)
COLOR_SCHEMES_INSTALLED = $(addprefix $(INSTALL_DIR), $(COLOR_SCHEMES))
THEMES = $(wildcard colorschemes/*.conf)
COLORSCHEME_DIR = ${HOME}/.config/geany/colorschemes
UNINSTALL_THEMES = $(addprefix $(COLORSCHEME_DIR)/, $(notdir $(THEMES)))
GEANY_VERSION = $(shell pkg-config --modversion geany 2>/dev/null)
THEMES_VERSION = 1.22
MISMATCH_MESSAGE = Warning: Possible wrong version of Geany installed
ARCHIVE_NAME = geany-themes-$(THEMES_VERSION).tar.bz2
ARCHIVE_TEMP_DIR = geany-themes-$(THEMES_VERSION)

# dummy rule to handle default case, doesn't do anything useful
all:
@echo "Nothing to be done, use \`make install' to install."
@test "$(GEANY_VERSION)" = "$(THEMES_VERSION)" || echo "$(MISMATCH_MESSAGE)"
@echo "Nothing to do, use \`make install' instead."

install:
install -m 0644 $(COLOR_SCHEMES) $(INSTALL_DIR)
@test "$(GEANY_VERSION)" = "$(THEMES_VERSION)" || echo "$(MISMATCH_MESSAGE)"
mkdir -p $(COLORSCHEME_DIR)
install -m 0644 $(THEMES) "$(COLORSCHEME_DIR)"

uninstall:
rm -f $(COLOR_SCHEMES_INSTALLED)
@test "$(GEANY_VERSION)" = "$(THEMES_VERSION)" || echo "** $(MISMATCH_MESSAGE)"
# NOTE: leave straggling directory ~/.config/geany/colorschemes this is for
# safety in case there's other stuff in there.
rm -f $(UNINSTALL_THEMES)

ChangeLog:
git --no-pager log --format="%ai %aN %n%n%x09* %s%d%n" > ChangeLog

dist: $(THEMES) README Makefile ChangeLog AUTHORS COPYING
mkdir -p geany-themes-$(THEMES_VERSION)/colorschemes/
cp colorschemes/*.conf $(ARCHIVE_TEMP_DIR)/colorschemes/
cp AUTHORS COPYING README ChangeLog $(ARCHIVE_TEMP_DIR)/
tar -cjf $(ARCHIVE_NAME) $(ARCHIVE_TEMP_DIR)/
rm -rf $(ARCHIVE_TEMP_DIR) ChangeLog

.PHONY: all install uninstall dist ChangeLog
85 changes: 85 additions & 0 deletions README
@@ -0,0 +1,85 @@
Geany Themes README - Development/Maintained Branch
===================================================

Please read this, admittedly long-winded, yet very important front-matter which
follows, to save yourself frustration...

*Are you using Geany < 0.20?*
-----------------------------
Unfortunately, this is not supported, sorry.

*Are you using Geany 0.20?*
---------------------------
If so, you can get a compatible version of Geany Themes from either of these
download addresses:
https://github.com/downloads/codebrainz/geany-themes/geany-themes-0.20.zip
https://github.com/downloads/codebrainz/geany-themes/geany-themes-0.20.tar.bz2

_Note:_ There are no plans to further update Geany Themes 0.20 releases, but
if you send me an udpated `geany-themes-0.20.x.zip` or
`geany-themes-0.20.x.tar.bz2` file (or both), I will check them out and add
them as updated download links here in the README and in the Github downloads.

*Are you using Geany 0.21?*
---------------------------
If so, you can get a compatible version of Geany Themes from either of these
download addresses:
https://github.com/downloads/codebrainz/geany-themes/geany-themes-0.21.zip
https://github.com/downloads/codebrainz/geany-themes/geany-themes-0.21.tar.bz2

_Note:_ There are no plans to further update Geany Themes 0.21 releases, but
if you send me an udpated `geany-themes-0.21.x.zip` or
`geany-themes-0.21.x.tar.bz2` file (or both), I will check them out and add
them as updated download links here in the README and in the Github downloads.

*IMPORTANT: ALL USERS*
----------------------
The color schemes here are only compatible with Geany 1.22 and no other
versions. Check your version of Geany by checking the `About` dialog in the
`Help` menu. Please note that Geany version 1.22 is as of yet (Feb 27/2012)
unreleased and so this is the "development" version of Geany Themes. All bugs
should be reported against this version.

*IMPORTANT: ALL USERS*
----------------------
Each release and even the development branch contains a README* file with
information you should read (yes, that's this file), explaining how to install
and uninstall the themes.

*IMPORTANT: UBUNTU/UNITY USERS*
-------------------------------
There is a conflict in Geany's code when you are using Unity's DBUS menu (that
global menu at the top of the screen). The fix for this is available in the
`master` branch of Geany. To work around the problem before the fix was
applied, you can ensure that the environment variable `UBUNTU_MENUPROXY` is set
to `0` before running Geany. This will disable Unity from stealing Geany's main
menu and will leave it within Geany's main window. You should be able to edit
your launchers for Geany to run like this `UBUNTU_MENUPROXY=0 geany`. You can
even make a Bash alias if you wish.

Unix-like Installation
----------------------

Extract the tarball and copy all of the files in the `colorschemes` directory
to your `~/.config/geany/colorschemes/` directory. Create that directory if it
doesn't already exist.

Windows Installation
--------------------

Extract the tarball and copy all of the files in the `colorschemes` directory
to your `C:\Users\YourUserName\AppData\Roaming\geany\colorschemes` directory.
Create this directory if it doesn't already exist.

_Note:_ The Windows directory paths above are for Windows 7, they might be
different for other Windows versions (see the Geany manual).

_Note:_ Both of the above instructions will want to over-write your existing
colorschemes and filedefs which you might have customized. Be sure to backup
any files in those directories that you do not want over-written.

_Note:_ In this development branch, the `filedefs` have been upstreamed and so
are no longer required as part of this project. This is unlike previous
releases, if you were wondering.

Geany Themes was created and is maintained by Matthew Brush <matt@geany.org>.
41 changes: 0 additions & 41 deletions README.md

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 0 additions & 15 deletions install.sh

This file was deleted.

10 changes: 0 additions & 10 deletions update.sh

This file was deleted.

0 comments on commit 54a221c

Please sign in to comment.