Dummy commit.
parent
c1f08c537a
commit
40fdefc8fa
|
@ -297,7 +297,7 @@ pacman-deps()
|
||||||
eval "${CMD} $@ 2>/dev/null" | awk -F "$SEP" -v filter="$pacman_deps" '$0 ~ filter {gsub(/[>=<][^ ]*/,"",$2) ; gsub(/ +/,"\n",$2) ; print $2}' | sort -u
|
eval "${CMD} $@ 2>/dev/null" | awk -F "$SEP" -v filter="$pacman_deps" '$0 ~ filter {gsub(/[>=<][^ ]*/,"",$2) ; gsub(/ +/,"\n",$2) ; print $2}' | sort -u
|
||||||
else
|
else
|
||||||
local FULLDEPLIST
|
local FULLDEPLIST
|
||||||
FULLDEPLIST=$(pacman -Qi | grep "Name\|Depends" | sed -n "/${pacman_name}/{s/.*: \(.*\)/\1:/;h;n;s/${pacman_deps}.*: //;s/[>=<][^ ]*//g;H;x;s/\n//;p}")
|
FULLDEPLIST=$(pacman -Qi | grep "${pacman_name}\|${pacman_deps}" | sed -n "/${pacman_name}/{s/.*: \(.*\)/\1:/;h;n;s/${pacman_deps}.*: //;s/[>=<][^ ]*//g;H;x;s/\n//;p}")
|
||||||
|
|
||||||
## Note: using a table is important for Zsh compatibility.
|
## Note: using a table is important for Zsh compatibility.
|
||||||
local DEPLIST
|
local DEPLIST
|
||||||
|
|
|
@ -501,6 +501,20 @@ pdfcompress ()
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pdfextract ()
|
||||||
|
{
|
||||||
|
if [ $# -ne 4 ]; then
|
||||||
|
echo "Usage: $0 PDFFILE FIRSTPAGE LASTPAGE DESTFILE"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -f "$1" ]; then
|
||||||
|
echo "$1 is not a valid PDF file!"
|
||||||
|
fi
|
||||||
|
|
||||||
|
gs -sDEVICE=pdfwrite -dNOPAUSE -dSAFER -dSAFER -dFirstPage=$2 -dBATCH -dLastPage=$3 -sOutputFile=$4 $1
|
||||||
|
}
|
||||||
|
|
||||||
## Create an archive from a single or multiples files/folders.
|
## Create an archive from a single or multiples files/folders.
|
||||||
archive ()
|
archive ()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue