add
This commit is contained in:
commit
0ef2546f32
4 changed files with 60 additions and 0 deletions
2
README.md
Normal file
2
README.md
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# rcpkg
|
||||||
|
take 2 guesses at what this one does!
|
20
lola
Executable file
20
lola
Executable file
|
@ -0,0 +1,20 @@
|
||||||
|
#!/bin/rc
|
||||||
|
|
||||||
|
iflags=(win3 win95 simple flat)
|
||||||
|
en=simple #enable
|
||||||
|
src='git://shithub.us/aap/lola'
|
||||||
|
builddir=/tmp/lola
|
||||||
|
name=lola
|
||||||
|
|
||||||
|
git/clone $src $builddir || exit 1
|
||||||
|
into $builddir
|
||||||
|
if(! ~ $#en 1){
|
||||||
|
echo $name: what are you doing? >[1=2]
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
sed s/simple/$en/g mkfile >mkfile2
|
||||||
|
mv mkfile2 mkfile
|
||||||
|
mk
|
||||||
|
mk install
|
||||||
|
back
|
||||||
|
rm -fr $builddir #ruh roh
|
12
luix
Executable file
12
luix
Executable file
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/rc
|
||||||
|
|
||||||
|
src='https://github.com/okvik/luix'
|
||||||
|
builddir=/tmp/luix
|
||||||
|
name=luix
|
||||||
|
|
||||||
|
git/clone $src $builddir || exit 1
|
||||||
|
into $builddir
|
||||||
|
mk
|
||||||
|
mk install
|
||||||
|
back
|
||||||
|
rm -fr $builddir #ruh roh
|
26
rcpkg
Executable file
26
rcpkg
Executable file
|
@ -0,0 +1,26 @@
|
||||||
|
#!/bin/rc
|
||||||
|
|
||||||
|
# rcpkg - the worst package manager
|
||||||
|
|
||||||
|
oldpwd=`{pwd}
|
||||||
|
|
||||||
|
fn into{
|
||||||
|
oldpwd=`{pwd}
|
||||||
|
cd $1
|
||||||
|
}
|
||||||
|
|
||||||
|
fn back{
|
||||||
|
olderpwd=`{pwd}
|
||||||
|
cd $oldpwd
|
||||||
|
oldpwd=$olderpwd
|
||||||
|
}
|
||||||
|
|
||||||
|
if(~ $#1 0){
|
||||||
|
echo usage: rcpkg package >[1=2]
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
flag x +
|
||||||
|
. ./^$1
|
||||||
|
|
||||||
|
exit 0
|
Loading…
Add table
Reference in a new issue