File: repomapper03.sh

package info (click to toggle)
reposurgeon 4.38-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,500 kB
  • sloc: sh: 4,832; makefile: 514; python: 485; lisp: 115; awk: 91; ruby: 19
file content (19 lines) | stat: -rw-r--r-- 429 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
## Test password-file processing code in repomapper

trap 'rm -f /tmp/contrib$$ /tmp/passwd$$' EXIT HUP INT QUIT TERM

cat >/tmp/contrib$$ <<EOF
fubar = J. Random Fubar <j@random.net>
foonly = foonly <foonly>
EOF

cat >/tmp/passwd$$ <<EOF
foonly:x:1000:1000:Fred Föonly,,,:/home/foonly:/bin/bash
EOF


# Only the foonly line should be modified
${REPOMAPPER:-repomapper}  /tmp/contrib$$ /tmp/passwd$$ 2>&1 | sort

#end