Date:2011-07-28 11:29:19 (6 years 3 months ago)
Author:Werner Almesberger
Commit:6cadac8977aaadaa249411ebaea74db87c5d9138
Message:Makefile: switched from SVN to git

- Makefile (CFLAGS): renamed cpp macro SVN_VERSION to VERSION
- Makefile (SVN_VERSION, SVN_STATUS): renamed to GIT_VERSION and
GIT_STATUS and switched to corresponding git command
- Makefile (.PHONY, update): removed this little-used target
Files: Makefile (4 diffs)
gui.c (2 diffs)

Change Details

Makefile
11#
22# Makefile - Makefile of fped, the footprint editor
33#
4# Written 2009, 2010 by Werner Almesberger
5# Copyright 2009, 2010 by Werner Almesberger
4# Written 2009-2011 by Werner Almesberger
5# Copyright 2009-2011 by Werner Almesberger
66#
77# This program is free software; you can redistribute it and/or modify
88# it under the terms of the GNU General Public License as published by
...... 
3838CFLAGS_WARN = -Wall -Wshadow -Wmissing-prototypes \
3939          -Wmissing-declarations -Wno-format-zero-length
4040CFLAGS = -g -std=gnu99 $(CFLAGS_GTK) -DCPP='"cpp"' \
41         -DSVN_VERSION='"$(SVN_VERSION)$(SVN_STATUS)"' $(CFLAGS_WARN)
41         -DVERSION='"$(GIT_VERSION)$(GIT_STATUS)"' $(CFLAGS_WARN)
4242SLOPPY = -Wno-unused -Wno-implicit-function-declaration \
4343     -Wno-missing-prototypes -Wno-missing-declarations
4444LDFLAGS =
...... 
4646YACC = bison -y
4747YYFLAGS = -v
4848
49SVN_VERSION:=$(shell svn info -R | sed '/Last Changed Rev: /s///p;d' | \
50    sort -r | sed 1q)
51SVN_STATUS:=$(shell [ -z "`svn status -q`" ] || echo +)
49GIT_VERSION:=$(shell git rev-parse HEAD | cut -c 1-7)
50GIT_STATUS:=$(shell [ -z "`git status -s -uno`" ] || echo +)
5251
5352
5453# ----- Verbosity control -----------------------------------------------------
...... 
188187
189188uninstall:
190189        rm -f $(DESTDIR)/$(PREFIX)/bin/fped
191
192# ----- SVN update ------------------------------------------------------------
193
194update:
195        svn update
196        $(MAKE) dep all
gui.c
11/*
22 * gui.c - Editor GUI core
33 *
4 * Written 2009, 2010 by Werner Almesberger
5 * Copyright 2009, 2010 by Werner Almesberger
4 * Written 2009-2011 by Werner Almesberger
5 * Copyright 2009-2011 by Werner Almesberger
66 *
77 * This program is free software; you can redistribute it and/or modify
88 * it under the terms of the GNU General Public License as published by
...... 
385385    root = gtk_window_new(GTK_WINDOW_TOPLEVEL);
386386    gtk_window_set_position(GTK_WINDOW(root), GTK_WIN_POS_CENTER);
387387    gtk_window_set_default_size(GTK_WINDOW(root), 620, 460);
388    if (*SVN_VERSION)
388    if (*VERSION)
389389        gtk_window_set_title(GTK_WINDOW(root),
390            "fped (rev " SVN_VERSION ")");
390            "fped (rev " VERSION ")");
391391    else
392392        gtk_window_set_title(GTK_WINDOW(root), "fped");
393393

Archive Download the corresponding diff file

Branches:
master



interactive