]> git.donarmstrong.com Git - bin.git/commitdiff
update binaries
authorDon Armstrong <don@donarmstrong.com>
Tue, 15 May 2007 05:33:59 +0000 (05:33 +0000)
committerDon Armstrong <don@donarmstrong.com>
Tue, 15 May 2007 05:33:59 +0000 (05:33 +0000)
deletemailbox
fix_touchpad
presentation_mode
sgf_rename

index d21a8f41a5412457b8eef869cc0b26701e403f7a..a9b4233cedad91d73aab39215b4d799885048b6f 100755 (executable)
@@ -87,7 +87,7 @@ for my $mbox (@ARGV) {
               qq(/FolderValidity/$mbox;\n);
      print $cmd;
      qx($cmd);
-     $cmd = qq(rm $options{offlineimap}/Repository-Remote).
+     $cmd = qq(rm -f $options{offlineimap}/Repository-Remote).
          ucfirst($options{account}).
               qq(/FolderValidity/$options{account}.$mbox;\n);
      print $cmd;
index 726c0a520d7996e9c0a9e6879a527ddf32676531..3e96c6adff31a4df28fedcb5573a04f46f4d4095 100755 (executable)
@@ -1,11 +1,6 @@
 #!/bin/sh
 
-if [ $(id -u) != 0 ]; then
-    echo "$0 must be run as root";
-    exit 1;
-fi;
-
-modprobe -r appletouch;
-modprobe appletouch;
-chvt 6;
-chvt 7;
\ No newline at end of file
+sudo modprobe -r appletouch;
+sudo modprobe appletouch;
+sudo chvt 6;
+sudo chvt 7;
\ No newline at end of file
index e56427e4dead7c9e578c5d6aea3212e0dc69c464..375ecd5000f645af33c84a80b16df1865f36c7a9 100755 (executable)
@@ -1,14 +1,15 @@
 #!/bin/sh
 
 if [ -n "$1" ]; then
-    xrandr -s 1024x768
-    xmodmap -e 'keysym Left = p'
-    xmodmap -e 'keysym Right = n'
+#    xrandr -s 1024x768
+    xrandr -s 800x600
+     xmodmap -e 'keysym Left = p'
+     xmodmap -e 'keysym Right = n'
     killall xscreensaver
 else
     xrandr -s 1440x900
-    xmodmap -e 'keycode 102 = Right'
-    xmodmap -e 'keycode 100 = Left'
+     xmodmap -e 'keycode 102 = Right'
+     xmodmap -e 'keycode 100 = Left'
     # XXX test to see if the X screensaver is already running
     /usr/bin/xscreensaver & >/dev/null 2>&1
 fi;
\ No newline at end of file
index 193a4349117d25d085035b95e808f5897090b8ad..759380ce65da4bd4e27100dca6e6fd9927d45ef1 100755 (executable)
@@ -22,8 +22,9 @@ for my $sgf (@ARGV) {
      }
      undef $fh;
      my $new_file = join('_',
-                        map {s/\s+/_/g;
-                             s/,//g;
+                        map {s{/}{}g;
+                             s/\s+/_/g;
+                             s/,/_/g;
                              s/[_-]+/_/g;
                              s/^_//;
                              s/_$//;
@@ -34,6 +35,7 @@ for my $sgf (@ARGV) {
                          @sgf{qw(PW WR DT RE)}
                         )
                        ).'.sgf';
+     print "Renaming $sgf to $new_file\n";
      next if $sgf eq $new_file;
      warn "$new_file already exists" and next if -e $new_file;
      rename($sgf,$new_file);