File: clean-module.sh

package info (click to toggle)
libsyntax-highlight-engine-simple-languages-perl 1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 188 kB
  • ctags: 12
  • sloc: perl: 403; sh: 46; makefile: 14
file content (20 lines) | stat: -rw-r--r-- 469 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
PERL=$(which perl)
MAKE=$(which make)

if [ -d $1 ]; 
then
    echo "=========================================================================="
    echo "Clean $1"
    echo "=========================================================================="
else
    echo "directory $1 does not exist"
    exit 1
fi
cd $1
if [ -r Build.PL ];
then
    [ ! -f Build ] || ${PERL} Build --allow_mb_mismatch 1 distclean
else
    [ ! -f Makefile ] || ${MAKE} realclean
fi