home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BURKS 2
/
BURKS_AUG97.ISO
/
SLAKWARE
/
Y1
/
MAKETAG
< prev
next >
Wrap
Text File
|
1997-04-19
|
1KB
|
44 lines
#!/bin/sh
#item ####description ###on off ###
add() {
for package in $* ; do
echo "$package: ADD" >> /tmp/SeTnewtag
done
}
skip() {
for package in $* ; do
echo "$package: SKP" >> /tmp/SeTnewtag
done
}
cat /dev/null > /tmp/SeTnewtag
dialog --title "SELECTING PACKAGES FROM SERIES Y (GAMES)" \
--checklist "Please select the packages you wish to install \
from series Y. Use the \
UP/DOWN keys to scroll through the list, and the SPACE key to select \
the packages you wish to install. \
Press ENTER when you are \
done." 15 70 5 \
"bsdgames" "The BSD text games collection" "on" \
"sastroid" "An asteroids clone that uses SVGAlib" "on" \
"koules" "An SVGAlib arcade game" "on" \
"tetris" "Tetris for terminals" "on" \
"lizards" "Lizards video game" "on" \
2> /tmp/SeTpkgs
if [ $? = 1 -o $? = 255 ]; then
rm -f /tmp/SeTpkgs
> /tmp/SeTnewtag
for pkg in bsdgames koules sastroid tetris lizards ; do
echo "$pkg: SKP" >> /tmp/SeTnewtag
done
exit
fi
cat /dev/null > /tmp/SeTnewtag
for PACKAGE in bsdgames sastroid koules tetris lizards ; do
if fgrep \"$PACKAGE\" /tmp/SeTpkgs 1> /dev/null 2> /dev/null ; then
echo "$PACKAGE: ADD" >> /tmp/SeTnewtag
else
echo "$PACKAGE: SKP" >> /tmp/SeTnewtag
fi
done
rm -f /tmp/SeTpkgs