]> Dogcows Code - chaz/openbox/commitdiff
renamed the Changelog files
authorDana Jansens <danakj@orodu.net>
Tue, 16 Apr 2002 20:11:00 +0000 (20:11 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 16 Apr 2002 20:11:00 +0000 (20:11 +0000)
get the latest version of bsetbg from the blackbox cvs

CHANGELOG [moved from ChangeLog with 100% similarity]
CHANGELOG.Blackbox [moved from ChangeLog-Blackbox with 100% similarity]
CHANGELOG.bsetbg [moved from ChangeLog.bsetbg with 100% similarity]
util/bsetbg

similarity index 100%
rename from ChangeLog
rename to CHANGELOG
similarity index 100%
rename from ChangeLog-Blackbox
rename to CHANGELOG.Blackbox
similarity index 100%
rename from ChangeLog.bsetbg
rename to CHANGELOG.bsetbg
index a0675aa6d0f7a69b53fe541a98fbf3231a0e5d01..a93950d23c4da721c016ccdbd8d62b6ecc716327 100644 (file)
@@ -51,7 +51,7 @@ error_msg()
      echo; echo "$NAME: error: please specify a valid image."
      ;;
    7)
-     echo; echo "$NAME: error: bsetroot couldn't be found! check your openbox installation."
+     echo; echo "$NAME: error: bsetroot couldn't be found! check your blackbox installation."
      ;;
    8)
      echo; echo "$NAME: error: wrong number of arguments!"
@@ -508,7 +508,7 @@ check_image()
            esac
     esac
 
-    if [ ! -e "$IMAGE" ]; then
+    if [ ! -f "$IMAGE" ]; then
        error_msg $NUM  
     else
        IMAGE_EXISTS=yes
@@ -596,15 +596,30 @@ debug()
     echo
 }
 
+create_tempfile() {
+    if `type tempfile 2>&1 >/dev/null`; then
+        THETMP=`tempfile --prefix=bsetbg`
+    elif `type mktemp 2>&1 >/dev/null`; then
+        THETMP=`mktemp -t bsetbg`
+    else
+        THETMP=/tmp/.bsetbg.$$
+        if [ -f $THETMP ]; then
+            rm -f $THETMP
+        fi
+       touch $THETMP
+        chmod 600 $THETMP
+    fi
+    TMPFILE=$THETMP
+}
+
 IMAGE_APPS="display Esetroot wmsetbg xv xli qiv"
 CONFIG="$HOME/.bsetbgrc"
 NAME=bsetbg
 VERSION=1.12
 MORE="(C) 2000 by lordzork industries (http://lordzork.com/)"
 PATH=$PATH:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/usr/X11/bin
-TMPFILE=`tempfile --prefix=bsetbg`
 ARGUMENT=$1
-
+create_tempfile
 
 case `which grep 2>&1` in */*grep) : ;;
     *)
@@ -663,9 +678,6 @@ case $1 in
     *-version|-v|v)
        echo; echo "    $NAME version $VERSION"; echo "    $MORE";  exit 0
        ;;
-    *-help|-h|h)
-       help_msg
-       ;;
     -r)
        case $UID in
            0)
@@ -679,6 +691,9 @@ case $1 in
                exit 1
        esac
        ;;
+    *-help|-h|h|-?)
+       help_msg
+       ;;
     *)
        if [ -n "$1" ]; then
            NOARG=yes
This page took 0.026183 seconds and 4 git commands to generate.