3 trap 'tput bel || :; echo Failed! >&2' EXIT
9 trap 'stty echo -iuclc icanon 2>/dev/null' EXIT INT TERM QUIT
10 stty -echo iuclc -icanon 2>/dev/null
11 dd count=1 bs=1 2>/dev/null | od -An -tx1)"
13 " 0a") if [ -n "$1" ]; then
14 [ $1 -eq 0 ] && echo "Y" || echo "N"
24 "") echo "Aborted" >&2
27 *) # The user pressed an unrecognized key. As we are not echoing
28 # any incorrect user input, alert the user by ringing the bell.
29 (tput bel) 2>/dev/null || :
38 rev=$(($(svn info | sed -e 's/^Revision: \(.*\)/\1/;t1;d;:1;q')+1))
40 prj="$(sed -e 's/^AC_INIT(\([^,]*\),.*/\1/;t1;d;:1;q' configure.ac)"
41 ver="$(sed -e 's/^AC_INIT([^,]*, *\([^,]*\),.*/\1/;t1;d;:1;q' configure.ac)"
42 sed -ie 's/^\(VCS_REVISION=\).*/\1'"${rev}"'/' configure.ac
43 touch shellinabox/vt100.jspp shellinabox/shell_in_a_box.jspp
46 ( trap 'rm -rf "${prj}-${ver}"' EXIT
47 rm -f "${prj}-${ver}" &&
48 tar zfx "${prj}-${ver}.tar.gz" &&
50 fakeroot dpkg-buildpackage -us -uc &&
52 rm -f $(ls "${prj}_${ver}-"*.* | egrep -v '.deb$') ) || :
54 egrep -v ' configure$| aclocal.m4$|^[?]' |
55 sed -e 's/^[^ ]* *//') | less
56 echo -n 'Commit these changes (Y/n): '