Selaa lähdekoodia

Base: Install symlinks instead of aliasing rgrep and egrep

Tim Schumacher 3 vuotta sitten
vanhempi
commit
a128d4931d
2 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 0 2
      Base/etc/shellrc
  2. 3 0
      Userland/Utilities/CMakeLists.txt

+ 0 - 2
Base/etc/shellrc

@@ -28,8 +28,6 @@ alias ue=UserspaceEmulator
 alias fe=FontEditor
 alias fe=FontEditor
 alias ss=Spreadsheet
 alias ss=Spreadsheet
 
 
-alias rgrep="grep -r"
-alias egrep="grep -E"
 alias ll='ls -l'
 alias ll='ls -l'
 
 
 if [ "$(id -u)" = "0" ] {
 if [ "$(id -u)" = "0" ] {

+ 3 - 0
Userland/Utilities/CMakeLists.txt

@@ -51,6 +51,9 @@ foreach(CMD_SRC ${CMD_SOURCES})
     endif()
     endif()
 endforeach()
 endforeach()
 
 
+install(CODE "file(CREATE_LINK grep ${CMAKE_INSTALL_PREFIX}/bin/egrep SYMBOLIC)")
+install(CODE "file(CREATE_LINK grep ${CMAKE_INSTALL_PREFIX}/bin/rgrep SYMBOLIC)")
+
 target_link_libraries(abench LibAudio LibMain LibCore)
 target_link_libraries(abench LibAudio LibMain LibCore)
 target_link_libraries(adjtime LibMain)
 target_link_libraries(adjtime LibMain)
 target_link_libraries(allocate LibMain)
 target_link_libraries(allocate LibMain)