Added "which" script, so that the command can be invoked in shell

scripts, too.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25190 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2008-04-26 17:41:53 +00:00
parent e8bc20e263
commit 9c5c2d9d45
2 changed files with 9 additions and 0 deletions
+3
View File
@@ -212,6 +212,9 @@ AddFilesToHaikuImage beos apps : $(BEOS_APPS) ;
AddFilesToHaikuImage beos preferences : $(BEOS_PREFERENCES) ;
AddFilesToHaikuImage beos demos : $(BEOS_DEMOS) ;
SEARCH on which = [ FDirName $(HAIKU_TOP) data bin ] ;
AddFilesToHaikuImage beos bin : which ;
AddSymlinkToHaikuImage beos bin : sh : bash ;
AddSymlinkToHaikuImage home Desktop : /boot/home : Home ;
Executable
+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
. /etc/profile &> /dev/null
whence $*