]> piware.de Git - bin.git/commitdiff
Drop obsolete scripts
authorMartin Pitt <martin@piware.de>
Mon, 8 Jul 2019 19:50:47 +0000 (21:50 +0200)
committerMartin Pitt <martin@piware.de>
Mon, 8 Jul 2019 19:50:47 +0000 (21:50 +0200)
14 files changed:
cleanpg [deleted file]
dvdmrip [deleted file]
dvdrip [deleted file]
f25-update.exp [deleted file]
for-archive [deleted file]
google-chrome [deleted file]
gsession [deleted file]
newscommit [deleted file]
phablet-install [deleted file]
preinst-backup [deleted file]
rebuild-lib-transition [deleted file]
rename-photos [deleted file]
rescore-sru [deleted file]
sbp-release [deleted file]

diff --git a/cleanpg b/cleanpg
deleted file mode 100755 (executable)
index 3719c34..0000000
--- a/cleanpg
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-[ `id -u` = 0 ] || SUDO=sudo
-for v in 7.4 8.0 8.1 8.2 8.3; do
-    i=/etc/init.d/postgresql-$v
-    [ -x $i ] && $SUDO $i stop
-done
-$SUDO killall pg_autovacuum postmaster postgres
-$SUDO rm -rf /etc/postgresql /var/lib/postgresql/ /var/log/postgresql/* /tmp/postgresql-testsuite/ /var/run/postgresql/*
diff --git a/dvdmrip b/dvdmrip
deleted file mode 100755 (executable)
index c802947..0000000
--- a/dvdmrip
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/bash -e
-
-track=1
-
-while [ -n "$1" ]; do
-    nice dvdrip $track "$1.avi"
-    ((track=track+1))
-    shift
-done
diff --git a/dvdrip b/dvdrip
deleted file mode 100755 (executable)
index 07bab42..0000000
--- a/dvdrip
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh -e
-
-[ -n "$1" -a -n "$2" ] || {
-    echo "Usage: $0 <title no> <output file>" >&2
-    exit 1
-}
-
-exec mencoder dvd://$1 -alang en -vf scale -zoom -xy 540 -o "$2" -srate 44100 -oac lavc -ovc lavc -lavcopts vcodec=mpeg4:mbd=1:vbitrate=950:abitrate=112 -af lavcresample=44100,volnorm
diff --git a/f25-update.exp b/f25-update.exp
deleted file mode 100755 (executable)
index d4eaa34..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/usr/bin/expect -f
-
-set timeout -1
-
-#Start the guest VM
-spawn vm /srv/vm/f25.img -nographic
-
-expect "login: "
-send "a\r"
-
-expect "Password: "
-send "a\r"
-
-expect "$ "
-send "echo a | sudo --stdin dnf update -y\r"
-
-expect "$ "
-send "echo a | sudo --stdin poweroff\r"
-
-expect "$ "
diff --git a/for-archive b/for-archive
deleted file mode 100755 (executable)
index d3930f1..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh -e
-
-cmd=`which "$3"` || true
-
-[ -f "$1" ] && [ -d "$2" ] && [ -x "$cmd" ] || {
-    echo "Execute a command for all debs in an archive"
-    echo "Usage: $0 <packages file> <archive root dir> <command>"
-    exit 1
-}
-
-list=`readlink -f "$1"`
-
-cd "$2"
-zgrep ^Filename: "$list" | cut -f 2- -d\  | xargs -l1 $cmd
diff --git a/google-chrome b/google-chrome
deleted file mode 100644 (file)
index 6ea8b96..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-if [ "$HOME" = "/home/martin" ]; then
-    export HOME=/home/martin/.cache/chrome-home
-fi
-exec /usr/bin/google-chrome "$@"
diff --git a/gsession b/gsession
deleted file mode 100755 (executable)
index 0ce8e38..0000000
--- a/gsession
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/bash
-set -m
-
-xmodmap ~/.xmodmaprc
-
-# https://launchpad.net/bugs/1063617
-#gsettings reset org.gnome.desktop.wm.preferences auto-raise
-#gsettings set org.gnome.desktop.wm.keybindings lower "['<Control>b']"
-#gsettings set org.gnome.desktop.wm.keybindings maximize "['<Super>Up']"
-#gsettings set org.gnome.desktop.wm.keybindings unmaximize "['<Super>Down']"
-#gsettings set org.gnome.desktop.wm.preferences focus-mode sloppy
-
-# determine resolution
-out=`xrandr | egrep -o 'current [0-9]+ x [0-9]+'`
-XRES=`echo "$out" | cut -f2 -d' '`
-YRES=`echo "$out" | cut -f4 -d' '`
-
-if ip route | grep -q ^default; then
-    if [ `date +%u` -lt 6 ] && [ `date +%k` -lt 18 ]; then 
-        true
-        gnome-terminal --maximize --zoom=0.85 -t IRC -x env TERM=xterm weechat
-        #setsid gtimelog
-    fi
-
-    sleep 1
-
-    wmctrl -o $XRES,0
-    setsid firefox 
-    sleep 5
-    wmctrl -o 0,0
-
-    #if xrandr | grep -q 1280x1024; then
-    #    wmctrl -o 0,1024
-    #else
-    #    wmctrl -o 0,800
-    #fi
-    #setsid empathy
-fi
-
-if [ "$YRES" -gt 1000 ]; then
-    xrandr --output LVDS1 --off
-
-    gnome-terminal --geometry=90x34+1060+0
-    gnome-terminal --geometry=90x25+1060+570
-    gnome-terminal --window --geometry=130x52+4+0 --zoom=1.2 --active --tab --zoom=1.2
-
-    sleep .3
-    wmctrl -o 0,$YRES
-    sleep .3
-    gnome-terminal --geometry=130x60+5+30 --zoom=1.2 -t Mutt -x mutt -f =mbox
-    sleep .2
-    wmctrl -o 0,0
-else
-    gnome-terminal --geometry=80x46+880+0 --zoom=0.85
-    gnome-terminal --window --geometry=124x35+0+0  --active --tab
-
-    wmctrl -o 0,$YRES
-    sleep .3
-    gnome-terminal --geometry=129x49+0+30 -t Mutt -x mutt -f =mbox
-    sleep .2
-    wmctrl -o 0,0
-fi
-
-if ip route | grep -q ^default; then
-    gnome-terminal --zoom=0.85 -x offlineimap
-fi
diff --git a/newscommit b/newscommit
deleted file mode 100755 (executable)
index 101af60..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/usr/bin/python
-
-import subprocess, re, sys
-
-lpbugs_re = re.compile(r'lp: #([0-9, ]+)', re.I)
-
-bzr = subprocess.Popen(['bzr', 'diff', 'NEWS'], stdout=subprocess.PIPE)
-raw_msg = bzr.communicate()[0].strip()
-if bzr.returncode != 1:
-    print >> sys.stderr, 'bzr diff NEWS failed'
-    sys.exit(1)
-
-# parse/format message
-msg = ''
-for l in raw_msg.splitlines():
-    if not l.startswith('+ '):
-       continue
-    if msg:
-       msg += ' '
-    msg += l[2:].strip()
-
-if msg.startswith('-'):
-    msg = msg[1:].strip()
-
-print '-- commit message: --'
-print msg
-print '---'
-
-if not msg:
-    print >> sys.stderr, 'No message in NEWS, aborting'
-    sys.exit(1)
-
-# parse Launchpad bugs
-lpbugs = []
-for b_grp in lpbugs_re.finditer(msg):
-    for b in b_grp.group(1).split(','):
-       lpbugs.append(b.strip())
-print 'Fixed LP bugs:', ' '.join(lpbugs)
-
-# commit
-argv = ['bzr', 'commit', '-m', msg]
-for b in lpbugs:
-    argv += ['--fixes', 'lp:' + b]
-argv += sys.argv[1:]
-
-sys.exit(subprocess.call(argv))
-
diff --git a/phablet-install b/phablet-install
deleted file mode 100755 (executable)
index 8ff6695..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/sh
-set -e
-
-CHANNEL=${CHANNEL:=devel-proposed}
-MYNAME=$(getent passwd `whoami` | cut -f5 -d: | cut -f1 -d,)
-MYMAIL=${DEBMEMAIL:-$EMAIL}
-
-# flash the latest image
-ubuntu-device-flash --channel devel-proposed
-
-# make image writable
-adb shell "touch /userdata/.writable_image"
-# configure timezone
-adb shell "timedatectl set-timezone `cat /etc/timezone`"
-
-echo "rebooting to activate writable image..."
-adb reboot
-adb wait-for-device
-
-# enable network
-phablet-network -n /etc/NetworkManager/system-connections/pittinet
-
-# install some necessary packages
-adb shell "apt-get install -y vim bzr build-essential fakeroot"
-
-# set up bzr, vim, ssh
-adb shell "su -c 'mkdir ~/.ssh' phablet"
-adb push ~/.ssh/id_rsa.pub /home/phablet/.ssh/authorized_keys
-adb shell "chmod 600 /home/phablet/.ssh/authorized_keys"
-if [ -e ~/.vimrc ]; then
-    adb push ~/.vimrc /home/phablet/.vimrc
-    adb shell "echo 'set bg=light' >> /home/phablet/.vimrc"
-fi
-adb shell "chown -R phablet:phablet /home/phablet"
-
-# start ssh
-adb shell "start ssh"
-adb forward tcp:22000 tcp:22
diff --git a/preinst-backup b/preinst-backup
deleted file mode 100755 (executable)
index eef4f5f..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh -ex
-
-if [ -n "`cd /etc; bzr modified`" ]; then
-    echo "uncommitted changes in /etc, aborting" >&2
-    exit 1
-fi
-
-# push /etc/
-(cd /etc; HOME=/home/martin bzr push)
diff --git a/rebuild-lib-transition b/rebuild-lib-transition
deleted file mode 100755 (executable)
index ebdf5e7..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-set -e
-changelog="$1"
-shift
-for p in $@; do
-    pull-lp-source $p
-    (cd $p-*; dch -D yakkety --rebuild "No-change rebuild against $changelog"; dch -r ''; debuild --no-lintian -S -nc)
-    dput ${p}_*_source.changes
-done
-
diff --git a/rename-photos b/rename-photos
deleted file mode 100755 (executable)
index ea84f80..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh
-set -e
-
-num=${1:-1}
-
-if [ -n "$DEBUG" ]; then
-    PREFIX=echo
-fi
-
-for f in *.JPG *.jpg; do
-    [ -f "$f" ] || continue
-    title=`exiv2 pr -Pv -gXmp.photoshop.Headline "$f"` || title=''
-    newname=`printf "%03i" $num`
-    #newname=`exiv2 pr -Pv -gExif.Image.DateTime "$f"`
-    if [ -n "$title" ]; then
-       newname="$newname - $title"
-    fi
-    newname="$newname.jpg"
-    if [ -e "$newname" ]; then
-       echo "Error: new name $newname for $f already exists, aborting" >&2
-       exit 1
-    fi
-    $PREFIX mv "$f" "$newname"
-    num=$((num+1))
-done
diff --git a/rescore-sru b/rescore-sru
deleted file mode 100755 (executable)
index 907ece8..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/usr/bin/python
-
-import subprocess, urllib, re
-
-URL='http://people.ubuntu.com/~ubuntu-archive/pending-sru.html'
-
-prev = ''
-for m in re.finditer('href="https://launchpad.net/ubuntu/(\w+)/\+source/([\w_-]+)/?"',
-    urllib.urlopen(URL).read()):
-    suite = m.group(1) + '-proposed'
-    src = m.group(2)
-    if src == prev:
-        continue
-    prev = src
-    subprocess.call(['buildd', src, suite, 'rescore'])
diff --git a/sbp-release b/sbp-release
deleted file mode 100755 (executable)
index cde4e98..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-set -e
-V=`dpkg-parsechangelog | grep ^Version: | cut -f2- -d' '`
-D=`dpkg-parsechangelog | grep ^Distribution: | cut -f2- -d' '`
-
-svn commit -m "release $V to $D"
-svn up
-svn-buildpackage --svn-tag-only --svn-noautodch