aboutsummaryrefslogtreecommitdiffstats
path: root/trunk/create-file
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/create-file')
-rwxr-xr-xtrunk/create-file31
1 files changed, 0 insertions, 31 deletions
diff --git a/trunk/create-file b/trunk/create-file
deleted file mode 100755
index 6ae3417..0000000
--- a/trunk/create-file
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-#---------------------------------------------------------------
-# Project : Mandriva Linux
-# Module : rpm-helper
-# File : create-file
-# Version : $Id$
-# Author : Frederic Lepied
-# Created On : Wed Jul 10 15:12:29 2002
-# Purpose : helper script for rpm scriptlets to create
-# a non existent file.
-#---------------------------------------------------------------
-
-if [ $# != 6 ]; then
- echo "usage: $0 <pkg name> <num installed> <file> <owner> <group> <mode>" 1>&2
- exit 1
-fi
-
-pkg=$1 # name of the package
-num=$2 # number of packages installed
-file=$3 # filename
-owner=$4 # owner of the file
-group=$5 # group of the file
-mode=$6 # mode of the file
-
-if [ ! -f $file ]; then
- touch $file
- chown $owner:$group $file
- chmod $mode $file
-fi
-
-# create-file ends here