diff options
author | Michael Jennings <mej@kainx.org> | 2003-12-10 03:27:02 +0000 |
---|---|---|
committer | Michael Jennings <mej@kainx.org> | 2003-12-10 03:27:02 +0000 |
commit | 200ba29a4cc5efd638561ac4547ce85a6752b81d (patch) | |
tree | 88a5e80b1a38e642595d52ecb73db1dbacd5adc0 /utils | |
parent | 06f3d6a9209f4cd9f9eecc1406eff5fc6f09c7c1 (diff) | |
download | eterm-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
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/Etbg_update_list | 71 |
1 files changed, 36 insertions, 35 deletions
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 |