Commit 4ff1c148 authored by Sebastien Granjoux's avatar Sebastien Granjoux

Use sh instead of bash when possible

	* scripts/anjuta_import.sh.in,
	plugins/tools/scripts/prepare-changelog.pl,
	global-tags/create_global_tags.sh.in:
	Use sh instead of bash when possible

	* plugins/sourceview/anjuta-document-saver.c,
	plugins/sourceview/anjuta-document-loader.c:
	Order of include matter on OpenBSD

	* plugins/debug-manager/start.c:
	ps syntax differ on *BSD

	* libanjuta/anjuta-launcher.c:
	Fix #527357: gdb plugin doesn't work under OpenBSD (do not clear
	CREAD). Fix #528226: doesn't compiling on FreeBSD6.3

svn path=/trunk/; revision=3965
parent d5c25fcc
2008-05-27 basti <pee@hiddenbox.de>
Reviewed by Sébastien Granjoux <seb.sfo@free.fr>:
* scripts/anjuta_import.sh.in,
plugins/tools/scripts/prepare-changelog.pl,
global-tags/create_global_tags.sh.in:
Use sh instead of bash when possible
* plugins/sourceview/anjuta-document-saver.c,
plugins/sourceview/anjuta-document-loader.c:
Order of include matter on OpenBSD
* plugins/debug-manager/start.c:
ps syntax differ on *BSD
* libanjuta/anjuta-launcher.c:
Fix #527357: gdb plugin doesn't work under OpenBSD (do not clear
CREAD). Fix #528226: doesn't compiling on FreeBSD6.3
2008-05-27 Johannes Schmid <jhs@gnome.org>
* plugins/language-manager/Makefile.am:
......
#!/bin/bash
#!/bin/sh
function anjuta_tags {
......
......@@ -36,13 +36,14 @@
#include <fcntl.h>
#include <signal.h>
#if !defined(__sun) && !defined(__NetBSD__)
# ifndef FREEBSD
# include <pty.h>
# else
# include <libutil.h>
# endif
#if defined(__FreeBSD__)
# include <libutil.h>
#elif defined(__OpenBSD__) || defined(__NetBSD__)
# include <util.h>
#elif !defined(__sun)
# include <pty.h>
#endif
#include "anjuta-utils-priv.h"
#include <assert.h>
......@@ -65,11 +66,15 @@
#define FILE_BUFFER_SIZE 1024
#define FILE_INPUT_BUFFER_SIZE 1048576
#ifndef __MAX_BAUD
#ifdef __CYGWIN__
#define __MAX_BAUD B256000
#else
#define __MAX_BAUD B460800
#endif
# if defined(B460800)
# define __MAX_BAUX B460800
# elif defined(B307200)
# define __MAX_BAUX B307200
# elif defined(B256000)
# define __MAX_BAUX B256000
# else
# define __MAX_BAUX B230400
# endif
#endif
/*
......@@ -1209,7 +1214,7 @@ anjuta_launcher_fork (AnjutaLauncher *launcher, gchar *const args[])
termios_flags.c_iflag |= IGNBRK | BRKINT | IMAXBEL | IXANY;
termios_flags.c_oflag &= ~OPOST;
// termios_flags.c_oflag |= 0;
termios_flags.c_cflag &= ~(CSTOPB | CREAD | PARENB | HUPCL);
termios_flags.c_cflag &= ~(CSTOPB | PARENB | HUPCL);
termios_flags.c_cflag |= CS8 | CLOCAL;
if (!launcher->priv->terminal_echo_on)
......
......@@ -580,7 +580,11 @@ attach_process_update (AttachProcess * ap)
return;
tmp = anjuta_util_get_a_tmp_file ();
#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__)
cmd = g_strconcat ("ps axw -o pid,user,lstart,args > ", tmp, NULL);
#else
cmd = g_strconcat ("ps axw -H -o pid,user,start_time,args > ", tmp, NULL);
#endif
shell = gnome_util_user_shell ();
ch_pid = fork ();
if (ch_pid == 0)
......
......@@ -32,8 +32,8 @@
#include <config.h>
#endif
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
......
......@@ -32,8 +32,8 @@
#include <config.h>
#endif
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
......
......@@ -116,7 +116,7 @@ else
$cached = "--cached";
}
print $tmphandle <<EOF;
#!/bin/bash
#!/bin/sh
echo "Index: \$1"
echo "==================================================================="
diff -b \$2 \$5 || true
......
#!/bin/bash
#!/bin/sh
#
# Shell script to automatically create an Anjuta 1.x project file
# Copyright: Biswapesh Chattopadhyay (biswapesh_chatterjee@tcscal.co.in) 2001-2002
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment