mirror of
https://github.com/jordansissel/fpm
synced 2025-02-23 01:51:16 +01:00
The `install.sh` will generate a cleanup.sh script that is executed when the package is removed.
18 lines
241 B
Bash
Executable File
18 lines
241 B
Bash
Executable File
#!/bin/sh
|
|
|
|
install_path() {
|
|
d="${1##.}"
|
|
if [ ! -z "$d" ] ; then
|
|
if [ -d "$1" -a ! -d "$d" ] ; then
|
|
mkdir "$d"
|
|
fi
|
|
if [ -f "$1" ] ; then
|
|
cp -p "$1" "$d"
|
|
fi
|
|
fi
|
|
}
|
|
|
|
for i in "$@" ; do
|
|
install_path "$i"
|
|
done
|