summaryrefslogtreecommitdiff
path: root/gdc
diff options
context:
space:
mode:
authorDanny Rawlins <romster@shortcircuit.net.au>2008-05-19 14:29:19 +1000
committerDanny Rawlins <romster@shortcircuit.net.au>2008-05-19 14:54:43 +1000
commitf267840638202ccbfcc7d45a6515249e26805cab (patch)
tree277591e005adc8974deead8c2446c316e92af1a7 /gdc
parentb41195739f5f301b47c9f478c6121aca94332b96 (diff)
downloadcontrib-f267840638202ccbfcc7d45a6515249e26805cab.tar.gz
contrib-f267840638202ccbfcc7d45a6515249e26805cab.tar.xz
gdc: remove install-scripts
Diffstat (limited to 'gdc')
-rwxr-xr-xgdc/post-install43
-rwxr-xr-xgdc/post-remove27
2 files changed, 0 insertions, 70 deletions
diff --git a/gdc/post-install b/gdc/post-install
deleted file mode 100755
index 79acb59d6..000000000
--- a/gdc/post-install
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/usr/bin/env sh
-SYMLINKS='gdc gdmd'
-symlink() {
- local DIRECTORY BASENAME NOT_INSTALLED
- DIRECTORY="$1"
- BASENAME="`basename $DIRECTORY`"
- if [ -d "$DIRECTORY" ]; then
- if [ -w "$DIRECTORY" ]; then
- cd "$DIRECTORY"
- for c in $SYMLINKS; do
- if [ ! -e "$DIRECTORY/$c" ]; then
- NOT_INSTALLED='yes'
- fi
- done
- if [ "$NOT_INSTALLED" ]; then
- echo "post-install: in directory '$DIRECTORY'."
- fi
- for c in $SYMLINKS; do
- if [ ! -e "$DIRECTORY/$c" ]; then
- ln -s "../../bin/$BASENAME" "$c"
- if [ $? -gt 0 ]; then
- echo "post-install: error creating symlink '../../bin/$BASENAME -> $c'."
- exit 1
- else
- echo "post-install: create symlink '../../bin/$BASENAME -> $c'."
- fi
- fi
- done
- cd - > /dev/null
- else
- echo "post-install: error no permission to create symlink '../../bin/$BASENAME -> $c'."
- exit 1
- fi
- fi
-}
-if pkginfo -i | egrep '^distcc ' > /dev/null; then
- symlink '/usr/lib/distcc'
-fi
-if pkginfo -i | egrep '^ccache ' > /dev/null; then
- symlink '/usr/lib/ccache'
-fi
-unset SYMLINKS
-# End of file
diff --git a/gdc/post-remove b/gdc/post-remove
deleted file mode 100755
index 2f460ac16..000000000
--- a/gdc/post-remove
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/usr/bin/env sh
-SYMLINKS='gdc gdmd'
-remove() {
- local DIRECTORY="$1"
- if [ -d "$DIRECTORY" ]; then
- if [ -w "$DIRECTORY" ]; then
- for c in $SYMLINKS; do
- if [ -L "$DIRECTORY/$c" ]; then
- rm "$DIRECTORY/$c"
- if [ $? -gt 0 ]; then
- echo "post-remove: error removing symlink '$DIRECTORY/$c'."
- exit 1
- else
- echo "post-remove: removing symlink '$DIRECTORY/$c'."
- fi
- fi
- done
- else
- echo "post-remove: error no permission to remove '$DIRECTORY/$c'."
- exit 1
- fi
- fi
-}
-remove '/usr/lib/distcc'
-remove '/usr/lib/ccache'
-unset SYMLINKS
-# End of file

Generated by cgit