Skip to content

Commit 1b1b27f

Browse files
committed
more -V output
and some small cleanups
1 parent b0468eb commit 1b1b27f

File tree

6 files changed

+23
-18
lines changed

6 files changed

+23
-18
lines changed

Diff for: ChangeLog

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
started 8.7.0 22/5/18
22
- added vips7compat.h include for libvips 8.7
3+
- more output for -V to help debugging CLI mode
34

45
started 8.6.1 1/5/18
56
- better enum display in header

Diff for: nip2.appdata.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
</p>
2323
</description>
2424
<screenshots>
25-
<screenshot type="default" width="800" height="450">http://www.vips.ecs.soton.ac.uk/images/thumb/Nip2-7.36.png/800px-Nip2-7.36.png</screenshot>
25+
<screenshot type="default" width="739" height="534">https://raw.githubusercontent.com/jcupitt/nip2/master/doc/src/figs/snap1.jpg</screenshot>
2626
</screenshots>
27-
<url type="homepage">http://www.vips.ecs.soton.ac.uk</url>
27+
<url type="homepage">https://jcupitt.github.io/libvips</url>
2828
<updatecontact>https://github.com/jcupitt/nip2</updatecontact>
2929
</application>

Diff for: nip2.spec.in

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Summary: Interactive tool for working with large images
55

66
Group: Applications/Multimedia
77
License: GPLv2+
8-
URL: http://www.vips.ecs.soton.ac.uk/
9-
Source0: http://www.vips.ecs.soton.ac.uk/supported/7.14/%{name}-%{version}.tar.gz
8+
URL: https://github.com/jcupitt/nip2
9+
Source0: https://github.com/jcupitt/nip2/releases
1010

1111
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
1212

@@ -33,9 +33,6 @@ GIMP should be used instead.
3333
%prep
3434
%setup -q
3535

36-
# CVS dirs
37-
find . -name CVS -type d -print0 | xargs -0 rm -rf
38-
3936

4037
%build
4138
%configure
@@ -120,6 +117,9 @@ rm -rf $RPM_BUILD_ROOT
120117

121118

122119
%changelog
120+
* Sat Jun 10 2008 John Cupitt <[email protected]> - 8.7.0
121+
- Update URLs
122+
123123
* Sat Jul 19 2008 Jesper Friis <jesper.friis(at)sintef.no> - 7.15.0-1
124124
- Added this spec file from the Fedora source rpm
125125

Diff for: src/ip.h

+6-4
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ extern int statfs();
180180
*/
181181
#include "nipmarshal.h"
182182

183+
/* XML namespace ... note, not nip2! We can't change this.
184+
*/
185+
#define NAMESPACE "http://www.vips.ecs.soton.ac.uk/nip"
186+
183187
#define MAXFILES (4000) /* Max. no of files in path */
184188
#define STACK_SIZE (1000) /* Depth of eval stack */
185189
#define LEN_LABEL (512) /* Label on windows */
@@ -189,18 +193,16 @@ extern int statfs();
189193
#define MAX_STRSIZE (100000) /* Size of text for user defs */
190194
#define MAX_TRACE (1024) /* Biggest thing we print in trace */
191195
#define MAX_SSTACK (40) /* Scope stack for parser */
192-
#define VIPS_HOMEPAGE "http://www.vips.ecs.soton.ac.uk"
196+
#define VIPS_HOMEPAGE "https://github.com/jcupitt/nip2"
193197
#define IP_NAME PACKAGE "-" VERSION
194198
#define NIP_DOCPATH "$VIPSHOME" G_DIR_SEPARATOR_S "share" G_DIR_SEPARATOR_S \
195199
"doc" G_DIR_SEPARATOR_S PACKAGE G_DIR_SEPARATOR_S "html"
196200
#define VIPS_DOCPATH "$VIPSHOME" G_DIR_SEPARATOR_S "share" G_DIR_SEPARATOR_S \
197201
"doc" G_DIR_SEPARATOR_S "vips" G_DIR_SEPARATOR_S "html"
198202
#define IP_NAME PACKAGE "-" VERSION
199-
#define NAMESPACE VIPS_HOMEPAGE "/" "nip"
200-
/* XML namespace ... note, not nip2! */
201203
#define MAX_LINELENGTH (120) /* Max chars we display of value */
202204
#define MAX_RECENT (10) /* Number of recent items in file menu */
203-
#define NIP_COPYRIGHT "%s: &#0169;2017 Imperial College, London"
205+
#define NIP_COPYRIGHT "%s: &#0169;2018 Imperial College, London"
204206

205207
/* Our stock_ids.
206208
*/

Diff for: src/main.c

+8-7
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ static gboolean main_option_benchmark = FALSE;
9494
gboolean main_option_time_save = FALSE;
9595
gboolean main_option_profile = FALSE;
9696
gboolean main_option_i18n = FALSE;
97+
gboolean main_option_verbose = FALSE;
9798
static gboolean main_option_print_main = FALSE;
9899
static gboolean main_option_version = FALSE;
99-
static gboolean main_option_verbose = FALSE;
100100
static gboolean main_option_test = FALSE;
101101
static char *main_option_prefix = NULL;
102102

@@ -908,10 +908,6 @@ main_set( const char *str )
908908
{
909909
Symbol *sym;
910910

911-
#ifdef DEBUG
912-
printf( "main_set: %s\n", str );
913-
#endif /*DEBUG*/
914-
915911
attach_input_string( str );
916912
if( !(sym = parse_set_symbol()) )
917913
return( FALSE );
@@ -1485,9 +1481,14 @@ main( int argc, char *argv[] )
14851481
if( main_option_set ) {
14861482
int i;
14871483

1488-
for( i = 0; main_option_set[i]; i++ )
1484+
for( i = 0; main_option_set[i]; i++ ) {
1485+
if( main_option_verbose )
1486+
printf( "main_set: %s\n", main_option_set[i] );
1487+
14891488
if( !main_set( main_option_set[i] ) )
1490-
main_log_add( "%s\n", error_get_sub() );
1489+
main_log_add( "%s\n%s",
1490+
error_get_top(), error_get_sub() );
1491+
}
14911492
}
14921493

14931494
/* Make sure our start ws doesn't have modified set. We may have

Diff for: src/main.h

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ extern gboolean main_option_time_save; /* Time save image ops */
4141
extern gboolean main_option_profile; /* Profile calcualtion */
4242
extern gboolean main_option_i18n; /* Output i18n strings */
4343
extern gboolean main_option_batch; /* Running in batch mode */
44+
extern gboolean main_option_verbose; /* Verbose output */
4445

4546
/* Styles for buttons etc.
4647
*/

0 commit comments

Comments
 (0)