mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 20:00:58 +01:00
25 lines
393 B
Bash
Executable File
25 lines
393 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# simple virtual env to do manual tests of pcp
|
|
# using different users.
|
|
|
|
user=$1
|
|
|
|
if test -z "$user"; then
|
|
echo "usage: $0 <user>"
|
|
exit
|
|
fi
|
|
|
|
user=`echo "$user" | sed 's/\///g'`
|
|
|
|
if ! test -d "$user"; then
|
|
echo "there's no directory for $user"
|
|
exit
|
|
fi
|
|
|
|
|
|
cur=`pwd`
|
|
home="$cur/$user"
|
|
|
|
exec env PCP="$cur/../../src/pcp1" USER=$user HOME=$home bash --rcfile "$cur/bashrc"
|