add skel files
authorAnas Nashif <anas.nashif@intel.com>
Thu, 21 Feb 2013 17:18:08 +0000 (09:18 -0800)
committerJohn L. Whiteman <john.l.whiteman@intel.com>
Wed, 22 Oct 2014 09:06:17 +0000 (02:06 -0700)
packaging/bash.spec
packaging/dot.bashrc [new file with mode: 0644]
packaging/dot.profile [new file with mode: 0644]

index 8a733a2..25761b3 100644 (file)
@@ -6,6 +6,8 @@ Summary:        The GNU Bourne Again shell
 Url:            http://www.gnu.org/software/bash
 Group:          System/Shells
 Source0:        ftp://ftp.gnu.org/gnu/bash/%{name}-%{version}.tar.gz
+Source1:        dot.bashrc
+Source2:        dot.profile
 BuildRequires:  autoconf
 BuildRequires:  bison
 Provides:      /bin/bash
@@ -82,9 +84,8 @@ ln -sf bash ./usr/bin/sh
 rm -f .%{_infodir}/dir
 popd
 mkdir -p %{buildroot}%{_sysconfdir}/skel
-#install -c -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/skel/.bashrc
-#install -c -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/skel/.bash_profile
-#install -c -m644 %{SOURCE3} %{buildroot}%{_sysconfdir}/skel/.bash_logout
+install -c -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/skel/.bashrc
+install -c -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/skel/.bash_profile
 LONG_BIT=$(getconf LONG_BIT)
 mv %{buildroot}%{_bindir}/bashbug \
    %{buildroot}%{_bindir}/bashbug-"${LONG_BIT}"
@@ -153,4 +154,4 @@ fi
 %files
 %{_bindir}/sh
 %{_bindir}/bash
-
+%{_sysconfdir}/skel
diff --git a/packaging/dot.bashrc b/packaging/dot.bashrc
new file mode 100644 (file)
index 0000000..45b8b6b
--- /dev/null
@@ -0,0 +1,2 @@
+
+test -s ~/.alias && . ~/.alias || true
diff --git a/packaging/dot.profile b/packaging/dot.profile
new file mode 100644 (file)
index 0000000..942448e
--- /dev/null
@@ -0,0 +1 @@
+test -z "$PROFILEREAD" && . /etc/profile || true