mirror of
https://github.com/proxytunnel/proxytunnel.git
synced 2026-01-23 02:34:59 +00:00
Improve revision output
git-svn-id: https://proxytunnel.svn.sourceforge.net/svnroot/proxytunnel/trunk/proxytunnel@237 bc163920-b10d-0410-b2c5-a5491ca2ceef
This commit is contained in:
parent
c4ba6a4a98
commit
30a71c980d
4 changed files with 5 additions and 14 deletions
2
Makefile
2
Makefile
|
|
@ -5,7 +5,7 @@
|
|||
CC ?= cc
|
||||
CFLAGS ?= -Wall -O2 -ggdb
|
||||
|
||||
OPTFLAGS = -DREV=$(shell ./getrev.sh)
|
||||
OPTFLAGS = -DREVISION=\"$(shell svnversion | awk 'BEGIN { RS=":" } { next } END { print $$1 }')\"
|
||||
|
||||
# Comment on non-gnu systems
|
||||
OPTFLAGS += -DHAVE_GETOPT_LONG
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ extern char * optarg;
|
|||
static char *getCredentialsFromFile( const char* filename, char **user, char **pass, char **rem_user, char **rem_pass);
|
||||
|
||||
void cmdline_parser_print_version (void) {
|
||||
printf ("%s %s (rev %d) Copyright 2001-2008 Proxytunnel Project\n", PACKAGE, VERSION, REV);
|
||||
printf ("%s %s (rev %s) Copyright 2001-2008 Proxytunnel Project\n", PACKAGE, VERSION, REVISION);
|
||||
}
|
||||
|
||||
void cmdline_parser_print_help (void) {
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@
|
|||
# Authority: dag
|
||||
# Upstream: <proxytunnel-users$lists,sourceforge,net>
|
||||
|
||||
Summary: Punching holes in HTTP(S) proxy's
|
||||
Summary: Punching holes through HTTPS proxies
|
||||
Name: proxytunnel
|
||||
Version: 1.8.0
|
||||
Version: 1.9.0
|
||||
Release: 1
|
||||
License: GPL
|
||||
Group: Applications/Internet
|
||||
|
|
@ -47,7 +47,7 @@ proxy authentication.
|
|||
|
||||
%files
|
||||
%defattr(-, root, root, 0755)
|
||||
%doc CHANGES CREDITS INSTALL KNOWN_ISSUES LICENSE.txt README TODO
|
||||
%doc CHANGES CREDITS INSTALL KNOWN_ISSUES LICENSE.txt README REL_NOTES TODO docs/*.txt docs/*.html
|
||||
%doc %{_mandir}/man1/proxytunnel.1*
|
||||
%{_bindir}/proxytunnel
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
REV=`svn info . 2> /dev/null | grep '^Revision' | awk '{print $2}'`
|
||||
if [ "x$REV" = "x" ] ; then
|
||||
echo "0"
|
||||
else
|
||||
echo $REV
|
||||
fi
|
||||
exit 0;
|
||||
Loading…
Add table
Add a link
Reference in a new issue