Welcome to mirror list, hosted at ThFree Co, Russian Federation.

makepack « bin - github.com/ClusterM/hakchi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0435c0f6ad2deea2732f6971c70225f9c75f839e (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

input=$1
[ -d "$input" ] || exit 1

ext=.hmod
name=$(basename "$input" $ext)
output=$(pwd)/$name$ext.tgz

rm -f "$output"
(cd "$input" && tar -cz --owner=root --group=root --numeric-owner -f "$output" * && echo ok)