summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Jennings <mej@kainx.org>2003-12-10 03:27:02 +0000
committerMichael Jennings <mej@kainx.org>2003-12-10 03:27:02 +0000
commit200ba29a4cc5efd638561ac4547ce85a6752b81d (patch)
tree88a5e80b1a38e642595d52ecb73db1dbacd5adc0
parent06f3d6a9209f4cd9f9eecc1406eff5fc6f09c7c1 (diff)
downloadeterm-200ba29a4cc5efd638561ac4547ce85a6752b81d.tar.gz
Tue Dec 9 22:26:17 2003 Michael Jennings (mej)
Add libast libs to GRLIBS. Hopefully fixed Etbg_update_list to be Solaris /bin/sh-friendly. SVN revision: 8077
-rw-r--r--ChangeLog6
-rw-r--r--Eterm.spec2
-rw-r--r--configure.in1
-rwxr-xr-xutils/Etbg_update_list71
4 files changed, 44 insertions, 36 deletions
diff --git a/ChangeLog b/ChangeLog
index 9668700..8e61430 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5130,3 +5130,9 @@ Fri Nov 28 09:04:49 2003 Michael Jennings (mej)
Changes for compatibility with newer LibAST.
----------------------------------------------------------------------
+Tue Dec 9 22:26:17 2003 Michael Jennings (mej)
+
+Add libast libs to GRLIBS.
+
+Hopefully fixed Etbg_update_list to be Solaris /bin/sh-friendly.
+----------------------------------------------------------------------
diff --git a/Eterm.spec b/Eterm.spec
index f0e7aa4..3605330 100644
--- a/Eterm.spec
+++ b/Eterm.spec
@@ -4,7 +4,7 @@
Summary: Enlightened terminal emulator
Name: Eterm
Version: 0.9.2
-Release: 4
+Release: 5
Copyright: BSD
Group: User Interface/X
Requires: imlib2, imlib2-loader_jpeg, imlib2-loader_png
diff --git a/configure.in b/configure.in
index 7e017f4..b559aa7 100644
--- a/configure.in
+++ b/configure.in
@@ -484,6 +484,7 @@ else
FOUND_LIBAST=`$LIBAST_CONFIG --version | awk -F. '{print $2}'`
CPPFLAGS="$CPPFLAGS `$LIBAST_CONFIG --cppflags`"
LDFLAGS="$LDFLAGS `$LIBAST_CONFIG --ldflags`"
+ GRLIBS="$GRLIBS `$LIBAST_CONFIG --libs`"
fi
AC_CHECK_LIB(ast, libast_set_program_name, , FOUND_LIBAST=0, $GRLIBS)
diff --git a/utils/Etbg_update_list b/utils/Etbg_update_list
index 542d10b..4eaa444 100755
--- a/utils/Etbg_update_list
+++ b/utils/Etbg_update_list
@@ -17,18 +17,18 @@ else
fi
if [ "x$1" = "x-h" -o "x$1" = "x--help" ]; then
- echo "Syntax: Etbg_update_list [path]"
- echo " (The default path is the current directory.)"
- echo
- exit 0
+ echo "Syntax: Etbg_update_list [path]"
+ echo " (The default path is the current directory.)"
+ echo
+ exit 0
fi
# Find the pixmap directory
for i in "$1" "$PWD" "$PWD/pix" "$PWD/../pix" ; do
- if [ -d "$i/tile" -o -d "$i/scale" ]; then
- PIXDIR="$i"
- break
- fi
+ if [ -d "$i/tile" -o -d "$i/scale" ]; then
+ PIXDIR="$i"
+ break
+ fi
done
cd $PIXDIR
@@ -48,13 +48,13 @@ begin menu
title Tiled
EOF
if [ -d tile ]; then
- for i in `(cd tile && ls -1)` ; do
- echo '"tile/'$i'@0x0+0+0:tile"' >> $LISTFILE.new
- echo " begin menuitem" >&3
- eval echo "\ \ \ \ text \\\"\`echo $i | $SEDCMD\`\\\"" >&3
- echo " action string \"\\e]20;tile/$i;0x0+0+0:tile\\a\"" >&3
- echo " end" >&3
- done
+ for i in `(cd tile && ls -1)` ; do
+ echo '"tile/'$i'@0x0+0+0:tile"' >> $LISTFILE.new
+ echo " begin menuitem" >&3
+ eval echo "\ \ \ \ text \\\"\`echo $i | $SEDCMD\`\\\"" >&3
+ echo " action string \"\\e]20;tile/$i;0x0+0+0:tile\\a\"" >&3
+ echo " end" >&3
+ done
fi
cat >&3 <<EOF
end
@@ -63,40 +63,41 @@ begin menu
EOF
if [ -d scale ]; then
- for i in `(cd scale && ls -1)` ; do \
- echo '"scale/'$i'@100x100"' >> $LISTFILE.new ; \
- echo " begin menuitem" >&3
- eval echo "\ \ \ \ text \\\"\`echo $i | $SEDCMD\`\\\"" >&3
- echo " action string \"\\e]20;tile/$i;0x0+0+0:tile\\a\"" >&3
- echo " end" >&3
- done
+ for i in `(cd scale && ls -1)` ; do \
+ echo '"scale/'$i'@100x100"' >> $LISTFILE.new ; \
+ echo " begin menuitem" >&3
+ eval echo "\ \ \ \ text \\\"\`echo $i | $SEDCMD\`\\\"" >&3
+ echo " action string \"\\e]20;tile/$i;0x0+0+0:tile\\a\"" >&3
+ echo " end" >&3
+ done
fi
echo "end" >&3
# Check to see if the list has changed. If so, back up the old one.
if [ -s $LISTFILE ]; then
- if (diff $LISTFILE $LISTFILE.new >/dev/null 2>&1); then
- echo "Pixmap list is unchanged."
- rm -f $LISTFILE.new
- else
- echo "Old pixmap list will be saved in $LISTFILE.old"
- mv -f $LISTFILE $LISTFILE.old
- fi
+ if (diff $LISTFILE $LISTFILE.new >/dev/null 2>&1); then
+ echo "Pixmap list is unchanged."
+ rm -f $LISTFILE.new
+ else
+ echo "Old pixmap list will be saved in $LISTFILE.old"
+ mv -f $LISTFILE $LISTFILE.old
+ fi
fi
if [ -s $LISTFILE.new ]; then
- mv -f $LISTFILE.new $LISTFILE
+ mv -f $LISTFILE.new $LISTFILE
fi
# If there's no theme directory nearby, just quit.
if [ ! -d "../themes" ]; then
- exit 0
+ exit 0
fi
# If there is, cd into it and make sure all the themes have list files.
cd ../themes
for i in `ls -1` ; do
- if [ -f $i/theme.cfg -a ! -e $i/$LISTFILE ]; then
- echo "Creating symlink to $LISTFILE for theme $i"
- (cd $i && ln -f -s ../../pix/$LISTFILE $LISTFILE)
- fi
+ if [ -f $i/theme.cfg -a ! -f $i/$LISTFILE ]; then
+ echo "Creating symlink to $LISTFILE for theme $i"
+ rm -f $i/$LISTFILE
+ ln -f -s ../../pix/$LISTFILE $i/$LISTFILE
+ fi
done