Permalink
Browse files

Changed to rolling release (with automatic versioning)

  • Loading branch information...
kimholviala committed Jan 28, 2018
1 parent d02d7ab commit 10383d37474a9ae53847ca2ba2cac575e19807bc
Showing with 23 additions and 118 deletions.
  1. +1 −1 .gitignore
  2. +6 −20 Makefile
  3. +0 −97 debian/changelog
  4. +16 −0 version
View
@@ -19,8 +19,8 @@ ChangeLog
#
build-stamp
debian/files
debian/changelog
debian/gophernicus.debhelper.log
debian/gophernicus.postrm.debhelper
debian/gophernicus.substvars
debian/gophernicus/
View
@@ -8,8 +8,10 @@
NAME = gophernicus
PACKAGE = $(NAME)
BINARY = in.$(NAME)
VERSION = 2.5
CODENAME = Millennium Edition
VERSION = `./version`
CODENAME = Outta Prison
AUTHOR = Kim Holviala
EMAIL = kimholviala@fastmail.com
SOURCES = $(NAME).c file.c menu.c string.c platform.c session.c options.c
HEADERS = functions.h files.h
@@ -37,10 +39,6 @@ HAS_STD = /run/systemd/system
SYSCONF = /etc/sysconfig
DEFAULT = /etc/default
DIST = $(PACKAGE)-$(VERSION)
TGZ = $(DIST).tar.gz
RELDIR = $(ROOT)/gophernicus.org/software/gophernicus/
CC = gcc
HOSTCC = $(CC)
CFLAGS = -O2 -Wall
@@ -69,6 +67,8 @@ withwrap:
# Special targets
#
deb:
printf "$(PACKAGE) ($(VERSION)) unstable; urgency=low\n\n * Automatically generated changelog\n\n" > debian/changelog
printf " -- $(AUTHOR) <$(EMAIL)> %s\n" "`LC_ALL=POSIX date "+%a, %d %b %Y %H:%M:%S %z"`" >> debian/changelog
dpkg-buildpackage -rfakeroot -uc -us
ChangeLog:
@@ -294,19 +294,6 @@ uninstall-systemd:
fi
@echo
#
# Release targets
#
dist: clean functions.h ChangeLog
mkdir -p /tmp/$(DIST)
tar -cf - ./ --exclude=./.git | (cd /tmp/$(DIST) && tar -xf -)
(cd /tmp/ && tar -cvf - $(DIST)) | gzip > $(TGZ)
rm -rf /tmp/$(DIST)
release: dist
cp $(TGZ) $(RELDIR)
cp README README.Gophermap INSTALL LICENSE ChangeLog $(RELDIR)
#
# List all C defines
@@ -321,4 +308,3 @@ defines: functions.h files.h
loc:
@wc -l *.c
View

This file was deleted.

Oops, something went wrong.
View
16 version
@@ -0,0 +1,16 @@
#!/bin/sh
##
## Generate Gophernicus version/build number
##
MAJOR=2
MINOR=99
if which git >/dev/null && test -d .git; then
printf "${MAJOR}."
git log | grep -c "^commit"
else
echo ${MAJOR}.${MINOR}
fi

0 comments on commit 10383d3

Please sign in to comment.