• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修订版1e85b0c49a77ba1e1d2156b67471a932b081bb1c (tree)
时间2012-02-25 22:24:41
作者matsuand <matsuand@user...>
Commitermatsuand

Log Message

Added bash-completion.sh.

更改概述

差异

--- /dev/null
+++ b/bash-completion.sh
@@ -0,0 +1,64 @@
1+#!/bin/sh
2+
3+. ./_blfsset.sh
4+
5+VER=20060301
6+TARGET=bash-completion-$VER
7+TARGETBALL=$TARGET.tar.gz
8+TARGETDIR=bash_completion
9+
10+echo Check Required...
11+./_checkRequired.sh || exit 1
12+if test "$1" == "check"; then
13+ exit 0
14+fi
15+
16+cd $SRC
17+
18+echo $TARGET
19+
20+echo \ \ Removing old directory...
21+rm -fr $TARGETDIR
22+
23+echo \ \ Extracting...
24+if ! test -f $DLD/$TARGETBALL; then
25+ echo \ \ Tarball not found: $TARGETBALL && exit 1
26+else
27+ tar xf $DLD/$TARGETBALL
28+fi
29+
30+cd $TARGETDIR
31+
32+paco -p $TARGET "\
33+install -m644 bash_completion.sh /etc/profile.d/70-bash_completion.sh"
34+
35+paco -p+ $TARGET "\
36+cp -v bash_completion /etc"
37+
38+paco -p+ $TARGET "\
39+install -d /etc/bash_completion.d"
40+
41+paco -p+ $TARGET "\
42+install -d /usr/share/bash-completion"
43+
44+paco -p+ $TARGET "\
45+cp -v contrib/* /usr/share/bash-completion"
46+
47+paco -p+ $TARGET "\
48+install -d /usr/share/doc/bash-completion"
49+
50+paco -p+ $TARGET "\
51+cp -v README /usr/share/doc/bash-completion"
52+
53+cat >> /etc/bashrc << "EOF"
54+# Enable bash completion
55+if [ -f /etc/bash_completion ]; then
56+ source /etc/bash_completion
57+fi
58+EOF
59+
60+echo -n \ \ Pacoing:\ && paco -a1 | grep $TARGET || echo none
61+
62+echo \ \ Removing directory...
63+cd .. && rm -fr $TARGETDIR
64+