003 File Manager
Current Path:
/usr/src/tests/sys/cddl/zfs/include
usr
/
src
/
tests
/
sys
/
cddl
/
zfs
/
include
/
📁
..
📄
Makefile
(793 B)
📄
commands.txt
(3.77 KB)
📄
constants.cfg
(2.82 KB)
📄
default.cfg.in
(1.54 KB)
📄
libgnop.kshlib
(3.01 KB)
📄
libremote.kshlib
(1.27 KB)
📄
libtest.kshlib
(74.58 KB)
📄
libtest_test.sh
(1.28 KB)
📄
logapi.kshlib
(7.72 KB)
📄
stf.shlib
(1.49 KB)
📄
testenv.ksh
(689 B)
📄
testenv.kshlib
(708 B)
📄
translatecommands.awk
(612 B)
Editing: translatecommands.awk
#! /usr/bin/awk -f # $FreeBSD$ BEGIN { print "# This file is autogenerated from commands.txt. Do not edit" cmdstring = "export CMDS=\"" cmdch = 1 cmd_idx=0 } # Strip comments { gsub(/#.*/, "", $0) } # Strip blank lines /^[ ]*$/ { next } # Process remaining lines { gsub(/%%STFSUITEDIR%%/, stfsuitedir, $1) fullcmd = $1 cmdname = $1 gsub(/.*\//, "", cmdname) CMDNAME = toupper(cmdname) allcmds[cmd_idx] = CMDNAME cmd_idx += 1 printf "export %s=\"%s\"\n", CMDNAME, fullcmd } # Print CMDS END { print "" printf "export CMDS=\"" for (idx in allcmds) printf "$%s ", allcmds[idx] print "\"" }
Upload File
Create Folder