File: 00toggle

package info (click to toggle)
wl 2.14.0-9
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 5,632 kB
  • ctags: 3,422
  • sloc: lisp: 48,168; sh: 242; makefile: 159
file content (24 lines) | stat: -rw-r--r-- 638 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
# toggle switch for wl/wl-beta
set -e

if [ -f changelog.wl -a ! -f changelog.wl-beta -a -f changelog ]; then
  echo switching from wl-beta to wl
  mv control control.wl-beta
  mv control.wl control
  mv copyright copyright.wl-beta
  mv copyright.wl copyright
  mv changelog changelog.wl-beta
  mv changelog.wl changelog
elif [ ! -f changelog.wl -a -f changelog.wl-beta -a -f changelog ]; then
  echo switching from wl to wl-beta
  mv control control.wl
  mv control.wl-beta control
  mv copyright copyright.wl
  mv copyright.wl-beta copyright
  mv changelog changelog.wl
  mv changelog.wl-beta changelog
else
  echo failed
fi