qemacs-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemacs-commit] qemacs configure


From: Charlie Gordon
Subject: [Qemacs-commit] qemacs configure
Date: Tue, 17 Dec 2013 23:17:09 +0000

CVSROOT:        /sources/qemacs
Module name:    qemacs
Changes by:     Charlie Gordon <chqrlie>        13/12/17 23:17:09

Modified files:
        .              : configure 

Log message:
        improved protability in configure, use /bin/sh

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/configure?cvsroot=qemacs&r1=1.19&r2=1.20

Patches:
Index: configure
===================================================================
RCS file: /sources/qemacs/qemacs/configure,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- configure   17 Dec 2013 16:08:55 -0000      1.19
+++ configure   17 Dec 2013 23:17:09 -0000      1.20
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 #
 # QEmacs configure script
 #
@@ -521,12 +521,10 @@
 fi
 echo "DLLIBS=$dllibs" >> $TMPMAK
 echo "EXTRALIBS=$extralibs" >> $TMPMAK
-echo -n "VERSION=" >> $TMPMAK
-echo -n `head $source_path/VERSION` >> $TMPMAK
-echo "" >> $TMPMAK
-echo -n "#define QE_VERSION \"" >> $TMPH
-echo -n `head $source_path/VERSION` >> $TMPH
-echo "\"" >> $TMPH
+version=`head $source_path/VERSION`
+echo "VERSION=$version" >> $TMPMAK
+echo "#define QE_VERSION \"$version\"" >> $TMPH
+
 if test "$network" = "yes" ; then
   echo "#define CONFIG_NETWORK 1" >> $TMPH
   echo "CONFIG_NETWORK=yes" >> $TMPMAK



reply via email to

[Prev in Thread] Current Thread [Next in Thread]