Skip to content

Commit

Permalink
Version number is now in 1 place
Browse files Browse the repository at this point in the history
  • Loading branch information
trufae committed Feb 14, 2019
1 parent d9e24b7 commit bf859e1
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,22 @@ ARCHS=armv7 arm64
CFLAGS+=-I.
CFLAGS+=-Wall

include config.mk
CFLAGS+=-DFSMON_VERSION=\"$(VERSION)\"

SOURCES=main.c util.c
SOURCES+=backend/*.c

ifeq ($(shell uname),Linux)

# LINUX: GNU / ANDROID
# __
# -=(o '.
# \.-.\
# /| \\
# '| ||
# _\_):,_

FANOTIFY_CFLAGS+=-DHAVE_FANOTIFY=1
FANOTIFY_CFLAGS+=-DHAVE_SYS_FANOTIFY=1

Expand Down
1 change: 1 addition & 0 deletions config.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VERSION=1.6.1
2 changes: 1 addition & 1 deletion cydia/CONFIG
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PACKAGE=fsmon
VERSION=1.6
include ../config.mk
ARCH=iphoneos-arm
SECTION=user/shell
PRIORITY=optional
Expand Down
4 changes: 3 additions & 1 deletion fsmon.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#ifndef INCLUDE_FM_FSMON_H
#define INCLUDE_FM_FSMON_H

#define FSMON_VERSION "1.6"
#ifndef FSMON_VERSION
#error FSMON_VERSION is not defined
#endif

#include <stdint.h>
#include <signal.h>
Expand Down
3 changes: 1 addition & 2 deletions pkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@
DESTDIR=/tmp/fsmon_pkg
PREFIX=/usr/local
PKGDIR="$(pwd)/fsmon.unpkg"
[ -z "${VERSION}" ] && VERSION=1.6
[ -z "${MAKE}" ] && MAKE=make
VERSION=1.6
. config.mk # VERSION

rm -rf "${DESTDIR}"
${MAKE} clean
Expand Down

0 comments on commit bf859e1

Please sign in to comment.