Skip to content

Commit

Permalink
makefile in its own dir
Browse files Browse the repository at this point in the history
  • Loading branch information
cirosantilli committed May 7, 2013
1 parent 0e7cc01 commit 2613103
Show file tree
Hide file tree
Showing 9 changed files with 92 additions and 339 deletions.
41 changes: 28 additions & 13 deletions aptitude.sh
Original file line number Diff line number Diff line change
Expand Up @@ -233,20 +233,25 @@

##get new package info

apt-cache depends $PKG
#list package dependencies
#list package dependencies

sudo apt-get build-dep $PKG
#? what is the difference between this and depends
apt-cache depends $PKG

sudo apt-rdepends -r $PKG
#who depends on $PKG: reverse dependencies
#? what is the difference between this and depends

apt-cache show $PKG
#basic information about a package
sudo apt-get build-dep $PKG

apt-cache showpkg $PKG
#detailed information about a package
#find who depends on $PKG (reverse dependencies):

sudo apt-rdepends -r $PKG

#get basic information about a package:

apt-cache show $PKG

#get detailed information about a package:

apt-cache showpkg $PKG

sudo aptitude install debtags
debtags tag ls $PKG
Expand All @@ -258,16 +263,26 @@

##install

sudo aptitude install $PKG
#install package

sudo aptitude install -o APT::Install-Recommends="true" $PKGg
sudo aptitude install $PKG

#also installs recommended packages

sudo aptitude install -o APT::Install-Recommends="true" $PKGg

#-o option changes things which could be in the config files.

sudo aptitude install -o APT::Install-Suggests="true" $PKGg
#also installs suggested packages

sudo aptitude install -o APT::Install-Suggests="true" $PKGg

#install only the dependencies required for a package but not the package itself:

sudo aptitude build-dep $PKG

#this is useful if you want to dev a package that has compiled dependencies

##upgrade installed packages

#upgrade a single package
Expand Down
20 changes: 3 additions & 17 deletions linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6771,28 +6771,14 @@ int main(void)
assert test -d "$d"
rm -r "$d"
#dir instead of file

##pathchk

#check if path is portable across posix systems

pathchk -p 'a'
pathchk -p '\'

##dirs

#move between dirs in stack

dirs
#show dir stack
# -v : verbose. one per line, with line numbers

pushd .
#push to dir stack

popd
#pop fro dir stack and cd to it

##fdupes

#fine command line tool for eliminating byte by byte duplicates
Expand Down
18 changes: 18 additions & 0 deletions make/interpreter/makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#make uses `$SHELL` var (makefile var) to determine the interpreter to use

#remember:

#- each rule line means one separated shell invocation
#- lines ending in `\` get following line appended and are passed together to the interpreter
#**with** the `\`

#default: sh

SHELL := /usr/bin/python

0:
print 1

1:
#a = 1
#print a
File renamed without changes.
Loading

0 comments on commit 2613103

Please sign in to comment.