Changeset 58351 in vbox
- Timestamp:
- Oct 21, 2015 8:59:00 AM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 103554
- Location:
- trunk/src/VBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/Makefile.kmk
r56294 r58351 76 76 77 77 ifeq ($(KBUILD_TARGET),linux) 78 78 79 INSTALLS += LnxAddIso-scripts 79 80 LnxAddIso-scripts_INST = $(INST_ADDITIONS) 80 81 LnxAddIso-scripts_MODE = a+rx,u+w 81 82 LnxAddIso-scripts_SOURCES = \ 82 $(LnxAddIso-scripts_0_OUTDIR)/runasroot.sh \ 83 $(LnxAddIso-scripts_0_OUTDIR)/autorun.sh 84 LnxAddIso-scripts_CLEAN = \ 85 $(LnxAddIso-scripts_0_OUTDIR)/runasroot.sh \ 86 $(LnxAddIso-scripts_0_OUTDIR)/autorun.sh 87 88 $$(LnxAddIso-scripts_0_OUTDIR)/runasroot.sh: \ 89 $(PATH_SUB_CURRENT)/../Installer/linux/runasroot.sh \ 90 $(PATH_SUB_CURRENT)/../Installer/linux/sh-utils.sh \ 91 | $$(dir $$@) 92 $(QUIET)$(SED) \ 93 -e '/#include sh-utils.sh/ {' \ 94 -e "r $(PATH_ROOT)/src/VBox/Installer/linux/sh-utils.sh" \ 95 -e 'd' \ 96 -e '}' \ 97 --output $@ \ 98 $< 99 $(QUIET)$(CHMOD) a+rx,u+w $@ 100 101 $$(LnxAddIso-scripts_0_OUTDIR)/autorun.sh: \ 102 $(PATH_SUB_CURRENT)/linux/installer/autorun.sh \ 103 $(PATH_SUB_CURRENT)/../Installer/linux/sh-utils.sh \ 104 | $$(dir $$@) 105 $(QUIET)$(SED) \ 106 -e '/#include sh-utils.sh/ {' \ 107 -e "r $(PATH_ROOT)/src/VBox/Installer/linux/sh-utils.sh" \ 108 -e 'd' \ 109 -e '}' \ 110 --output $@ \ 111 $< 112 $(QUIET)$(CHMOD) a+rx,u+w $@ 83 ../Installer/linux/runasroot.sh \ 84 linux/installer/autorun.sh 85 113 86 endif # KBUILD_TARGET == linux 114 87 ifeq ($(KBUILD_TARGET),win) -
trunk/src/VBox/Additions/linux/installer/autorun.sh
r58324 r58351 19 19 PATH=$PATH:/bin:/sbin:/usr/sbin 20 20 21 #include sh-utils.sh 21 # Deal with differing "which" semantics 22 mywhich() { 23 which "$1" 2>/dev/null | grep -v "no $1" 24 } 25 26 # Get the name and execute switch for a useful terminal emulator 27 # 28 # Sets $gxtpath to the emulator path or empty 29 # Sets $gxttitle to the "title" switch for that emulator 30 # Sets $gxtexec to the "execute" switch for that emulator 31 # May clobber $gtx* 32 # Calls mywhich 33 getxterm() { 34 # gnome-terminal uses -e differently to other emulators 35 for gxti in "konsole --title -e" "gnome-terminal --title -x" "xterm -T -e"; do 36 set $gxti 37 gxtpath="`mywhich $1`" 38 case "$gxtpath" in ?*) 39 gxttitle=$2 40 gxtexec=$3 41 return 42 ;; 43 esac 44 done 45 } 46 47 # Quotes its argument by inserting '\' in front of every character save 48 # for 'A-Za-z0-9/'. Prints the result to stdout. 49 quotify() { 50 echo "$1" | sed -e 's/\([^a-zA-Z0-9/]\)/\\\1/g' 51 } 22 52 23 53 ostype=`uname -s` -
trunk/src/VBox/Installer/linux/runasroot.sh
r56299 r58351 17 17 # 18 18 19 #include sh-utils.sh 19 # Deal with differing "which" semantics 20 mywhich() { 21 which "$1" 2>/dev/null | grep -v "no $1" 22 } 23 24 # Get the name and execute switch for a useful terminal emulator 25 # 26 # Sets $gxtpath to the emulator path or empty 27 # Sets $gxttitle to the "title" switch for that emulator 28 # Sets $gxtexec to the "execute" switch for that emulator 29 # May clobber $gtx* 30 # Calls mywhich 31 getxterm() { 32 # gnome-terminal uses -e differently to other emulators 33 for gxti in "konsole --title -e" "gnome-terminal --title -x" "xterm -T -e"; do 34 set $gxti 35 gxtpath="`mywhich $1`" 36 case "$gxtpath" in ?*) 37 gxttitle=$2 38 gxtexec=$3 39 return 40 ;; 41 esac 42 done 43 } 44 45 # Quotes its argument by inserting '\' in front of every character save 46 # for 'A-Za-z0-9/'. Prints the result to stdout. 47 quotify() { 48 echo "$1" | sed -e 's/\([^a-zA-Z0-9/]\)/\\\1/g' 49 } 20 50 21 51 ostype=`uname -s`
Note:
See TracChangeset
for help on using the changeset viewer.