39 lines
573 B
Bash
Executable file
39 lines
573 B
Bash
Executable file
#!/bin/bash
|
|
source ./lib/function.sh
|
|
case $1 in
|
|
list)
|
|
ls ressources;;
|
|
run)
|
|
if [ -e ressources/$2/debmaker ]
|
|
then
|
|
. ressources/$2/debmaker
|
|
debmaker_run
|
|
else
|
|
echo no $2 project
|
|
fi
|
|
;;
|
|
edit)
|
|
if [ -e ressources/$2/debmaker ]
|
|
then
|
|
nano ressources/$2/debmaker
|
|
else
|
|
echo no $2 project
|
|
fi
|
|
;;
|
|
chroot)
|
|
if [ -e ressources/$2/debmaker ]
|
|
then
|
|
if [ -e cache/$2 ]
|
|
then
|
|
. ressources/$2/debmaker
|
|
debmaker_chroot
|
|
else
|
|
echo no cache file
|
|
fi
|
|
else
|
|
echo no $2 project
|
|
fi
|
|
;;
|
|
*)
|
|
echo debmaker [list] [chroot app] [run <app>] [edit <app>];;
|
|
esac
|