xref: /third_party/gptfdisk/uninstall-fixparts
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/gptfdisk/
1cf200d32Sopenharmony_ci#!/bin/bash
2cf200d32Sopenharmony_ci
3cf200d32Sopenharmony_ci# Script to uninstall FixParts from OS X
4cf200d32Sopenharmony_ci
5cf200d32Sopenharmony_ciOSName=`uname -s`
6cf200d32Sopenharmony_ciif [[ $OSName != 'Darwin' ]] ; then
7cf200d32Sopenharmony_ci    echo "This script is useful only under OS X! Exiting!"
8cf200d32Sopenharmony_ci    exit 1
9cf200d32Sopenharmony_cifi
10cf200d32Sopenharmony_ci
11cf200d32Sopenharmony_ci# Remove from pre-1.0.1 locations
12cf200d32Sopenharmony_cirm -f /usr/sbin/fixparts
13cf200d32Sopenharmony_cirm -rf /usr/share/doc/fixparts
14cf200d32Sopenharmony_cirm -f /usr/share/man/man8/fixparts.8
15cf200d32Sopenharmony_ci
16cf200d32Sopenharmony_ci# Remove from 1.0.1 (and later) locations
17cf200d32Sopenharmony_cirm -f /usr/local/bin/fixparts
18cf200d32Sopenharmony_cirm -rf /usr/local/doc/fixparts
19cf200d32Sopenharmony_cirm -f /usr/local/man/man8/fixparts.8
20cf200d32Sopenharmony_ci
21cf200d32Sopenharmony_ciecho "All FixParts program files successfully removed!"
22cf200d32Sopenharmony_ci
23cf200d32Sopenharmony_ci# And finally, erase this script itself....
24cf200d32Sopenharmony_cirm -f /usr/local/bin/uninstall-fixparts
25

Indexes created Thu Nov 07 10:32:03 CST 2024